(t *testing.B)
| 583 | } |
| 584 | |
| 585 | func BenchmarkCallFrameStackPushPopAutoGrow(t *testing.B) { |
| 586 | stack := newAutoGrowingCallFrameStack(256) |
| 587 | |
| 588 | t.ResetTimer() |
| 589 | |
| 590 | const Iterations = 256 |
| 591 | for j := 0; j < t.N; j++ { |
| 592 | for i := 0; i < Iterations; i++ { |
| 593 | stack.Push(callFrame{}) |
| 594 | } |
| 595 | for i := 0; i < Iterations; i++ { |
| 596 | stack.Pop() |
| 597 | } |
| 598 | } |
| 599 | } |
| 600 | |
| 601 | func BenchmarkCallFrameStackPushPopFixed(t *testing.B) { |
| 602 | stack := newFixedCallFrameStack(256) |
nothing calls this directly
no test coverage detected
searching dependent graphs…