Eli Bendersky's
Follow
Benchmarking utility for Python
Go programmers have it pretty good with the benchmarking capabilities provided
by the standard library. Say we want to benchmark a dot product
implementation:func dotProduct(a, b []float32) float32 {
var dot float32
for i := range a {
dot += a[i] * b[i]
}
return dot
}All we need to do is …