-
Notifications
You must be signed in to change notification settings - Fork 232
Open
Description
Example:
func BenchmarkTree(b *testing.B) {
sizes := []int{1, 2, 4, 8, 16}
for _, size := range sizes {
b.Run(
fmt.Sprintf("size: %d", size),
func(b *testing.B) {
for i := 0; i < b.N; i++ {
test(i + size)
}
})
}
}
reports:
failures="0" errors="1" id="0"
when running benchmark with JSON output
Metadata
Metadata
Assignees
Labels
No labels