(t *testing.B)
| 678 | } |
| 679 | |
| 680 | func BenchmarkCallFrameStackUnwindFixed(t *testing.B) { |
| 681 | stack := newFixedCallFrameStack(256) |
| 682 | |
| 683 | t.ResetTimer() |
| 684 | |
| 685 | const Iterations = 256 |
| 686 | for j := 0; j < t.N; j++ { |
| 687 | for i := 0; i < Iterations; i++ { |
| 688 | stack.Push(callFrame{}) |
| 689 | } |
| 690 | stack.SetSp(0) |
| 691 | } |
| 692 | } |
| 693 | |
| 694 | func BenchmarkCallFrameStackUnwindFixedNoInterface(t *testing.B) { |
| 695 | stack := newFixedCallFrameStack(256).(*fixedCallFrameStack) |
nothing calls this directly
no test coverage detected
searching dependent graphs…