()
| 42 | } |
| 43 | |
| 44 | function createHTTPServer() { |
| 45 | const server = httpServer.createServer({ |
| 46 | root: join(__dirname, 'benchmarks'), |
| 47 | robots: true, |
| 48 | cache: 'no-store', |
| 49 | headers: { |
| 50 | 'Access-Control-Allow-Origin': '*', |
| 51 | 'Access-Control-Allow-Credentials': 'true', |
| 52 | }, |
| 53 | }); |
| 54 | server.listen(8080); |
| 55 | return server; |
| 56 | } |
| 57 | |
| 58 | function serveBenchmark(benchmark, http2) { |
| 59 | if (http2) { |