Skip to content

Commit

Permalink
Merge pull request #11 from AthennaIO/chore/update-deps
Browse files Browse the repository at this point in the history
chore(npm): update dependencies
  • Loading branch information
jlenon7 committed Dec 26, 2023
2 parents f469bdf + 0502f13 commit 654896b
Show file tree
Hide file tree
Showing 4,312 changed files with 149,420 additions and 144,067 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
strategy:
matrix:
node-version:
- 16.13.1
- 18.x
- 21.x
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -36,8 +36,8 @@ jobs:
strategy:
matrix:
node-version:
- 16.13.1
- 18.x
- 21.x
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
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()
} else {
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 654896b

Please sign in to comment.