benchmarks icon indicating copy to clipboard operation
benchmarks copied to clipboard

bench: allow users to run benchmarks non-interactively

Open mmarchini opened this issue 4 years ago • 2 comments

This allows users to run benchmarks non-interactively by using command line flags. Useful when running benchmarks automatically on CI environments, for example.


Kind of an alternative to https://github.com/fastify/benchmarks/pull/106/commits/9dc8d902ad44a3f37158f93cfb6ba230764c25da#diff-6f09bc424586c395b13fd6f33fc863bcR8-R69 using commander to handle CLI parameters. I only saw that PR after I made this commit, thought I'd share anyway in case you want to go with this approach instead.

Checklist

  • [x] run npm run test and npm run benchmark
  • [ ] tests and/or benchmarks are included
  • [ ] documentation is changed or added
  • [x] commit message and code follows Code of conduct

mmarchini avatar Dec 09 '19 18:12 mmarchini

Would you mind to rebase/update this? I think #106 made some of these already.

mcollina avatar Jan 20 '20 12:01 mcollina

Will do when I'm back from vacation

mmarchini avatar Jan 20 '20 17:01 mmarchini