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

Function BenchmarkMeanSmallFloatSlice

mean_test.go:29–33  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

27}
28
29func BenchmarkMeanSmallFloatSlice(b *testing.B) {
30 for i := 0; i < b.N; i++ {
31 _, _ = stats.Mean(makeFloatSlice(5))
32 }
33}
34
35func BenchmarkMeanLargeFloatSlice(b *testing.B) {
36 lf := makeFloatSlice(100000)

Callers

nothing calls this directly

Calls 2

MeanFunction · 0.92
makeFloatSliceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…