(b *testing.B)
| 118 | } |
| 119 | |
| 120 | func BenchmarkNewInboxCreation(b *testing.B) { |
| 121 | s := RunDefaultServer() |
| 122 | defer s.Shutdown() |
| 123 | nc := NewDefaultConnection(b) |
| 124 | defer nc.Close() |
| 125 | b.ResetTimer() |
| 126 | |
| 127 | for i := 0; i < b.N; i++ { |
| 128 | nc.NewRespInbox() |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | func BenchmarkRequest(b *testing.B) { |
| 133 | b.StopTimer() |
nothing calls this directly
no test coverage detected