Codegea

Development

Custom software developmentSystems, platforms and integrations built around your operationCorporate websitesProfessional, fast and built to inspire trustOnline storesCatalog, payments and shipping ready to sell 24/7WooCommerceFast WooCommerce stores with each country’s payments and invoicingLanding pagesA page focused on one goal: turning visitors into customersMobile appsCustom iOS and Android apps that put your business in your customers’ pockets

Integration and CMS

CMS integrationsWordPress, Strapi, Directus and Arc XP connected to your whole ecosystemArc XPSupport, implementation and integrations for the media platformMigrationsMigrate your site, platform or database without losing anything

Growth and infrastructure

AI automationTechnology does the repetitive work and your team focuses on what mattersWhatsApp AI agentsAn agent that answers, qualifies and closes sales on your WhatsApp, at any hourOn-page SEOBe found and recommended by Google: technical and content optimizationServers & hostingFast, secure servers monitored 24/7
RetainerYour dev team, by the monthFrom 20h a month. Fixed fee.
GASEC: a web redesign, SEO and security that cut its costs by 75%A secure, monitored and more productive site, with a 75% lower infrastructure investment.See the case

By type

EcommerceStores and catalogsCorporate sitesBrand and lead genPlatforms & appsCustom software

Explore

All projectsCases and resultsClientsWho trusts usRetainerMonthly dev team

Blog

All articlesGuides and opinionNewsletterOne email a monthContactWe reply in 24h

Latest articles

Laravel PHP vs Go vs Rust: benchmark and full comparisonWeb · 2026-12-02Laravel Rust vs Laravel PHP: performance, cost and when to switchWeb · 2026-12-02Laravel Go vs Laravel PHP: which to choose for your next projectWeb · 2026-12-02
NewsletterJoin our newsletterPractical web, SEO and AI notes.
ServicesCustom software developmentCorporate websitesOnline storesWooCommerceLanding pagesMobile appsCMS integrationsArc XPMigrationsAI automationWhatsApp AI agentsOn-page SEOServers & hostingYour dev team, by the month
ProjectsA secure, monitored and more productive site, with a 75% lower infrastructure investment.EcommerceCorporate sitesPlatforms & appsAll projectsClientsRetainer
Retainer
BlogAll articlesNewsletterContactLaravel PHP vs Go vs Rust: benchmark and full comparisonLaravel Rust vs Laravel PHP: performance, cost and when to switchLaravel Go vs Laravel PHP: which to choose for your next projectJoin our newsletter
ESEN
Contact us

Web

Laravel Rust vs Laravel PHP: performance, cost and when to switch

Laravel Rust handles 18 times more requests than Laravel PHP in the official benchmark, using a fraction of the CPU. But it compiles slowly, is in beta and needs a different team. We compare both.

Derian Pinto · Founder & Full Stack Developer2026-12-023 min

Laravel Rust arrived with a headline that's hard to ignore: 18 times the throughput of Laravel PHP. Unlike Laravel Go, there is an official benchmark with published code, so we can compare with data.

How it was measured

Laravel built the same simple API (a paginated list and a detail view, 80% and 20% of traffic) in six frameworks, each on a 1 vCPU, 4 GiB server on Laravel Cloud with its own MySQL database. The PHP side used Laravel 13 with Octane on FrankenPHP and PHP 8.5, with 4 workers: not an unoptimized PHP-FPM, but the fast setup.

The numbers

Metric

Laravel PHP

Laravel Rust

Requests per second (best window)

97

1,774

Median latency in that window

1,995 ms

65 ms

Peak RAM

481 MB

179 MB

CPU at 50 requests/s

52.4%

4.2%

RAM at 50 requests/s

134 MB

16 MB

Median latency at 50 requests/s

78 ms

62 ms

Wake from sleep (median)

712 ms

154 ms

Cold build on Laravel Cloud (median)

27 s

3 min 1 s

Source: Laravel's benchmark (Sam Rose, 1 December 2026).

What they mean

  • With little traffic, users barely notice: 78 ms vs 62 ms. What changes is CPU: PHP uses twelve times more for the same work.
  • With heavy traffic, PHP saturates much sooner: past a certain point every extra request queues up and latency climbs into seconds. Rust handles 18 times more on the same server.
  • The cost is paid at build time: compiling Rust takes minutes. With PHP you deploy in seconds. Locally, however, Laravel Rust's incremental rebuilds take about a second.
  • It's an intentionally simple API. With real business logic, heavy queries or external services the gap narrows: the database becomes the limit.

What the benchmark doesn't show

  • Learning curve: Rust has ownership, lifetimes and a demanding compiler. A PHP team needs months to become productive.
  • Ecosystem: Filament, Nova, Livewire and thousands of packages don't exist in Rust.
  • Maturity: Laravel Rust is a beta (0.1.0 in the benchmark); Laravel PHP has been in production for over a decade.
  • Hiring: there are far more PHP developers than Rust developers, and they cost less.
  • Type safety: Rust wins. Routes, validation and authorization are checked at compile time; many errors that show up in production with PHP simply don't compile in Rust.

When to switch to Rust

  • An API with thousands of requests per second where the server bill matters.
  • Performance-critical processes: real time, very heavy queues, intensive computation.
  • A team that already knows Rust or has time to learn it.
  • Isolated parts of the system: you can keep the rest in PHP and share the database.

If you want a middle ground, Laravel Go promises similar speed, compiles in seconds and is much easier to learn.

Verdict

Laravel Rust is the fastest and most type-safe option in the Laravel ecosystem, but also the most expensive in team time. For most websites, stores and internal systems, a well-tuned Laravel PHP (Octane, caching, careful queries) is still enough. Rust is justified when performance is already a problem you can measure in money.

References


Is your Laravel application struggling with traffic? Before rewriting it in Rust, at Codegea we measure where the time goes and optimize it. Let's talk.

Share this article?LinkedInWhatsAppX

Written by

Derian Pinto

Founder & Full Stack Developer

Founder of Codegea. Builds custom websites, stores and platforms, and integrates and supports Arc XP for media companies.

Join our newsletter

An email with news and practical web, SEO and AI notes. No spam, unsubscribe anytime.

Shall we build your project?

Need help? Chat with us