MCPcopy
hub / github.com/tjfoc/gmsm / BenchmarkSm3

Function BenchmarkSm3

sm3/sm3_test.go:55–64  ·  view source on GitHub ↗
(t *testing.B)

Source from the content-addressed store, hash-verified

53}
54
55func BenchmarkSm3(t *testing.B) {
56 t.ReportAllocs()
57 msg := []byte("test")
58 hw := New()
59 for i := 0; i < t.N; i++ {
60
61 hw.Sum(nil)
62 Sm3Sum(msg)
63 }
64}

Callers

nothing calls this directly

Calls 3

Sm3SumFunction · 0.85
NewFunction · 0.70
SumMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…