runtime: speedup malloc stats collection
Count only number of frees, everything else is derivable
and does not need to be counted on every malloc.
benchmark old ns/op new ns/op delta
BenchmarkMalloc8 68 66 -3.07%
BenchmarkMalloc16 75 70 -6.48%
BenchmarkMallocTypeInfo8 102 97 -4.80%
BenchmarkMallocTypeInfo16 108 105 -2.78%
linux/arm pandaboard alarm(~/go/src/pkg/runtime) % ~/go/misc/benchcmp {old,new}.txt benchmark old ns/op new ns/op delta BenchmarkMalloc8 485 452 ...
12 years, 1 month ago
(2013-05-27 12:47:42 UTC)
#3
linux/arm pandaboard
alarm(~/go/src/pkg/runtime) % ~/go/misc/benchcmp {old,new}.txt
benchmark old ns/op new ns/op delta
BenchmarkMalloc8 485 452 -6.80%
BenchmarkMalloc16 548 513 -6.39%
BenchmarkMallocTypeInfo8 659 638 -3.19%
BenchmarkMallocTypeInfo16 714 687 -3.78%
It will be interesting to see the results combined with 9776043
That should read, 9790043, but you probably knew that. On Mon, May 27, 2013 at ...
12 years, 1 month ago
(2013-05-27 12:48:14 UTC)
#4
That should read, 9790043, but you probably knew that.
On Mon, May 27, 2013 at 10:47 PM, <dave@cheney.net> wrote:
> linux/arm pandaboard
>
> alarm(~/go/src/pkg/runtime) % ~/go/misc/benchcmp {old,new}.txt
>
> benchmark old ns/op new ns/op delta
> BenchmarkMalloc8 485 452 -6.80%
> BenchmarkMalloc16 548 513 -6.39%
> BenchmarkMallocTypeInfo8 659 638 -3.19%
> BenchmarkMallocTypeInfo16 714 687 -3.78%
>
>
> It will be interesting to see the results combined with 9776043
>
> https://codereview.appspot.com/9776043/
*** Submitted as https://code.google.com/p/go/source/detail?r=b1217a6ca24c *** runtime: speedup malloc stats collection Count only number of frees, ...
12 years, 1 month ago
(2013-06-06 10:56:58 UTC)
#7
*** Submitted as https://code.google.com/p/go/source/detail?r=b1217a6ca24c ***
runtime: speedup malloc stats collection
Count only number of frees, everything else is derivable
and does not need to be counted on every malloc.
benchmark old ns/op new ns/op delta
BenchmarkMalloc8 68 66 -3.07%
BenchmarkMalloc16 75 70 -6.48%
BenchmarkMallocTypeInfo8 102 97 -4.80%
BenchmarkMallocTypeInfo16 108 105 -2.78%
R=golang-dev, dave, rsc
CC=golang-dev
https://codereview.appspot.com/9776043
Issue 9776043: code review 9776043: runtime: speedup malloc stats collection
(Closed)
Created 12 years, 1 month ago by dvyukov
Modified 12 years, 1 month ago
Reviewers:
Base URL:
Comments: 0