MCPcopy
hub / github.com/EngoEngine/engo / BenchmarkKeyMgr_CleanSubOptimal

Function BenchmarkKeyMgr_CleanSubOptimal

keys_test.go:305–312  ·  view source on GitHub ↗

Benchmark sub-optimal state checks on a clean key manager.

(b *testing.B)

Source from the content-addressed store, hash-verified

303
304// Benchmark sub-optimal state checks on a clean key manager.
305func BenchmarkKeyMgr_CleanSubOptimal(b *testing.B) {
306 mgr := NewKeyManager()
307
308 b.ResetTimer()
309 for n := 0; n < b.N; n++ {
310 checkKeyConfigSubOptimal(b, mgr)
311 }
312}
313
314// Benchmark sub-optimal state checks on a filled key manager.
315func BenchmarkKeyMgr_FilledSubOptimal(b *testing.B) {

Callers

nothing calls this directly

Calls 2

NewKeyManagerFunction · 0.85
checkKeyConfigSubOptimalFunction · 0.85

Tested by

no test coverage detected