MCPcopy
hub / github.com/montanaflynn/stats / BenchmarkModeLargeFloatSlice

Function BenchmarkModeLargeFloatSlice

mode_test.go:53–59  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

51}
52
53func BenchmarkModeLargeFloatSlice(b *testing.B) {
54 lf := makeFloatSlice(100000)
55 b.ResetTimer()
56 for i := 0; i < b.N; i++ {
57 _, _ = stats.Mode(lf)
58 }
59}
60
61func BenchmarkModeLargeRandFloatSlice(b *testing.B) {
62 lf := makeRandFloatSlice(100000)

Callers

nothing calls this directly

Calls 2

ModeFunction · 0.92
makeFloatSliceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…