Skip to content

Commit 7673f7a

Browse files
committed
chore(benchmark): add ReportAllocs
1 parent c3ad317 commit 7673f7a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

job/benchmark_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
)
88

99
func BenchmarkNewTask(b *testing.B) {
10+
b.ReportAllocs()
1011
for i := 0; i < b.N; i++ {
1112
NewTask(func(context.Context) error {
1213
return nil
@@ -21,6 +22,7 @@ func BenchmarkNewTask(b *testing.B) {
2122
}
2223

2324
func BenchmarkNewOption(b *testing.B) {
25+
b.ReportAllocs()
2426
for i := 0; i < b.N; i++ {
2527
_ = NewOptions(
2628
AllowOption{

0 commit comments

Comments
 (0)