diff options
Diffstat (limited to 'src/strconv/atof_test.go')
-rw-r--r-- | src/strconv/atof_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/strconv/atof_test.go b/src/strconv/atof_test.go index 545d989c41..41dc69b30a 100644 --- a/src/strconv/atof_test.go +++ b/src/strconv/atof_test.go @@ -653,12 +653,16 @@ func BenchmarkAtof64Big(b *testing.B) { } func BenchmarkAtof64RandomBits(b *testing.B) { + initAtof() + b.ResetTimer() for i := 0; i < b.N; i++ { ParseFloat(benchmarksRandomBits[i%1024], 64) } } func BenchmarkAtof64RandomFloats(b *testing.B) { + initAtof() + b.ResetTimer() for i := 0; i < b.N; i++ { ParseFloat(benchmarksRandomNormal[i%1024], 64) } |