(benchmark, http2)
| 56 | } |
| 57 | |
| 58 | function serveBenchmark(benchmark, http2) { |
| 59 | if (http2) { |
| 60 | return createHTTP2Server(benchmark); |
| 61 | } else { |
| 62 | return createHTTPServer(); |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | // if run directly via CLI |
| 67 | if (require.main === module) { |
no test coverage detected