(t *testing.B)
| 731 | } |
| 732 | |
| 733 | func BenchmarkRegistryPushPopFixed(t *testing.B) { |
| 734 | al := newAllocator(32) |
| 735 | sz := 256 * 20 |
| 736 | reg := newRegistry(registryTestHandler(0), sz, 0, sz, al) |
| 737 | value := LString("test") |
| 738 | |
| 739 | t.ResetTimer() |
| 740 | |
| 741 | for j := 0; j < t.N; j++ { |
| 742 | for i := 0; i < sz; i++ { |
| 743 | reg.Push(value) |
| 744 | } |
| 745 | for i := 0; i < sz; i++ { |
| 746 | reg.Pop() |
| 747 | } |
| 748 | } |
| 749 | } |
| 750 | |
| 751 | func BenchmarkRegistrySetTop(t *testing.B) { |
| 752 | al := newAllocator(32) |
nothing calls this directly
no test coverage detected
searching dependent graphs…