caio.co/de/go-tdigest

Report allocations on benchmarks

Id
0cf6e97ff40ecb06c7d67989b7f64946009b16b1
Author
Caio
Commit time
2017-10-29T13:56:27+01:00

Modified tdigest_test.go

@@ -491,6 +491,7
data[n] = rand.Float64()
}

+ b.ReportAllocs()
b.ResetTimer()
for n := 0; n < b.N; n++ {
err := t.AddWeighted(data[n], 1)