MCPcopy Create free account
hub / github.com/0xAX/go-algorithms / BenchmarkSort

Function BenchmarkSort

sorting/sort_test.go:40–54  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

38}
39
40func BenchmarkSort(b *testing.B) {
41 for _, tt := range funcs {
42 arrs := make([][]int, 0)
43
44 for n := 0; n < b.N; n++ {
45 arrs = append(arrs, utils.RandArray(10))
46 }
47
48 b.Run(tt.name, func(b *testing.B) {
49 for n := 0; n < len(arrs); n++ {
50 tt.f(arrs[n])
51 }
52 })
53 }
54}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected