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

Function BenchmarkInputMgr_AxisCleanState

axis_test.go:468–479  ·  view source on GitHub ↗

Benchmark values checks with a clean key manager.

(b *testing.B)

Source from the content-addressed store, hash-verified

466
467// Benchmark values checks with a clean key manager.
468func BenchmarkInputMgr_AxisCleanState(b *testing.B) {
469 Input = NewInputManager()
470
471 for _, cfg := range axSimpleCfg {
472 Input.RegisterAxis(cfg.Name, cfg.Pairs[0], cfg.Pairs[1])
473 }
474
475 b.ResetTimer()
476 for n := 0; n < b.N; n++ {
477 checkAxisConfigValue(b)
478 }
479}
480
481// Benchmark values checks with a full key manager.
482func BenchmarkInputMgr_AxisFilledState(b *testing.B) {

Callers

nothing calls this directly

Calls 3

NewInputManagerFunction · 0.85
checkAxisConfigValueFunction · 0.85
RegisterAxisMethod · 0.80

Tested by

no test coverage detected