GitHub - the-benchmarker/web-frameworks: Which is the fastest web framework? (original) (raw)
ruby, all tools are made inrubywrk, results are collected usingwrk
cd mktemp -d && git clone https://github.com/wg/wrk -b 4.2.0 . && make && sudo mv wrk /usr/bin/
postgresql, results are stored inpostgresql
sudo dnf install postgresql{,-server}
docker, each implementation is implemented in an isolated containerjq, processingdockermetadatadocker-machineif you are onmacos
You can start and configure a postgres from docker via
docker run --name postgres -v /var/run/postgresql:/var/run/postgresql -e POSTGRES_PASSWORD=postgres -e POSTGRES_HOST_AUTH_METHOD=trust -d -p 5432:5432 postgres dropdb -U postgres benchmark createdb -U postgres benchmark psql -U postgres -d benchmark < dump.sql
Usage
- Setup
bundle install
bundle exec rake config
- Build
⚠️ On macos, you need to use docker-machine to allow docker usage for each framework ⚠️
docker-machine rm default --force
docker-machine create default
eval $(docker-machine env default)
export FRAMEWORK=php/lumen; make -f $FRAMEWORK/.Makefile build
- Run
export FRAMEWORK=php/lumen; make -f $FRAMEWORK/.Makefile collect
⚠️ You need to be on the project main directory ⚠️
Contributing a new benchmark
Please see CONTRIBUTING.md.
Results
Please take a look at https://web-frameworks-benchmark.netlify.app/result