summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorrw <me@rwinslow.com>2015-05-09 16:07:11 -0700
committerrw <me@rwinslow.com>2015-05-09 16:07:11 -0700
commit3dd54424c031ab91050760c0816f779bd4ccc76c (patch)
treef4554f47766665590d4e05ca650770678a2d220d /tests
parent5d68493df4848e46a58df1baaa562e520dc7ae39 (diff)
downloadflatbuffers-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.go3
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()