Commit 7717ac1
committed
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>1 parent 05cc8b5 commit 7717ac1
1 file changed
Lines changed: 5 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
322 | | - | |
323 | 321 | | |
324 | | - | |
325 | 322 | | |
326 | 323 | | |
327 | | - | |
| 324 | + | |
328 | 325 | | |
329 | | - | |
330 | 326 | | |
331 | 327 | | |
332 | 328 | | |
333 | | - | |
334 | 329 | | |
335 | 330 | | |
336 | | - | |
| 331 | + | |
337 | 332 | | |
338 | | - | |
339 | 333 | | |
340 | 334 | | |
341 | 335 | | |
342 | | - | |
343 | 336 | | |
344 | 337 | | |
345 | 338 | | |
346 | 339 | | |
347 | | - | |
| 340 | + | |
348 | 341 | | |
349 | | - | |
350 | 342 | | |
351 | 343 | | |
352 | 344 | | |
353 | | - | |
354 | 345 | | |
355 | 346 | | |
356 | 347 | | |
357 | 348 | | |
358 | | - | |
| 349 | + | |
359 | 350 | | |
360 | | - | |
361 | 351 | | |
362 | 352 | | |
363 | 353 | | |
364 | 354 | | |
365 | 355 | | |
366 | 356 | | |
367 | 357 | | |
368 | | - | |
369 | 358 | | |
370 | 359 | | |
371 | | - | |
| 360 | + | |
372 | 361 | | |
373 | | - | |
374 | 362 | | |
375 | 363 | | |
376 | 364 | | |
| |||
0 commit comments