d41209d293
* Bump geth to 1.8.20 for Constantinople * Fix conflicting import/toml source for logrus
19 lines
281 B
Go
19 lines
281 B
Go
package bigcache
|
|
|
|
import "testing"
|
|
|
|
var text = "abcdefg"
|
|
|
|
func BenchmarkFnvHashSum64(b *testing.B) {
|
|
h := newDefaultHasher()
|
|
for i := 0; i < b.N; i++ {
|
|
h.Sum64(text)
|
|
}
|
|
}
|
|
|
|
func BenchmarkFnvHashStdLibSum64(b *testing.B) {
|
|
for i := 0; i < b.N; i++ {
|
|
stdLibFnvSum64(text)
|
|
}
|
|
}
|