Skip to content

Commit bea6e3e

Browse files
relastleHiroki-Konishi
authored andcommitted
Update: insert resetTimer to proper point
1 parent 000d8d2 commit bea6e3e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main_bench_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ func BenchmarkLoadandFetchAll(b *testing.B) {
2020
}
2121
defer inputJSONFile.Close()
2222
var inputs []pmy.Input
23+
b.ResetTimer()
2324
byteValue, _ := ioutil.ReadAll(inputJSONFile)
2425
json.Unmarshal(byteValue, &inputs)
2526
for _, input := range inputs {

0 commit comments

Comments
 (0)