(b *testing.B)
| 53 | } |
| 54 | |
| 55 | func 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 | |
| 66 | func Benchmark_VMW_Get_Missing_NotCached(b *testing.B) { |
| 67 | // Set up the VM |
nothing calls this directly
no test coverage detected