In the past few days I did some benchmarks between node.js and PHP, so I decided to benchmark again PHP vs Phalcon.
I was quite surprised to find out that these simple synthetic benchmark showed this much of a difference.
- Plain PHP7 - 10k req/s.
- Phalcon 3.0.x - 6k req/s
IMHO this is way too much of a difference even for a synthetic benchmark (ab).
If you wanna know how node.js did, well only 3k req/s with exactly same setup/hardware.
In any case nginx was in front of all app servers, while app servers were using UNIX sockets in order to reduce latency.
The good thing is, that more realistic benchmark using siege showed almost no difference between each configuration. Phalcon, PHP7, and node.js resulted in ~1500 trans/sec (we can easily multiply this by 4-5 for a real world use case...).