(t *testing.B)
| 664 | } |
| 665 | |
| 666 | func 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 | |
| 680 | func BenchmarkCallFrameStackUnwindFixed(t *testing.B) { |
| 681 | stack := newFixedCallFrameStack(256) |
nothing calls this directly
no test coverage detected
searching dependent graphs…