Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
55
func
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
Sm3Sum
Function · 0.85
New
Function · 0.70
Sum
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…