MCPcopy
hub / github.com/TecharoHQ/anubis / BenchmarkSHA256_PolicyInputs

Function BenchmarkSHA256_PolicyInputs

internal/hash_bench_test.go:59–65  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

57)
58
59func BenchmarkSHA256_PolicyInputs(b *testing.B) {
60 b.ResetTimer()
61 for i := 0; i < b.N; i++ {
62 input := policyInputs[i%len(policyInputs)]
63 _ = SHA256sum(input)
64 }
65}
66
67func BenchmarkXXHash_PolicyInputs(b *testing.B) {
68 b.ResetTimer()

Callers

nothing calls this directly

Calls 1

SHA256sumFunction · 0.85

Tested by

no test coverage detected