- Disclaimer
- Localhost Hello World
- Localhost JSON Encode
- Localhost MySQL JSON Encode
- Localhost Redis JSON Encode
- 1GB LAN Test 5,6,7,8
This is not a raw benchmark but a comparison of basic operations between the 3 platforms. The personal nature of this repo is to help me decide on which HTTP JSON API platform to use for a particular project, which is why I include Laravel, Lumen, Iris... I compare basic hello world
, but also basic database queries and json encoding. Feel free to add more comparison tests as needed. You can find actual raw benchmarks of each platform elsewhere.
My original comparison can be read in the README-OLD.md
file, which is not in-depth or accurate enough for my needs.
A simple hello world
test. Everything including wrk
is localhost.
TODO: show results Pure PHP7 Laravel PHP7 Lumen PHP7 Pure Node Express Node Koa Node Pure Go Iris Go
TODO: explain the actual test machine and setup, which versions, PHP-FPM nginx etc...
A hard coded array encoded to JSON. Everything including wrk
is localhost.
TODO: show results
TODO: explain the actual test machine and setup, which versions, PHP-FPM nginx etc...
A MySQL result encoded to JSON. Everything including wrk
is localhost.
TODO: show results
TODO: explain the actual test machine and setup, which versions, PHP-FPM nginx etc... Mysql setup, and config optimizations etc...
A Redis result encoded to JSON. Everything including wrk
is localhost.
TODO: show results
TODO: explain the actual test machine and setup, which versions, PHP-FPM nginx etc... Redis setup and optimizations etc...
Same as test 1,2,3,4 but over 1GB LAN with physical servers and wkr
on separate machine across network.
Thank you for considering contributing to this comparison! Please add issues and comments or fork and pull!
Thanks to @Allendar and @borislemke for their contributions.
See also https://github.com/borislemke/nodejs_vs_php
This comparison is open-sourced software licensed under the MIT license