MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / Benchmark_VMW_Get_Found_NotCached

Function Benchmark_VMW_Get_Found_NotCached

internal/scripting/scripting_test.go:55–64  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

53}
54
55func Benchmark_VMW_Get_Found_NotCached(b *testing.B) {
56 // Set up the VM
57 vm := goja.New()
58 vm.RunString(TEST_SCRIPT)
59 vmw := newVMWrapper(vm, 0)
60
61 for n := 0; n < b.N; n++ {
62 vmw.GetFunction(`TestFound`)
63 }
64}
65
66func Benchmark_VMW_Get_Missing_NotCached(b *testing.B) {
67 // Set up the VM

Callers

nothing calls this directly

Calls 3

newVMWrapperFunction · 0.85
NewMethod · 0.80
GetFunctionMethod · 0.80

Tested by

no test coverage detected