MCPcopy Index your code
hub / github.com/yuin/gopher-lua / BenchmarkCallFrameStackUnwindFixedNoInterface

Function BenchmarkCallFrameStackUnwindFixedNoInterface

state_test.go:694–706  ·  view source on GitHub ↗
(t *testing.B)

Source from the content-addressed store, hash-verified

692}
693
694func BenchmarkCallFrameStackUnwindFixedNoInterface(t *testing.B) {
695 stack := newFixedCallFrameStack(256).(*fixedCallFrameStack)
696
697 t.ResetTimer()
698
699 const Iterations = 256
700 for j := 0; j < t.N; j++ {
701 for i := 0; i < Iterations; i++ {
702 stack.Push(callFrame{})
703 }
704 stack.SetSp(0)
705 }
706}
707
708type registryTestHandler int
709

Callers

nothing calls this directly

Calls 3

newFixedCallFrameStackFunction · 0.70
PushMethod · 0.65
SetSpMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…