Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions bench_helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func buildCaseName(n int, safe bool) string {
settype = "Unsafe"
}

return fmt.Sprintf("%s(%d)", settype, n)
return fmt.Sprintf("%d_%s", n, settype)
}

type benchCase struct {
Expand All @@ -41,8 +41,6 @@ func buildBenchCases(ns ...int) []benchCase {
cases := []benchCase{}
for _, n := range ns {
cases = append(cases, benchCase{n, true})
}
for _, n := range ns {
cases = append(cases, benchCase{n, false})
}
return cases
Expand Down
Loading
Loading