Each web framework is evaluated 10 times, each time 10 second to see how many request it can handle. The starting point is in the file
simulate.sh, the script itself will run the Ruby program to output how many requests each web framework handle per minute.
Web frameworks to test:
- Basic GET request (/books)
- Dynamic GET request (/books/:id)
All the web framework are tested against 3 tasks. And to make the result fair, each task is run 10 times for each web framework.
The estimated run time is 8 frameworks x 3 tasks x 10 repetitions x 13 seconds each ~ 3120 seconds ~ 52 minutes
How to run the experiment
By the end of the experiment, there are 3
*.txt file created in
results/summary. They contains statistic metrics for each web framework:
- Average number of requests per second
- Standard deviation
Plot the result
The majority of the code in folder
bench is taken from Bech Micro - by Luislavena.