I’m trying out FrankenPHP for my Laravel 12 application because many people say it’s a super-fast PHP runtime compared to PHP-FPM or Apache. However, after testing it, I found that the speed is almost the same as the standard Apache setup I was using before. In fact, for some API endpoints, the response time is still around 1.2 seconds, and for exporting large data sets (around 90,000 rows to Excel via PhpSpreadsheet), it often timeouts even after increasing the max_execution_time to 60 seconds or more.
For simple API endpoints (e.g. fetch data from DB with a simple join query), response time in Apache is around 600-1200ms, in FrankenPHP it is about the same (it doesn’t drop to <200ms as I expected).
What’s wrong? Is FrankenPHP less than optimal for SQL Server? Or is there a specific tuning for Laravel + SQL Server? Perhaps a bottleneck in the SQLSRV driver?
If anyone has had similar experiences, please share any tips or configurations that make FrankenPHP truly superior. Thank you!