Replies: 1 comment 2 replies
-
Did you try Octane with FPM? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I setup a clean Laravel 9 project.
I then setup Octane with RoadRunner.
I run it on a VirtualBox VM (Ubuntu 22.04) in a Windows 11 host.
My PC:
CPU: Ryzen 5 3600
RAM: 32GB - 2x16GB DDR4 3200Mhz CL16
Storage: Samsung 970 Evo (Not plus), 500GB
The VM:
CPU: 4 Cores
RAM: 4GB
Storage: 10GB fixed
I tested and compared the performance between PHP-FPM and Octane with nginx ,using
wrk
:https://github.com/wg/wrk
Ran the benchmark on Laravel's default homepage
These are the nginx config files for each of the setups:
The average req/sec when using PHP-FPM was higher than when using Octane. This is how I ran
wrk
:I also ran octane with 4 workers:
The average with PHP-FPM was ~480 req/sec, and the average with Octane was ~400 req/sec
Example benchmarks:
Why?
Beta Was this translation helpful? Give feedback.
All reactions