DEV Community

marius-ciclistu
marius-ciclistu

Posted on • Originally published at marius-ciclistu.Medium on

+118% More RPS For Maravel vs. Lumen With Maravel-Framework 10.71.7 Kernel

The latest benchmarks I did show Maravel faster by 118% vs Lumen 10 and Maravelith by 50% vs Laravel 10 Api, both percentages showing an additional 2% increase from my previous benchmarks.


|-----------------------|---------------------------|----------------|-------------|----------------|
| framework | requests per second (rps) | relative (rps) | peak memory | relative (mem) |
|-----------------------|---------------------------|----------------|-------------|----------------|
| pure-php | 7,272.62 (-0.1%) | 24.8 | 0.34 (0%) | 1.0 |
| kumbia-1.2 | 5,645.84 (0.3%) | 19.2 | 0.36 (0%) | 1.1 |
| phroute-2.2 | 5,509.89 (-1.6%) | 18.8 | 0.34 (0%) | 1.0 |
| fastroute-1.3 | 5,508.63 (0.5%) | 18.8 | 0.34 (0%) | 1.0 |
| fatfree-3.9 | 3,648.83 (-0.2%) | 12.4 | 0.39 (0%) | 1.1 |
| yii-2.0-basic | 2,262.97 (-0.3%) | 7.7 | 0.69 (0%) | 2.0 |
| maravel-10.52 | 2,125.67 (0.5%) | 7.2 | 0.37 (0%) | 1.1 |
| lumen-10.0 | 975.80 (0.5%) | 3.3 | 0.38 (0%) | 1.1 |
| maravelith-10.52-api | 586.94 (0.1%) | 2.0 | 0.62 (0%) | 1.8 |
| laravel-10.3-api | 390.49 (-0.2%) | 1.3 | 0.63 (0%) | 1.9 |
| maravelith-10.52 | 301.24 (-2.0%) | 1.0 | 0.64 (0%) | 1.9 |
| laravel-10.3 | 293.50 (-0.1%) | 1.0 | 0.63 (0%) | 1.9 |
|-----------------------|---------------------------|----------------|-------------|----------------|

PHP 8.3.6 (cli) (built: Jan 27 2026 03:09:47) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.6, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.6, Copyright (c), by Zend Technologies
Enter fullscreen mode Exit fullscreen mode

The secret? Bypassing contextual bindings when not used.

So instead of paying the performance tax of contextual bindings, developers can write a standard bind, a singleton, or even better, declare an explicit binding in Maravel/Maravelith Application class to avoid the reflection bottleneck even when the class autowiring is cached.

Top comments (0)