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

Function BenchmarkLeftEncode

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

Source from the content-addressed store, hash-verified

64}
65
66func BenchmarkLeftEncode(b *testing.B) {
67 d := &state{rate: 104, outputLen: 48, dsbyte: 0x06}
68 for i := 0; i < b.N; i++ {
69 leftEncode(d, 12345)
70 }
71}
72
73func BenchmarkRightEncode(b *testing.B) {
74 d := &state{rate: 104, outputLen: 48, dsbyte: 0x06}

Callers

nothing calls this directly

Calls 1

leftEncodeFunction · 0.85

Tested by

no test coverage detected