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

Function BenchmarkCallFrameStackUnwindFixed

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

Source from the content-addressed store, hash-verified

678}
679
680func BenchmarkCallFrameStackUnwindFixed(t *testing.B) {
681 stack := newFixedCallFrameStack(256)
682
683 t.ResetTimer()
684
685 const Iterations = 256
686 for j := 0; j < t.N; j++ {
687 for i := 0; i < Iterations; i++ {
688 stack.Push(callFrame{})
689 }
690 stack.SetSp(0)
691 }
692}
693
694func BenchmarkCallFrameStackUnwindFixedNoInterface(t *testing.B) {
695 stack := newFixedCallFrameStack(256).(*fixedCallFrameStack)

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…