commit | 36a7a8014cd3ad525c2bad8c2dc07105166840dc | [log] [tgz] |
---|---|---|
author | Ian Cottrell <iancottrell@google.com> | Wed Jun 02 22:48:09 2021 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Thu Jun 03 11:18:09 2021 +0000 |
tree | 4dfd526d1473faf26e7b63cfcd59a24c98d034f8 | |
parent | 29119ec56d8af785c271d6adb38d1dd742d94b62 [diff] |
event: remove report allocs from the benchmarks Change-Id: I4fe9b49bac1c8136443cbacc4bd262ec79a1faee Reviewed-on: https://go-review.googlesource.com/c/exp/+/324649 Trust: Ian Cottrell <iancottrell@google.com> Run-TryBot: Ian Cottrell <iancottrell@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com>
diff --git a/event/bench/bench_test.go b/event/bench/bench_test.go index 69b48b5..1f158a6 100644 --- a/event/bench/bench_test.go +++ b/event/bench/bench_test.go
@@ -70,7 +70,7 @@ } func runBenchmark(b *testing.B, ctx context.Context, hooks Hooks) { - b.ReportAllocs() + //b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { runOnce(ctx, hooks)