nodejs / benchmarking

Node.js Benchmarking Working Group
https://benchmarking.nodejs.org
161 stars 47 forks source link

Running a benchmark #313

Open spmiller opened 4 years ago

spmiller commented 4 years ago

Hello,

We stumbled across this project when looking to compare how a NodeJS application would perform when running on different hardware. The Acme Air benchmark referenced in the use cases looks similar to our application, so running this benchmark looks like a good proxy for how well our app would perform.

We can't work out how to run the benchmark on a machine. We were expecting to find a "run benchmark X" script that would run and output some stats somewhere, but perhaps this is defined in your build config somewhere outside of this repository.

How can we run a particular benchmark to get the numbers out of it?

mhdawson commented 4 years ago

The naming is not great but the scripts are in:

https://github.com/nodejs/benchmarking/tree/master/experimental

so for example the script to run acmeair is:

https://github.com/nodejs/benchmarking/blob/master/experimental/benchmarks/acmeair/run_acmeair.sh