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

Function BenchmarkHashKey_String

internal/ttlcache/utils_test.go:40–45  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

38}
39
40func BenchmarkHashKey_String(b *testing.B) {
41 runtime.GOMAXPROCS(1)
42 for i := 0; i < b.N; i++ {
43 ttlcache.HashKeyString("HELLO,WORLDHELLO,WORLDHELLO,WORLDHELLO,WORLDHELLO,WORLDHELLO,WORLD")
44 }
45}
46
47func BenchmarkHashKey_XXHash(b *testing.B) {
48 runtime.GOMAXPROCS(1)

Callers

nothing calls this directly

Calls 1

HashKeyStringFunction · 0.92

Tested by

no test coverage detected