Skip to content

foldright/web-frameworks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • 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 wrk /usr/bin/
  • postgresql, results are stored in postgresql
sudo dnf install postgresql{,-server}
  • docker, each implementation is implemented in an isolated container
  • jq, processing docker metadata
  • docker-machine if you are on macos

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

About

Which is the fastest web framework?

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 55.3%
  • Ruby 5.7%
  • JavaScript 5.2%
  • TypeScript 4.2%
  • Python 3.7%
  • Dockerfile 3.0%
  • Other 22.9%