Skip to content

Commit

Permalink
Generics Support
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianosela committed Jan 20, 2025
1 parent ba542f5 commit 14dab3b
Show file tree
Hide file tree
Showing 5 changed files with 230 additions and 178 deletions.
4 changes: 2 additions & 2 deletions benchmark/benchmark_table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func parseToTable(buf *bytes.Buffer) string {

pkgNames := []string{}
for _, times := range testTimes {
for k, _ := range times {
for k := range times {
pkgNames = append(pkgNames, k)
}
break
Expand All @@ -105,7 +105,7 @@ func parseToTable(buf *bytes.Buffer) string {
tbl.SetAutoFormatHeaders(false)
tbl.SetHeader(append([]string{"*(OPs/Sec)*"}, pkgNames...))
var testNames []string
for testName, _ := range testTimes {
for testName := range testTimes {
testNames = append(testNames, testName)
}
sort.Strings(testNames)
Expand Down
Loading

0 comments on commit 14dab3b

Please # to comment.