A repo containing an example project to test Aspecto's benchmarks
- Docker
- Aspecto account API key.
- Apache Bench.
Notice: latest macOS versions already has apache bench installed.
To make sure you installed successfully runab -Vin the terminal.
- Clone this repo.
- Install dependencies with
yarn install. - Place your Aspecto API key in
aspecto.jsonfile. - Build docker-compose with
docker-compose build. - Start docker-compose with
docker-compose up. - Run benchmark command:
yarn benchmark <requests (default: 1000)> <concurrency (default: 10)>.
Make sure to relaunch your containers between every benchmark check, so you won't have any leftovers.
We have a Github Action CI running automatically on each new release of @aspecto/opentelemetry.
On every new release the CI creates an AWS EC2 instance running the same service twice - once without instrumentation (baseline) and one using aspecto.
On each service we run benchmark tests.
Instrumentation benchmarks are using 10% sampling ratio (recommended).
The benchmark report is written in the CI output, and uploaded to the CI artifacts as well.
Check it out here!.