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

Function BenchmarkMinLargeFloatSlice

min_test.go:56–62  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

54}
55
56func BenchmarkMinLargeFloatSlice(b *testing.B) {
57 testData := makeFloatSlice(100000)
58 b.ResetTimer()
59 for i := 0; i < b.N; i++ {
60 _, _ = stats.Min(testData)
61 }
62}
63
64func BenchmarkMinLargeRandFloatSlice(b *testing.B) {
65 testData := makeRandFloatSlice(100000)

Callers

nothing calls this directly

Calls 2

MinFunction · 0.92
makeFloatSliceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…