MCPcopy Create free account
hub / github.com/chain/txvm / BenchmarkEncodeString

Function BenchmarkEncodeString

crypto/sha3/cshake_test.go:80–86  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

78}
79
80func BenchmarkEncodeString(b *testing.B) {
81 d := &state{rate: 104, outputLen: 48, dsbyte: 0x06}
82 s := []byte("foo")
83 for i := 0; i < b.N; i++ {
84 encodeString(d, s)
85 }
86}
87
88func BenchmarkInitCShake(b *testing.B) {
89 d := &state{rate: 104, outputLen: 48, dsbyte: 0x06}

Callers

nothing calls this directly

Calls 1

encodeStringFunction · 0.85

Tested by

no test coverage detected