]> Cypherpunks repositories - gostls13.git/commit
runtime: make Malloc benchmarks actually benchmark malloc
authorCherry Mui <cherryyz@google.com>
Thu, 10 Nov 2022 16:23:40 +0000 (11:23 -0500)
committerCherry Mui <cherryyz@google.com>
Thu, 10 Nov 2022 17:33:31 +0000 (17:33 +0000)
commit7717ac151ae1556541dddc6a817ac04733f1af44
tree1a3fa557ed1cdf3d0a904938472fde578a80492f
parent05cc8b5369b4c3571f0fb2aeed67f9229301b382
runtime: make Malloc benchmarks actually benchmark malloc

The compiler is too clever so the allocations are currently
avoided. Rewrite to make them actually allocate.

Change-Id: I9542e1365120b2ace318360883b0b01ed5670da7
Reviewed-on: https://go-review.googlesource.com/c/go/+/449476
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/malloc_test.go