Skip to content

Commit

Permalink
chore(npm): update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Dec 20, 2023
1 parent fab386b commit b9f2aba
Show file tree
Hide file tree
Showing 616 changed files with 72,182 additions and 14,425 deletions.
32 changes: 27 additions & 5 deletions bin/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,31 @@
*/

import Benchmark from '#src/benchmark'
import { parseArgs } from 'node:util'

await Benchmark.adonisjs()
await Benchmark.athenna()
await Benchmark.express()
await Benchmark.fastify()
await Benchmark.nestjs()
const { values } = parseArgs({
options: {
framework: {
type: 'string',
short: 'f',
multiple: true
}
},
args: process.argv.slice(2)
})

if (!values.framework) {
await Benchmark.adonisjs()
await Benchmark.athenna()
await Benchmark.express()
await Benchmark.fastify()
await Benchmark.nestjs()
}

if (values.framework.length === 1 && values.framework.includes(',')) {
values.framework = values.framework[0].split(',')
}

for (const framework of values.framework) {
await Benchmark[framework]()
}
Loading

0 comments on commit b9f2aba

Please sign in to comment.