This project is based on the template for Drupal projects by Wunder and meant for benchmarking a local Drupal development environment (either Lando or DDEV) with the open source load testing tool Locust.
View the live results on the Public Dashboard.
See the aforementioned mentioned template for more detailed documentation.
- Clone the project locally
- Optionally checkout a specific version, for example:
git checkout tags/v1.0 - Start your environment (Drupal will be automatically installed)
This project provides two different benchmark scripts:
Runs a simple benchmark locally without submitting results anywhere. Perfect for quick testing.
./benchmark.sh ddev
# or
./benchmark.sh landoRuns a benchmark and submits results to the Public Dashboard. This script:
- Collects system metadata (OS, CPU, memory, versions, etc.)
- Prompts for computer model and additional comments
- Submits results automatically
- Clears cache to refresh the dashboard
./benchmark-submit.sh ddev
# or
lando start && ./benchmark-submit.sh landoThis project comes with Lando and DDEV environments preconfigured. Please find more detailed examples for running the benchmark in these environments below.
lando start
./benchmark.sh lando # Local testing only
./benchmark-submit.sh lando # Submit to dashboard./benchmark.sh ddev # Local testing only
./benchmark-submit.sh ddev # Submit to dashboardNote: Both DDEV and Lando automatically installs Composer dependencies and set up Drupal with existing configuration via post-start hooks. No manual setup required!
By default, benchmark results are sent to the public dashboard. For development, you can enable local mode:
echo "BENCHMARK_ENV=dev" >> .ddev/.env && ddev restartThis will make the benchmark-submit script send data to your local Next.js frontend instead of the public endpoint.
Data is still sent to Supabase, but into a separate dev database.
cd next && ddev npm installddev npm run dev