MCPcopy Create free account
hub / github.com/codechenx/FastTableViewer / BenchmarkContinuousStats

Function BenchmarkContinuousStats

stats_test.go:139–150  ·  view source on GitHub ↗

======================================== Performance Tests ========================================

(b *testing.B)

Source from the content-addressed store, hash-verified

137// ========================================
138
139func BenchmarkContinuousStats(b *testing.B) {
140 data := make([]string, 1000)
141 for i := 0; i < 1000; i++ {
142 data[i] = F2S(float64(i) * 1.5)
143 }
144
145 b.ResetTimer()
146 for i := 0; i < b.N; i++ {
147 cs := &ContinuousStats{}
148 cs.summary(data)
149 }
150}
151
152func BenchmarkDiscreteStats(b *testing.B) {
153 data := make([]string, 1000)

Callers

nothing calls this directly

Calls 2

summaryMethod · 0.95
F2SFunction · 0.85

Tested by

no test coverage detected