On 2012/10/03 15:10:41, minux wrote: > does "MB/s" always there when there is "allocs/op"? Sorry, ...
12 years, 7 months ago
(2012-10-03 15:26:28 UTC)
#3
On 2012/10/03 15:10:41, minux wrote:
> does "MB/s" always there when there is "allocs/op"?
Sorry, don't understand the question. Both MB/s and allocs/op appear if and only
if both the old and new benchmark results have that measurement in them.
On Wednesday, October 3, 2012, wrote: > On 2012/10/03 15:10:41, minux wrote: > >> does ...
12 years, 7 months ago
(2012-10-03 15:30:17 UTC)
#4
On Wednesday, October 3, 2012, wrote:
> On 2012/10/03 15:10:41, minux wrote:
>
>> does "MB/s" always there when there is "allocs/op"?
>
> Sorry, don't understand the question. Both MB/s and allocs/op appear if
> and only if both the old and new benchmark results have that measurement
>
sorry i didn't make myself clear.
what if a benchmark shows allocs/op but not MB/s?
https://codereview.appspot.com/6587069/diff/4001/misc/benchcmp File misc/benchcmp (right): https://codereview.appspot.com/6587069/diff/4001/misc/benchcmp#newcode30 misc/benchcmp:30: if($8 == "allocs/op") the problem is: you hardcode column ...
12 years, 7 months ago
(2012-10-22 16:06:32 UTC)
#6
https://codereview.appspot.com/6587069/diff/4001/misc/benchcmp
File misc/benchcmp (right):
https://codereview.appspot.com/6587069/diff/4001/misc/benchcmp#newcode30
misc/benchcmp:30: if($8 == "allocs/op")
the problem is:
you hardcode column number for "allocs/op" here, which might
not be correct.
in fact, go test -benchmem -bench=. crypto/aes gives this
(slightly edited the spaces):
BenchmarkEncrypt 50000000 37.7 ns/op 424.75 MB/s 0 B/op 0 allocs/op
BenchmarkDecrypt 50000000 38.4 ns/op 416.28 MB/s 0 B/op 0 allocs/op
BenchmarkExpand 50000000 66.9 ns/op 0 B/op 0 allocs/op
ok crypto/aes 7.360s
On the first two lines, allocs/op is at the 10th column, but
on the third line it is at the 8th column.
OK, good catch. Fixed it by trying both positions, hacky but seems reasonable for this ...
12 years, 7 months ago
(2012-10-23 10:16:08 UTC)
#7
OK, good catch. Fixed it by trying both positions, hacky but seems reasonable
for this little testing tool. I also fixed an old typo in benchcmp (= versus
==). Finally, corrected divide by zero to not crash.
Please take another look.
Done. Example of the current format (ignore the data, it's false): benchmark old ns/op new ...
12 years, 6 months ago
(2012-10-31 14:09:14 UTC)
#10
Done. Example of the current format (ignore the data, it's false):
benchmark old ns/op new ns/op delta
BenchmarkClientServer 321861 354859 +10.25%
benchmark old allocs new allocs delta
BenchmarkClientServer 121 116 -4.13%
Thank you, it's good to be consistent. On Thu, Nov 1, 2012 at 1:09 AM, ...
12 years, 6 months ago
(2012-10-31 14:11:17 UTC)
#11
Thank you, it's good to be consistent.
On Thu, Nov 1, 2012 at 1:09 AM, <jeff.allen@gmail.com> wrote:
> Done. Example of the current format (ignore the data, it's false):
>
>
> benchmark old ns/op new ns/op delta
> BenchmarkClientServer 321861 354859 +10.25%
>
> benchmark old allocs new allocs delta
> BenchmarkClientServer 121 116 -4.13%
>
>
> https://codereview.appspot.com/6587069/
On 2012/10/31 14:09:14, jeff.allen wrote: > Done. Example of the current format (ignore the data, ...
12 years, 6 months ago
(2012-10-31 18:30:14 UTC)
#12
On 2012/10/31 14:09:14, jeff.allen wrote:
> Done. Example of the current format (ignore the data, it's false):
>
>
> benchmark old ns/op new ns/op delta
> BenchmarkClientServer 321861 354859 +10.25%
>
> benchmark old allocs new allocs delta
> BenchmarkClientServer 121 116 -4.13%
Update the usage?
benchcmp -h
usage: benchcmp old.txt new.txt
Each input file should be go test -test.run=NONE -test.bench=. > [old,new].txt
Benchcmp compares the first and last for each benchmark.
*** Submitted as http://code.google.com/p/go/source/detail?r=799fb89cf9b8 *** misc/benchcmp: show memory statistics, when available R=minux.ma, dave, extraterrestrial.neighbour, rsc ...
12 years, 6 months ago
(2012-11-02 18:14:04 UTC)
#16
Issue 6587069: code review 6587069: benchcmp: show memory statistics, when available
(Closed)
Created 12 years, 7 months ago by jeff.allen
Modified 12 years, 6 months ago
Reviewers:
Base URL:
Comments: 3