Going Beyond 800ms: Bringing Uncached Magento TTFB Under 200ms with PHP 8.4
Why 800ms uncached TTFB is far from the ceiling in Magento 2, and how PHP 8.4 plus cleaner DI and layout processing can push uncached pages below 200ms without Redis or RoadRunner.
If you think a TTFB of 800ms is already good, there are always opportunities to optimize things without relying on cache, and those improvements have dramatic implications for both hosting costs and user experience.
With recent research I conducted on improvements in PHP 8.4 (thanks to Benjamin Eberlei for the hint), we can bring the TTFB of rendering uncached pages (once I/O bottlenecks are resolved) to under 200ms, without any Redis cache and without complex runtimes like RoadRunner or Swoole.
The biggest remaining opportunity is writing much cleaner Dependency Injection and Layout processing for Magento.
(Read the follow-up benchmark on 200 domains and 170,000 SKUs: Uncached Magento 2.4.8 + PHP 8.4 in 284ms.)
Dealing with a similar bottleneck in production?
Reach out directly to Ivan Chepurnyi for a performance audit, indexer redesign, or second opinion.