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

Function BenchmarkRightEncode

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

Source from the content-addressed store, hash-verified

71}
72
73func BenchmarkRightEncode(b *testing.B) {
74 d := &state{rate: 104, outputLen: 48, dsbyte: 0x06}
75 for i := 0; i < b.N; i++ {
76 rightEncode(d, 12345)
77 }
78}
79
80func BenchmarkEncodeString(b *testing.B) {
81 d := &state{rate: 104, outputLen: 48, dsbyte: 0x06}

Callers

nothing calls this directly

Calls 1

rightEncodeFunction · 0.85

Tested by

no test coverage detected