()
| 15 | const serveBenchmark = require('./server'); |
| 16 | |
| 17 | function getBenchmarkNames() { |
| 18 | return readdirSync(join(__dirname, 'benchmarks')).filter(file => |
| 19 | statSync(join(__dirname, 'benchmarks', file)).isDirectory() |
| 20 | ); |
| 21 | } |
| 22 | |
| 23 | function wait(val) { |
| 24 | return new Promise(resolve => setTimeout(resolve, val)); |