nodesource / nodejs-package-benchmark

Node.js benchmark for common web developer workloads. Inspired by https://github.com/v8/web-tooling-benchmark
29 stars 1 forks source link

feat: add initial framework template #1

Closed RafaelGSS closed 7 months ago

RafaelGSS commented 7 months ago

This PR adds the initial framework template. The idea is to open other PRs including benchmarks of other modules. Once we have a reasonable amount of reports, we'll store it in a JSON file to be displayed in some UI.

Currently, two types of benchmark will be supported:

  1. HTTP - autocannon
  2. ops/sec benchmark

For the former, I'm going to use benchmark.js for now, but my plan is to work on https://github.com/RafaelGSS/bench-node as part of the work of migrating it into Node.js core.

The repository is designed to be used as a source of comparison across releases. The package versions will be fixed and upgraded every 6 months to prevent misleading comparisons due to changes.