Skip to content

Commit

Permalink
bench
Browse files Browse the repository at this point in the history
  • Loading branch information
funkygao committed Feb 10, 2014
1 parent d764bad commit 73e9e23
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions sampling/bench_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package sampling

import (
"testing"
)

func BenchmarkSampling(b *testing.B) {
b.ReportAllocs()
for i := 0; i < b.N; i++ {
SampleRateSatisfied(3)
}
}

0 comments on commit 73e9e23

Please sign in to comment.