(t *testing.B)
| 632 | } |
| 633 | |
| 634 | func BenchmarkCallFrameStackPushPopShallowFixed(t *testing.B) { |
| 635 | stack := newFixedCallFrameStack(256) |
| 636 | |
| 637 | t.ResetTimer() |
| 638 | |
| 639 | const Iterations = 8 |
| 640 | for j := 0; j < t.N; j++ { |
| 641 | for i := 0; i < Iterations; i++ { |
| 642 | stack.Push(callFrame{}) |
| 643 | } |
| 644 | for i := 0; i < Iterations; i++ { |
| 645 | stack.Pop() |
| 646 | } |
| 647 | } |
| 648 | } |
| 649 | |
| 650 | func BenchmarkCallFrameStackPushPopFixedNoInterface(t *testing.B) { |
| 651 | stack := newFixedCallFrameStack(256).(*fixedCallFrameStack) |
nothing calls this directly
no test coverage detected
searching dependent graphs…