The long-term goal of these scripts and documentation is to provide a consistent and well understood benchmarking process for tree-gateway
so that performance does not degrade over time.
All benchmarking shall be done with loadtest
Make sure you have loadtest
installed before continuing.
This benchmark requires three terminals running:
- A gateway server:
node dist/app.js
- A target API:
node benchmark/scripts/hello.js
- A wrk process: `loadtest -c 20 -n 20000 -k http://localhost:8000/benchmark/hello