Skip to content

Commit

Permalink
refactor: add more reporting to benchmark tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tochemey committed Jul 29, 2024
1 parent 4bbca21 commit 7b5237b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bench/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ func BenchmarkActor(b *testing.B) {
}

func runParallel(b *testing.B, benchFn func(pb *testing.PB)) {
b.ReportAllocs()
b.ResetTimer()
start := time.Now()
b.RunParallel(benchFn)
Expand Down

0 comments on commit 7b5237b

Please sign in to comment.