GitHub - the-benchmarker/web-frameworks: Which is the fastest web framework? (original) (raw)

cd mktemp -d && git clone https://github.com/wg/wrk -b 4.2.0 . && make && sudo mv wrk /usr/bin/

sudo dnf install postgresql{,-server}

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

bundle install
bundle exec rake config

⚠️ 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
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