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

Function BenchmarkCallFrameStackUnwindAutoGrow

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

Source from the content-addressed store, hash-verified

664}
665
666func BenchmarkCallFrameStackUnwindAutoGrow(t *testing.B) {
667 stack := newAutoGrowingCallFrameStack(256)
668
669 t.ResetTimer()
670
671 const Iterations = 256
672 for j := 0; j < t.N; j++ {
673 for i := 0; i < Iterations; i++ {
674 stack.Push(callFrame{})
675 }
676 stack.SetSp(0)
677 }
678}
679
680func BenchmarkCallFrameStackUnwindFixed(t *testing.B) {
681 stack := newFixedCallFrameStack(256)

Callers

nothing calls this directly

Calls 3

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…