(t *testing.B)
| 648 | } |
| 649 | |
| 650 | func BenchmarkCallFrameStackPushPopFixedNoInterface(t *testing.B) { |
| 651 | stack := newFixedCallFrameStack(256).(*fixedCallFrameStack) |
| 652 | |
| 653 | t.ResetTimer() |
| 654 | |
| 655 | const Iterations = 256 |
| 656 | for j := 0; j < t.N; j++ { |
| 657 | for i := 0; i < Iterations; i++ { |
| 658 | stack.Push(callFrame{}) |
| 659 | } |
| 660 | for i := 0; i < Iterations; i++ { |
| 661 | stack.Pop() |
| 662 | } |
| 663 | } |
| 664 | } |
| 665 | |
| 666 | func BenchmarkCallFrameStackUnwindAutoGrow(t *testing.B) { |
| 667 | stack := newAutoGrowingCallFrameStack(256) |
nothing calls this directly
no test coverage detected
searching dependent graphs…