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

Function BenchmarkModeSmallFloatSlice

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

Source from the content-addressed store, hash-verified

37}
38
39func BenchmarkModeSmallFloatSlice(b *testing.B) {
40 for i := 0; i < b.N; i++ {
41 _, _ = stats.Mode(makeFloatSlice(5))
42 }
43}
44
45func BenchmarkModeSmallRandFloatSlice(b *testing.B) {
46 lf := makeRandFloatSlice(5)

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…