MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / BenchmarkHashString

Function BenchmarkHashString

internal/utils/fnv/hash_test.go:18–24  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

16}
17
18func BenchmarkHashString(b *testing.B) {
19 b.RunParallel(func(pb *testing.PB) {
20 for pb.Next() {
21 _ = fnv.HashString("abcdefh")
22 }
23 })
24}
25
26func BenchmarkHashString_Long(b *testing.B) {
27 b.RunParallel(func(pb *testing.PB) {

Callers

nothing calls this directly

Calls 2

HashStringFunction · 0.92
NextMethod · 0.80

Tested by

no test coverage detected