1.1.0 • Published 6 months ago
@n8n/n8n-benchmark v1.1.0
n8n benchmarking tool
Tool for executing benchmarks against an n8n instance.
Running locally with Docker
Build the Docker image:
# Must be run in the repository root
# k6 doesn't have an arm64 build available for linux, we need to build against amd64
docker build --platform linux/amd64 -t n8n-benchmark -f packages/@n8n/benchmark/Dockerfile .Run the image
docker run \
-e N8N_USER_EMAIL=user@n8n.io \
-e N8N_USER_PASSWORD=password \
# For macos, n8n running outside docker
-e N8N_BASE_URL=http://host.docker.internal:5678 \
n8n-benchmarkRunning locally without Docker
Requirements:
- k6
- Node.js v20 or higher
pnpm build
# Run tests against http://localhost:5678 with specified email and password
N8N_USER_EMAIL=user@n8n.io N8N_USER_PASSWORD=password ./bin/n8n-benchmark run
# If you installed k6 using brew, you might have to specify it explicitly
K6_PATH=/opt/homebrew/bin/k6 N8N_USER_EMAIL=user@n8n.io N8N_USER_PASSWORD=password ./bin/n8n-benchmark runRunning in the cloud
There's a script to run the performance tests in a cloud environment. The script provisions a cloud environment, sets up n8n in the environment, runs the tests and destroys the environment.
pnpm run-in-cloudConfiguration
The configuration options the cli accepts can be seen from config.ts
Benchmark scenarios
A benchmark scenario defines one or multiple steps to execute and measure. It consists of:
- Manifest file which describes and configures the scenario
- Any test data that is imported before the scenario is run
- A
k6script which executes the steps and receivesAPI_BASE_URLenvironment variable in runtime.
Available scenarios are located in ./scenarios.
1.15.0
8 months ago
1.14.0
8 months ago
1.13.0
8 months ago
1.12.0
9 months ago
1.17.0
6 months ago
1.16.0
7 months ago
1.9.1
10 months ago
1.9.0
11 months ago
1.11.0
10 months ago
1.10.1
10 months ago
1.10.0
11 months ago
1.8.0
1 year ago
1.7.0
1 year ago
1.6.1
1 year ago
1.6.0
1 year ago
1.5.0
1 year ago
1.4.0
1 year ago
1.3.0
1 year ago
1.2.0
1 year ago
1.1.0
1 year ago