diff options
author | rw <me@rwinslow.com> | 2015-05-09 16:07:11 -0700 |
---|---|---|
committer | rw <me@rwinslow.com> | 2015-05-09 16:07:11 -0700 |
commit | 3dd54424c031ab91050760c0816f779bd4ccc76c (patch) | |
tree | f4554f47766665590d4e05ca650770678a2d220d /tests | |
parent | 5d68493df4848e46a58df1baaa562e520dc7ae39 (diff) | |
download | flatbuffers-3dd54424c031ab91050760c0816f779bd4ccc76c.tar.gz flatbuffers-3dd54424c031ab91050760c0816f779bd4ccc76c.tar.bz2 flatbuffers-3dd54424c031ab91050760c0816f779bd4ccc76c.zip |
remove remaining allocs during build
Diffstat (limited to 'tests')
-rw-r--r-- | tests/go_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/go_test.go b/tests/go_test.go index df887053..36c30cbe 100644 --- a/tests/go_test.go +++ b/tests/go_test.go @@ -1254,7 +1254,8 @@ func BenchmarkBuildGold(b *testing.B) { reuse_fred := []byte("Fred") b.SetBytes(bytes_length) - bldr := flatbuffers.NewBuilder(512) + bldr := flatbuffers.NewBuilder(0) + b.ResetTimer() b.ReportAllocs() for i := 0; i < b.N; i++ { bldr.Reset() |