web frameworks

Which is the fastest web framework?

7006
674
PHP
  • ruby, all tools are made in ruby
sudo dnf install ruby
  • wrk, results are collected using wrk
 cd `mktemp -d` && git clone https://github.com/wg/wrk -b 4.2.0 . && make && sudo mv cp /usr/bin
  • postgresql, results are stored in postgresql
sudo dn install postgresql{,-server}
  • docker, each implementation is implemented in an isolated container
  • jq, processing docker metadata
  • docker-machine if you are on macos

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
cd ${FRAMEWORK} 
make -f .Makefile build 
  • Run
make -f ${FRAMEWORK}/.Makefile collect

⚠️ You need to be on the project main directory ⚠️

Results

Please take a look at https://web-frameworks-benchmark.netlify.app/result