<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Yuichi Okada</title>
    <description>The latest articles on DEV Community by Yuichi Okada (@yichokd).</description>
    <link>https://dev.to/yichokd</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1783269%2F380a19c4-d1e6-4b2d-a689-7cc06a900f7f.png</url>
      <title>DEV Community: Yuichi Okada</title>
      <link>https://dev.to/yichokd</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yichokd"/>
    <language>en</language>
    <item>
      <title>Laravel Rust vs Laravel Go vs Laravel PHP: 8 Real-World Benchmarks (100k Rows)</title>
      <dc:creator>Yuichi Okada</dc:creator>
      <pubDate>Fri, 04 Dec 2026 01:01:06 +0000</pubDate>
      <link>https://dev.to/yichokd/laravel-rust-vs-laravel-go-vs-laravel-php-8-real-world-benchmarks-100k-rows-j8</link>
      <guid>https://dev.to/yichokd/laravel-rust-vs-laravel-go-vs-laravel-php-8-real-world-benchmarks-100k-rows-j8</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published and continuously updated at &lt;a href="https://warpui.com/blog/laravel-rust-vs-go-vs-php-benchmarks" rel="noopener noreferrer"&gt;warpui.com/blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;In early December 2026, Laravel shipped public betas of both &lt;strong&gt;Laravel Rust&lt;/strong&gt; (&lt;code&gt;0.1.4&lt;/code&gt;, built on Tokio and Axum) and &lt;strong&gt;Laravel Go&lt;/strong&gt; (&lt;code&gt;v0.1.0&lt;/code&gt;, built on &lt;code&gt;net/http&lt;/code&gt; and goroutines) within days of each other. Naturally, everyone started asking the same questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How much faster are Laravel Rust and Laravel Go than Laravel PHP in &lt;em&gt;real&lt;/em&gt; apps, not just "Hello World"?&lt;/li&gt;
&lt;li&gt;If you already use PHP, how close do resident runtimes like &lt;strong&gt;Octane (FrankenPHP / Swoole)&lt;/strong&gt; or &lt;strong&gt;Workerman&lt;/strong&gt; get?&lt;/li&gt;
&lt;li&gt;Between Go and Rust, which one actually wins on ORM queries, queues, HTML rendering, validation, and daily compile times?&lt;/li&gt;
&lt;li&gt;And what happens when the database itself becomes the bottleneck?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This page is our &lt;strong&gt;living benchmark guide&lt;/strong&gt;. Every single number below was measured on the exact same machine, against the exact same MySQL 8.4 database and Redis server, with zero HTTP 5xx errors. Whenever we run a new benchmark — often sparked by sharp follow-up questions on X — we add a new chapter here.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Update log&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;2026-12-04&lt;/strong&gt;: Added &lt;strong&gt;Test 8 (Deep Pagination: 100k MySQL rows, &lt;code&gt;OFFSET page=900&lt;/code&gt; vs Keyset / Cursor)&lt;/strong&gt; plus a beginner-friendly guide to how cursor pagination works in MySQL and PostgreSQL.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;2026-12-03&lt;/strong&gt;: Added &lt;strong&gt;Laravel Go v0.1.0&lt;/strong&gt; across all 7 benchmarks, plus a dedicated &lt;strong&gt;PHP Event-Loop showdown&lt;/strong&gt; (PHP-FPM vs Octane FrankenPHP vs Octane Swoole vs Laravel on Workerman vs Raw Workerman).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;2026-12-02&lt;/strong&gt;: Initial 7-benchmark suite comparing Laravel PHP (FPM &amp;amp; Octane FrankenPHP), Laravel Rust, and Pure Axum.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  0. A 60-Second Glossary (If You Are New to Benchmarks)
&lt;/h2&gt;

&lt;p&gt;Before we look at charts, here are the four terms you will see throughout this guide, in plain English:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;RPS (Requests Per Second)&lt;/strong&gt;: How many HTTP requests the server finishes in one second. &lt;strong&gt;Higher is better.&lt;/strong&gt; A busy small-business SaaS might see 20–200 RPS; a viral spike might hit thousands.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;p50 and p99 Latency&lt;/strong&gt;: Latency is how long one user waits for a response (in milliseconds, &lt;strong&gt;lower is better&lt;/strong&gt;). &lt;strong&gt;p50&lt;/strong&gt; is the typical (median) user. &lt;strong&gt;p99&lt;/strong&gt; is the slowest 1% of users — the 1-in-100 unlucky request during a traffic spike. Averages hide pain; p99 reveals it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RSS (Memory Footprint)&lt;/strong&gt;: How much real RAM the server process consumes while under load. &lt;strong&gt;Lower is better&lt;/strong&gt;, especially on $5–$20/month VPS instances where RAM is the first thing you run out of.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PHP-FPM vs Resident Runtimes vs Compiled Single Binaries&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;PHP-FPM&lt;/strong&gt; boots Laravel from scratch on &lt;em&gt;every single request&lt;/em&gt;, runs your controller, and throws everything away. It is rock-solid and isolated, but booting a framework 200 times a second burns CPU.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Resident PHP runtimes&lt;/strong&gt; (Octane with FrankenPHP or Swoole, or Workerman) boot Laravel &lt;em&gt;once&lt;/em&gt; in memory and reuse it across thousands of requests — skipping boot cost completely.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compiled single binaries&lt;/strong&gt; (Laravel Go and Laravel Rust) compile your whole app into one native executable with a tiny memory footprint and true multi-threaded/goroutine concurrency inside one process.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Test Environment &amp;amp; Stacks Tested
&lt;/h2&gt;

&lt;p&gt;Every benchmark ran locally on the same hardware so network jitter never polluted the results:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Machine&lt;/strong&gt;: Apple M4 Max (16 CPU cores, 128 GB RAM), macOS&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database&lt;/strong&gt;: MySQL 8.4.2 (&lt;code&gt;100&lt;/code&gt; users, &lt;code&gt;10,000&lt;/code&gt; posts, &lt;code&gt;30,000&lt;/code&gt; comments for Tests 1–7; scaled to &lt;code&gt;100,000&lt;/code&gt; posts for Test 8)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Queue&lt;/strong&gt;: Local Redis&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Load Generator&lt;/strong&gt;: &lt;code&gt;oha 1.17.0&lt;/code&gt; (HTTP/1.1 Keep-Alive, warmup before every measurement, &lt;strong&gt;0 server errors&lt;/strong&gt; across all reported runs)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We tested &lt;strong&gt;9 stacks&lt;/strong&gt; in total:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Laravel PHP-FPM&lt;/strong&gt; (PHP 8.4.28, Laravel 13, Herd FPM pool)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Laravel Octane + FrankenPHP&lt;/strong&gt; (PHP 8.4.28, Octane 2.26, 16 workers)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Laravel Octane + Swoole&lt;/strong&gt; (PHP 8.4.10, Swoole 6.3.0, 16 workers)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Laravel on Workerman&lt;/strong&gt; (PHP 8.4.10, Workerman 5.2.4, &lt;code&gt;ev&lt;/code&gt; libev/kqueue loop, 16 workers)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Raw Workerman + PDO&lt;/strong&gt; (PHP 8.4.10, no framework, 16 workers — to isolate PHP's event loop from Laravel)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Laravel Go &lt;code&gt;v0.1.0&lt;/code&gt;&lt;/strong&gt; (Go 1.27.4, &lt;code&gt;net/http&lt;/code&gt; + goroutines, &lt;code&gt;DB_MAX_CONNECTIONS=32&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pure Go&lt;/strong&gt; (&lt;code&gt;net/http&lt;/code&gt; + &lt;code&gt;database/sql&lt;/code&gt;, no framework)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Laravel Rust &lt;code&gt;0.1.4&lt;/code&gt;&lt;/strong&gt; (Rust 1.100.1, Tokio/Axum, &lt;code&gt;--release&lt;/code&gt;, &lt;code&gt;mimalloc&lt;/code&gt;, &lt;code&gt;DB_MAX_CONNECTIONS=32&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pure Axum&lt;/strong&gt; (&lt;code&gt;axum 0.8.9&lt;/code&gt; + &lt;code&gt;sqlx 0.8.6&lt;/code&gt;, no framework)&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  The Big Picture: 7-Benchmark Scoreboard (Go 4 — Rust 3)
&lt;/h2&gt;

&lt;p&gt;If you only have two minutes, start with this table. Most people assumed Rust would sweep every single category. It did not: &lt;strong&gt;Laravel Go won 4 out of 7 real-world benchmarks&lt;/strong&gt;, while &lt;strong&gt;Laravel Rust won 3&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1yhv7kl6qo2iyfsoc50e.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1yhv7kl6qo2iyfsoc50e.jpg" alt="Scoreboard comparing Laravel Go v0.1.0, Laravel Rust 0.1.4, and Laravel PHP Octane across API throughput, 1,000-user spike latency, and developer build loop" width="800" height="447"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Head-to-head overview: Rust dominates raw API throughput and extreme tail latency, while Go wins heavy ORM, queues, large templates, and developer rebuild speed.&lt;/em&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Benchmark&lt;/th&gt;
&lt;th&gt;PHP Octane (16w)&lt;/th&gt;
&lt;th&gt;Laravel Go (&lt;code&gt;v0.1.0&lt;/code&gt;)&lt;/th&gt;
&lt;th&gt;Laravel Rust (&lt;code&gt;0.1.4&lt;/code&gt;)&lt;/th&gt;
&lt;th&gt;Winner&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;1. API Ping&lt;/strong&gt; (No DB, &lt;code&gt;c=50&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;24,887 RPS&lt;/td&gt;
&lt;td&gt;111,610 RPS&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;149,963 RPS&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Rust&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;1b. MySQL PK Lookup&lt;/strong&gt; (&lt;code&gt;posts/5000&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;16,575 RPS&lt;/td&gt;
&lt;td&gt;38,603 RPS&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;77,292 RPS&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Rust&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;1c. MySQL Pagination&lt;/strong&gt; (&lt;code&gt;page=1&lt;/code&gt;, 10k rows)&lt;/td&gt;
&lt;td&gt;5,523 RPS&lt;/td&gt;
&lt;td&gt;10,549 RPS&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;14,289 RPS&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Rust&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;2. Heavy ORM&lt;/strong&gt; (&lt;code&gt;1,000 posts&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;247.7 RPS&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;2,283.8 RPS&lt;/strong&gt; (3.5× Rust)&lt;/td&gt;
&lt;td&gt;656.3 RPS&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Go&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;2b. Heavy ORM&lt;/strong&gt; (&lt;code&gt;2,000 + relations&lt;/code&gt;, 2.9 MB)&lt;/td&gt;
&lt;td&gt;28.9 RPS&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;290.9 RPS&lt;/strong&gt; (3.1× Rust)&lt;/td&gt;
&lt;td&gt;94.9 RPS&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Go&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;3. HTML Render&lt;/strong&gt; (100 rows)&lt;/td&gt;
&lt;td&gt;2,036 RPS (Blade)&lt;/td&gt;
&lt;td&gt;10,518 RPS&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;11,665 RPS&lt;/strong&gt; (MiniJinja)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Rust&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;3b. HTML Render&lt;/strong&gt; (500 rows)&lt;/td&gt;
&lt;td&gt;574 RPS (Blade)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;3,813 RPS&lt;/strong&gt; (&lt;code&gt;html/template&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;3,010 RPS (MiniJinja)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Go&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;4. Redis Queue&lt;/strong&gt; (10k jobs, &lt;code&gt;c=8&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;15,351/s (449 MB)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;22,456/s&lt;/strong&gt; (32.9 MB)&lt;/td&gt;
&lt;td&gt;20,021/s (27.0 MB)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Go&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;5. 1,000-User Spike&lt;/strong&gt; (&lt;code&gt;c=1000&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;2,991 RPS / p99 417ms&lt;/td&gt;
&lt;td&gt;11,523 RPS / p99 281ms&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;12,622 RPS / p99 103ms&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Rust&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;6. Nested JSON Validation&lt;/strong&gt; (Valid 200)&lt;/td&gt;
&lt;td&gt;2,672 RPS&lt;/td&gt;
&lt;td&gt;1,726 RPS &lt;em&gt;(trap!)&lt;/em&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;55,136 RPS&lt;/strong&gt; (32× Go)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Rust&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;7. Dev Loop&lt;/strong&gt; (Clean / 1-line rebuild)&lt;/td&gt;
&lt;td&gt;0s / 0s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;7.16s / 0.36s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;36.3s / 1.11s–4.63s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Go&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;8. Deep Pagination&lt;/strong&gt; (&lt;code&gt;page=900&lt;/code&gt;, 100k rows)&lt;/td&gt;
&lt;td&gt;23.5 RPS &lt;em&gt;(DB wall)&lt;/em&gt;
&lt;/td&gt;
&lt;td&gt;20.9 RPS &lt;em&gt;(DB wall)&lt;/em&gt;
&lt;/td&gt;
&lt;td&gt;21.4 RPS &lt;em&gt;(DB wall)&lt;/em&gt;
&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Tie (SQL)&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;8b. Keyset / Cursor&lt;/strong&gt; (same deep page)&lt;/td&gt;
&lt;td&gt;6,684 RPS&lt;/td&gt;
&lt;td&gt;26,845 RPS&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;54,434 RPS&lt;/strong&gt; (2,544×)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Rust&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Now let's walk through each test in detail — what we measured, &lt;em&gt;why&lt;/em&gt; the numbers landed where they did, and what it means for real applications.&lt;/p&gt;




&lt;h2&gt;
  
  
  Test 1: Baseline API Speed &amp;amp; the PHP Event-Loop Showdown
&lt;/h2&gt;

&lt;p&gt;Right after we published our first FPM vs Octane vs Rust numbers, a reader on X (&lt;code&gt;@OnlyAICanDo&lt;/code&gt;) asked the exact right follow-up:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"why fpm? no swoole or workerman? why why why"&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Fair critique. Comparing synchronous PHP-FPM against async Rust/Go is not an apples-to-apples test of PHP itself. So we installed &lt;strong&gt;Swoole 6.3.0&lt;/strong&gt; and &lt;strong&gt;Workerman 5.2.4&lt;/strong&gt; (with the &lt;code&gt;ev&lt;/code&gt; libev/kqueue event loop) and ran all PHP runtimes side-by-side with 16 workers against Go and Rust.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd4gr05vhszh52gl6copv.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd4gr05vhszh52gl6copv.jpg" alt="Benchmark comparing PHP-FPM, Octane Swoole, Octane FrankenPHP, Laravel on Workerman, Raw Workerman, Laravel Go, and Laravel Rust" width="800" height="447"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;PHP's event loops are genuinely fast — Raw Workerman even edges out Laravel Rust on Ping and PK Lookup. Yet once Eloquent hydrates 2,000 rows, every PHP runtime hits the same ceiling.&lt;/em&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Benchmark&lt;/th&gt;
&lt;th&gt;PHP-FPM&lt;/th&gt;
&lt;th&gt;Octane Swoole (16w)&lt;/th&gt;
&lt;th&gt;Octane FrankenPHP (16w)&lt;/th&gt;
&lt;th&gt;Laravel Workerman (16w, &lt;code&gt;ev&lt;/code&gt;)&lt;/th&gt;
&lt;th&gt;Laravel Go (&lt;code&gt;v0.1.0&lt;/code&gt;)&lt;/th&gt;
&lt;th&gt;Laravel Rust (&lt;code&gt;0.1.4&lt;/code&gt;)&lt;/th&gt;
&lt;th&gt;Raw Workerman (no framework)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;API Ping&lt;/strong&gt; (No DB, &lt;code&gt;c=50&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;204&lt;/td&gt;
&lt;td&gt;20,184&lt;/td&gt;
&lt;td&gt;24,887&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;49,889&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;111,610&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;149,963&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;em&gt;154,283&lt;/em&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;MySQL PK Lookup&lt;/strong&gt; (&lt;code&gt;posts/5000&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;195&lt;/td&gt;
&lt;td&gt;11,821&lt;/td&gt;
&lt;td&gt;16,575&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;22,351&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;38,603&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;77,292&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;em&gt;86,929&lt;/em&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;MySQL Pagination&lt;/strong&gt; (&lt;code&gt;page=1&lt;/code&gt;, 10k)&lt;/td&gt;
&lt;td&gt;188&lt;/td&gt;
&lt;td&gt;4,173&lt;/td&gt;
&lt;td&gt;5,523&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;5,664&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;10,549&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;14,289&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;em&gt;12,791&lt;/em&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;1,000-User Spike&lt;/strong&gt; (&lt;code&gt;c=1000&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;3,766&lt;/td&gt;
&lt;td&gt;2,991&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;5,364&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;11,523&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;12,622&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;em&gt;13,055&lt;/em&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Memory RSS&lt;/strong&gt; (under load)&lt;/td&gt;
&lt;td&gt;~1,856 MB&lt;/td&gt;
&lt;td&gt;1,282 MB&lt;/td&gt;
&lt;td&gt;238–697 MB&lt;/td&gt;
&lt;td&gt;2,154 MB&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;55 MB&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;67 MB&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;em&gt;196 MB&lt;/em&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  What this taught us
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;PHP-FPM's 204 RPS is almost 100% framework boot cost.&lt;/strong&gt; Moving the &lt;em&gt;exact same Laravel 13 code&lt;/em&gt; to Octane FrankenPHP jumped throughput by &lt;strong&gt;122×&lt;/strong&gt; (24,887 RPS), and moving to Laravel on Workerman (&lt;code&gt;ev&lt;/code&gt;) jumped it by &lt;strong&gt;244×&lt;/strong&gt; (49,889 RPS).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PHP's raw event loop is legitimately Rust-class on trivial I/O.&lt;/strong&gt; Raw Workerman + PDO hit &lt;strong&gt;154,283 RPS&lt;/strong&gt; on &lt;code&gt;/api/ping&lt;/code&gt; and &lt;strong&gt;86,929 RPS&lt;/strong&gt; on primary-key lookup — slightly ahead of Laravel Rust (149,963 / 77,292).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Framework tax on Laravel Rust is tiny (5.9%).&lt;/strong&gt; Compare Laravel Rust (149,963 RPS) against Pure Axum (159,337 RPS): you get Laravel's routing, models, and ergonomics for less than a 6% overhead.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch out for coroutine + PDO collisions in PHP.&lt;/strong&gt; When we ran Workerman v5 with Swoole's auto-coroutine loop, Laravel's shared per-worker PDO connection threw &lt;code&gt;SQLSTATE[HY000] 2014&lt;/code&gt; (&lt;code&gt;Cannot execute queries while other unbuffered queries are active&lt;/code&gt;). Switching Workerman to the &lt;code&gt;ev&lt;/code&gt; (libev) loop fixed it cleanly with 0 errors. Native Go and Rust connection pools avoid this entire class of bugs by design.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Test 2: Heavy ORM Hydration &amp;amp; Eager Loading (Go's Biggest Upset)
&lt;/h2&gt;

&lt;p&gt;Real business apps rarely return &lt;code&gt;{"ok": true}&lt;/code&gt;. They query hundreds or thousands of rows, eager-load relationships (&lt;code&gt;user&lt;/code&gt;, &lt;code&gt;comments&lt;/code&gt;), build objects in memory (&lt;strong&gt;ORM hydration&lt;/strong&gt;), and serialize megabytes of JSON.&lt;/p&gt;

&lt;p&gt;We tested two heavy endpoints (&lt;code&gt;c=32&lt;/code&gt;):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;GET /api/bench2/posts-1000&lt;/code&gt;: 1,000 posts ordered by &lt;code&gt;id DESC&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;GET /api/bench2/posts-with-relations-2000&lt;/code&gt;: &lt;strong&gt;2,000 posts + 2,000 authors + 6,000 comments&lt;/strong&gt; (~2.89 MB JSON response per request)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjqy5yy97xwgxlgph4eh8.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjqy5yy97xwgxlgph4eh8.jpg" alt="Heavy ORM benchmark comparing Laravel Rust vs PHP Octane FrankenPHP on 1,000 posts and 2,000 posts with relations" width="800" height="447"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;First comparison (PHP vs Rust): Moving off Eloquent already delivered a 3.3× speedup and cut memory bloat.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb7naqnp8xi3z9indfy77.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb7naqnp8xi3z9indfy77.jpg" alt="Three upsets where Laravel Go v0.1.0 beat Laravel Rust 0.1.4: Heavy ORM 3.1x, Redis Queue 22.5k/s, and 500-row HTML rendering" width="800" height="447"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Then Laravel Go v0.1.0 entered — and beat Laravel Rust by 3.1× to 3.5× on Heavy ORM, while also winning Redis Queues and 500-row HTML rendering.&lt;/em&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Endpoint&lt;/th&gt;
&lt;th&gt;Octane Swoole&lt;/th&gt;
&lt;th&gt;Laravel Workerman&lt;/th&gt;
&lt;th&gt;Octane FrankenPHP&lt;/th&gt;
&lt;th&gt;Laravel Rust&lt;/th&gt;
&lt;th&gt;Laravel Go (&lt;code&gt;v0.1.0&lt;/code&gt;)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;1,000 posts&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;233.1 RPS&lt;/td&gt;
&lt;td&gt;146.7 RPS&lt;/td&gt;
&lt;td&gt;247.7 RPS&lt;/td&gt;
&lt;td&gt;656.3 RPS&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;2,283.8 RPS&lt;/strong&gt; (3.5× Rust / 9.2× PHP)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;2,000 posts + relations&lt;/code&gt; (2.9 MB)&lt;/td&gt;
&lt;td&gt;23.6 RPS&lt;/td&gt;
&lt;td&gt;24.5 RPS&lt;/td&gt;
&lt;td&gt;28.9 RPS&lt;/td&gt;
&lt;td&gt;94.9 RPS&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;290.9 RPS&lt;/strong&gt; (3.1× Rust / 10× PHP)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Why did this happen?
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Event loops cannot speed up Eloquent.&lt;/strong&gt; Once PHP spends 95% of its time instantiating 10,000 Eloquent model objects and converting them to arrays and JSON, Swoole (23.6 RPS), Workerman (24.5 RPS), and FrankenPHP (28.9 RPS) all collapse to the exact same ceiling — while consuming &lt;strong&gt;1.3 GB to 2.2 GB of RAM&lt;/strong&gt; across 16 workers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Why did Go beat Rust by 3.1× here?&lt;/strong&gt; In &lt;code&gt;laravel-rust 0.1.4&lt;/code&gt;, bulk eager-loading and &lt;code&gt;serde_json&lt;/code&gt; allocation across thousands of nested dynamic records carry extra cloning/allocation overhead compared to Go's compact struct scanning (&lt;code&gt;database/sql&lt;/code&gt; → typed Go structs → &lt;code&gt;encoding/json&lt;/code&gt;). This is a great reminder: &lt;strong&gt;never assume "Rust is always faster than Go" without measuring your actual workload.&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Test 3: Server-Side HTML Rendering &amp;amp; Inertia JSON
&lt;/h2&gt;

&lt;p&gt;Not every app is a pure JSON API. Admin panels, dashboards, and content sites render large HTML tables or Inertia.js payloads. We rendered 100-row and 500-row tables with escaping, loops, and status badges using each stack's native engine:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Laravel PHP&lt;/strong&gt;: Blade&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Laravel Rust&lt;/strong&gt;: MiniJinja&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Laravel Go&lt;/strong&gt;: &lt;code&gt;html/template&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fby2srngeuyg2lh80vzb5.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fby2srngeuyg2lh80vzb5.jpg" alt="HTML rendering benchmark comparing Laravel PHP Blade vs Laravel Rust MiniJinja on 100-row and 500-row tables" width="800" height="447"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Compiled template engines outpace PHP Blade by 5× to 6.6× on data-heavy tables.&lt;/em&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Workload&lt;/th&gt;
&lt;th&gt;PHP Blade (Octane 16w)&lt;/th&gt;
&lt;th&gt;Laravel Go (&lt;code&gt;html/template&lt;/code&gt;)&lt;/th&gt;
&lt;th&gt;Laravel Rust (MiniJinja)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;100-row HTML table&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;2,036 RPS&lt;/td&gt;
&lt;td&gt;10,518 RPS&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;11,665 RPS&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;500-row HTML table&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;574 RPS&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;3,813 RPS&lt;/strong&gt; (6.6× Blade)&lt;/td&gt;
&lt;td&gt;3,010 RPS (5.2× Blade)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;500-row Inertia JSON&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;3,855 RPS&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;3,224 RPS&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;At 100 rows, Rust's MiniJinja edges ahead. At 500 rows (closer to a dense admin table or invoice list), &lt;strong&gt;Go overtakes Rust&lt;/strong&gt; on both HTML (&lt;code&gt;3,813&lt;/code&gt; vs &lt;code&gt;3,010&lt;/code&gt; RPS) and Inertia JSON (&lt;code&gt;3,855&lt;/code&gt; vs &lt;code&gt;3,224&lt;/code&gt; RPS).&lt;/p&gt;




&lt;h2&gt;
  
  
  Test 4: Redis Queue Workers (10,000 Jobs &amp;amp; 16.6× Less RAM)
&lt;/h2&gt;

&lt;p&gt;Background queues (sending emails, generating PDFs, syncing webhooks, processing invoices) run 24/7 in production. Every worker process sits in RAM all day and all night.&lt;/p&gt;

&lt;p&gt;We pushed &lt;strong&gt;10,000 jobs&lt;/strong&gt; into Redis and timed how fast each stack drained them with 1 worker and with 8 concurrent workers, while recording peak memory (RSS).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3x907v7bpyfnfd2s5eb6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3x907v7bpyfnfd2s5eb6.png" alt="Redis queue worker benchmark draining 10,000 jobs showing throughput and 16.6x RAM savings" width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;PHP needs 8 OS processes (449 MB RAM) to reach 15.3k jobs/sec. Go and Rust run 8 workers inside a single process using just 27–33 MB RAM.&lt;/em&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Concurrency&lt;/th&gt;
&lt;th&gt;Laravel PHP (&lt;code&gt;queue:work&lt;/code&gt;)&lt;/th&gt;
&lt;th&gt;Laravel Go (&lt;code&gt;v0.1.0&lt;/code&gt;)&lt;/th&gt;
&lt;th&gt;Laravel Rust (&lt;code&gt;0.1.4&lt;/code&gt;)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;1 worker (&lt;code&gt;c=1&lt;/code&gt;)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;3,806 jobs/s (55.9 MB)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;12,196 jobs/s&lt;/strong&gt; (31.6 MB)&lt;/td&gt;
&lt;td&gt;9,743 jobs/s (26.4 MB)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;8 workers (&lt;code&gt;c=8&lt;/code&gt;)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;15,351 jobs/s (&lt;strong&gt;449.2 MB&lt;/strong&gt;)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;22,456 jobs/s&lt;/strong&gt; (&lt;strong&gt;32.9 MB&lt;/strong&gt;)&lt;/td&gt;
&lt;td&gt;20,021 jobs/s (&lt;strong&gt;27.0 MB&lt;/strong&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Why beginners should care about this chart
&lt;/h3&gt;

&lt;p&gt;In PHP, scaling Horizon/queue workers from 1 to 8 means spawning &lt;strong&gt;8 separate OS processes&lt;/strong&gt;, multiplying your RAM usage by 8× (56 MB → 449 MB). In Go and Rust, scaling from 1 to 8 workers means spawning &lt;strong&gt;8 lightweight goroutines or async tasks inside the same binary&lt;/strong&gt;, adding barely &lt;strong&gt;1 MB&lt;/strong&gt; of RAM (27–33 MB total — &lt;strong&gt;14× to 16.6× less RAM than PHP&lt;/strong&gt;). On a small VPS, that is the difference between OOM crashes and total calm.&lt;/p&gt;




&lt;h2&gt;
  
  
  Test 5: The 1,000-User Traffic Spike (&lt;code&gt;c=50 → 1,000&lt;/code&gt;)
&lt;/h2&gt;

&lt;p&gt;Average throughput on a quiet server can hide catastrophic tail latency. What happens when a newsletter blast or product launch suddenly hits your MySQL pagination endpoint (&lt;code&gt;GET /api/posts?page=1&lt;/code&gt;, 10k rows) with &lt;strong&gt;1,000 simultaneous connections&lt;/strong&gt;?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fek5ujjysrt5jeste8zij.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fek5ujjysrt5jeste8zij.png" alt="1,000 concurrent connections spike benchmark comparing p99 latency and RPS across Laravel Rust, Laravel Go, and PHP Octane" width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;At c=50, Go actually leads with 10 ms p99. Under a 1,000-user spike, Rust's Tokio async runtime keeps p99 latency 2.7× lower than Go and 4.1× lower than Octane.&lt;/em&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Concurrency&lt;/th&gt;
&lt;th&gt;PHP Octane (16w) p99&lt;/th&gt;
&lt;th&gt;Laravel Go (&lt;code&gt;v0.1.0&lt;/code&gt;) p99&lt;/th&gt;
&lt;th&gt;Laravel Rust (&lt;code&gt;0.1.4&lt;/code&gt;) p99&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;c=50&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;46 ms&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;10 ms&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;31 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;c=200&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;99 ms&lt;/td&gt;
&lt;td&gt;51 ms&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;38 ms&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;c=500&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;219 ms&lt;/td&gt;
&lt;td&gt;142 ms&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;75 ms&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;c=1,000&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;417 ms (2,991 RPS)&lt;/td&gt;
&lt;td&gt;281 ms (11,523 RPS)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;103 ms&lt;/strong&gt; (&lt;strong&gt;12,622 RPS&lt;/strong&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;PHP Octane (16 workers)&lt;/strong&gt; hits its ~3,000 RPS ceiling early. Every connection above 16 waits in a queue, pushing p99 to 417 ms.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Laravel Go&lt;/strong&gt; starts fastest at &lt;code&gt;c=50&lt;/code&gt; (10 ms p99) and stays neck-and-neck with Rust in RPS at &lt;code&gt;c=1,000&lt;/code&gt; (11,523 vs 12,622), but garbage-collection pauses and goroutine scheduling widen its p99 tail to 281 ms.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Laravel Rust&lt;/strong&gt; shines under extreme concurrency: no GC pauses, keeping p99 at &lt;strong&gt;103 ms&lt;/strong&gt; even with 1,000 users hammering the endpoint simultaneously.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Test 6: Nested JSON Validation — The 32× Trap in Laravel Go &lt;code&gt;v0.1.0&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;Almost every real POST endpoint validates nested payloads (customer info, shipping address, and an array of line items). We sent realistic nested order payloads (both valid &lt;code&gt;200 OK&lt;/code&gt; and invalid &lt;code&gt;422 Unprocessable Entity&lt;/code&gt;) to all three stacks.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F98tdx1jqk976y8upzwr1.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F98tdx1jqk976y8upzwr1.jpg" alt="Nested JSON validation benchmark exposing a 32x reflection bottleneck in Laravel Go v0.1.0 alongside the full 7-benchmark scoreboard" width="800" height="447"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The biggest surprise of the series: Laravel Rust hit 55k–142k RPS with compile-time validation, while Laravel Go v0.1.0 dropped below PHP Octane due to runtime reflection.&lt;/em&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Case&lt;/th&gt;
&lt;th&gt;PHP Octane (16w)&lt;/th&gt;
&lt;th&gt;Laravel Go (&lt;code&gt;v0.1.0&lt;/code&gt;)&lt;/th&gt;
&lt;th&gt;Laravel Rust (&lt;code&gt;0.1.4&lt;/code&gt;)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Valid nested order (&lt;code&gt;200 OK&lt;/code&gt;)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;2,672 RPS&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;1,726 RPS&lt;/strong&gt; &lt;em&gt;(slower than PHP!)&lt;/em&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;55,136 RPS&lt;/strong&gt; (&lt;strong&gt;32× Go / 20.6× PHP&lt;/strong&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Invalid nested order (&lt;code&gt;422&lt;/code&gt;)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;7,665 RPS&lt;/td&gt;
&lt;td&gt;7,168 RPS&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;141,843 RPS&lt;/strong&gt; (&lt;strong&gt;20× Go / 18.5× PHP&lt;/strong&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Why did Go lose to PHP here?
&lt;/h3&gt;

&lt;p&gt;In Laravel Rust, &lt;code&gt;#[laravel::input]&lt;/code&gt; generates zero-reflection validation code at &lt;strong&gt;compile time&lt;/strong&gt;. In Laravel Go &lt;code&gt;v0.1.0&lt;/code&gt;, &lt;code&gt;r.Validate[OrderInput]()&lt;/code&gt; relies heavily on runtime reflection over nested structs and slices on every request. Because Go &lt;code&gt;v0.1.0&lt;/code&gt; is an early beta, this is almost certainly fixable in a future release (and we will re-test as soon as it lands!). For now, if you build high-throughput write APIs in Laravel Go &lt;code&gt;v0.1.0&lt;/code&gt;, benchmark your validation layer.&lt;/p&gt;




&lt;h2&gt;
  
  
  Test 7: Runtime Speed vs Developer Loop (Build Time &amp;amp; Cold Start)
&lt;/h2&gt;

&lt;p&gt;Fast production servers do not help if your team wastes hours waiting for compilers. Especially in the era of AI-assisted coding — where you edit, compile, and test dozens of times an hour — &lt;strong&gt;incremental rebuild time&lt;/strong&gt; matters enormously.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fols6lagpzi0c31tkw56a.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fols6lagpzi0c31tkw56a.jpg" alt="Runtime vs Developer Loop comparison showing clean build time, 1-line incremental rebuild, cold start, binary size, and RAM" width="800" height="447"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Go hits the sweet spot: near-native runtime performance, 55 MB RAM, and a 0.36-second 1-line rebuild that feels almost as instant as PHP.&lt;/em&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;PHP Octane (16w)&lt;/th&gt;
&lt;th&gt;Laravel Go (&lt;code&gt;v0.1.0&lt;/code&gt;)&lt;/th&gt;
&lt;th&gt;Laravel Rust (&lt;code&gt;0.1.4&lt;/code&gt;)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Clean build&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;0 s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;7.16 s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;36.3 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;1-line edit rebuild&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0 s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.36 s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;1.11 s (dev) / 4.63 s (release)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Cold start&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;301 ms&lt;/td&gt;
&lt;td&gt;30.8 ms&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;21.6 ms&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Production binary size&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;PHP + &lt;code&gt;vendor/&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;43.5 MB&lt;/strong&gt; (31 MB stripped)&lt;/td&gt;
&lt;td&gt;58.9 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;RAM under load&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;238–697 MB&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;54.6 MB&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;67.0 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Notice the trade-off:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;PHP&lt;/strong&gt; still has the fastest edit-save-refresh loop (0 seconds), at the cost of higher RAM and lower ceiling on heavy workloads.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Laravel Go&lt;/strong&gt; compiles a 1-line change in &lt;strong&gt;0.36 seconds&lt;/strong&gt; and cold-starts in &lt;strong&gt;30.8 ms&lt;/strong&gt; while keeping RAM around &lt;strong&gt;55 MB&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Laravel Rust&lt;/strong&gt; takes longer to compile (36.3 s clean / 1.1–4.6 s incremental), paying that cost up front for zero-GC tail latency and compile-time safety.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Test 8 (2026-12-04): Deep Pagination (&lt;code&gt;page=900&lt;/code&gt; on 100k Rows) — Where Language Stops Mattering
&lt;/h2&gt;

&lt;p&gt;After we posted Test 5 (&lt;code&gt;GET /api/posts?page=1&lt;/code&gt;), &lt;code&gt;@codynaut&lt;/code&gt; left one of the sharpest comments of the entire series:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"page 1 is the friendly case, do page 900 next. offset makes mysql read and throw away every row it skips, and that's usually where go vs php stops mattering"&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;They were completely right to challenge &lt;code&gt;page=1&lt;/code&gt;. So we scaled the MySQL 8.4 &lt;code&gt;posts&lt;/code&gt; table from 10,000 rows to &lt;strong&gt;100,000 rows&lt;/strong&gt; and tested three endpoints across all three stacks (0 HTTP errors across all 18 runs):&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;OFFSET&lt;/code&gt; Page 1&lt;/strong&gt;: &lt;code&gt;GET /api/posts?page=1&lt;/code&gt; (&lt;code&gt;paginate(15)&lt;/code&gt; → &lt;code&gt;OFFSET 0 LIMIT 15&lt;/code&gt; + &lt;code&gt;COUNT(*)&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;OFFSET&lt;/code&gt; Page 900&lt;/strong&gt;: &lt;code&gt;GET /api/posts?page=900&lt;/code&gt; (&lt;code&gt;paginate(15)&lt;/code&gt; → &lt;code&gt;OFFSET 13,485 LIMIT 15&lt;/code&gt; + &lt;code&gt;COUNT(*)&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keyset / Cursor (same deep page)&lt;/strong&gt;: &lt;code&gt;GET /api/posts-cursor?before_id=86516&lt;/code&gt; (&lt;code&gt;WHERE published = 1 AND id &amp;lt; ? ORDER BY id DESC LIMIT 15&lt;/code&gt;, no &lt;code&gt;OFFSET&lt;/code&gt;, no &lt;code&gt;COUNT(*)&lt;/code&gt;)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk06vkh2rca71hhggpnzz.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk06vkh2rca71hhggpnzz.jpg" alt="Deep pagination benchmark on 100,000 MySQL rows comparing OFFSET Page 1, OFFSET Page 900, and Keyset Cursor across Laravel Rust, Laravel Go, and PHP Octane" width="800" height="447"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;At OFFSET page=900, Rust, Go, and PHP all collapse to 21–24 RPS. Switching to Keyset / Cursor unlocks up to a 2,544× speedup — and brings the 4×–8× runtime gap right back.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  First, look at MySQL &lt;code&gt;EXPLAIN ANALYZE&lt;/code&gt; (100,000 rows)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;page=1&lt;/code&gt; (&lt;code&gt;OFFSET 0&lt;/code&gt;): &lt;strong&gt;0.047 ms&lt;/strong&gt; (reverse &lt;code&gt;PRIMARY&lt;/code&gt; index scan, reads 15 rows)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;COUNT(*)&lt;/code&gt; (&lt;code&gt;WHERE published = 1&lt;/code&gt;): &lt;strong&gt;8.59 ms&lt;/strong&gt; (covering index scan over all 100,000 rows)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;page=900&lt;/code&gt; (&lt;code&gt;OFFSET 13,485&lt;/code&gt;): &lt;strong&gt;131 ms&lt;/strong&gt; (MySQL scans all 100,000 rows via &lt;code&gt;idx_posts_published_created&lt;/code&gt;, sorts 13,500 rows, and throws 13,485 away!)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keyset / Cursor&lt;/strong&gt; (&lt;code&gt;id &amp;lt; 86516 LIMIT 15&lt;/code&gt;): &lt;strong&gt;0.0156 ms&lt;/strong&gt; (reverse &lt;code&gt;PRIMARY&lt;/code&gt; range scan, reads only 15 rows — &lt;strong&gt;8,400× faster SQL!&lt;/strong&gt;)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Benchmark Results (&lt;code&gt;c=50&lt;/code&gt; and &lt;code&gt;c=200&lt;/code&gt;)
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Case (100,000 MySQL rows)&lt;/th&gt;
&lt;th&gt;Laravel Rust&lt;/th&gt;
&lt;th&gt;Laravel Go (&lt;code&gt;v0.1.0&lt;/code&gt;)&lt;/th&gt;
&lt;th&gt;PHP Octane (16w)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;&lt;code&gt;OFFSET&lt;/code&gt; Page 1&lt;/strong&gt; (&lt;code&gt;c=50&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;1,354 RPS (p99 177 ms)&lt;/td&gt;
&lt;td&gt;1,303 RPS (p99 180 ms)&lt;/td&gt;
&lt;td&gt;1,265 RPS (p99 49.7 ms)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;&lt;code&gt;OFFSET&lt;/code&gt; Page 900&lt;/strong&gt; (&lt;code&gt;c=50&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;21.4 RPS&lt;/strong&gt; (p99 4.69 s)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;20.9 RPS&lt;/strong&gt; (p99 4.94 s)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;23.5 RPS&lt;/strong&gt; (p99 3.25 s)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Keyset / Cursor&lt;/strong&gt; (&lt;code&gt;c=50&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;54,434 RPS&lt;/strong&gt; (p99 2.2 ms, &lt;strong&gt;2,544×&lt;/strong&gt;)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;26,845 RPS&lt;/strong&gt; (p99 4.4 ms, &lt;strong&gt;1,284×&lt;/strong&gt;)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;6,684 RPS&lt;/strong&gt; (p99 11.8 ms, &lt;strong&gt;284×&lt;/strong&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;&lt;code&gt;OFFSET&lt;/code&gt; Page 900&lt;/strong&gt; (&lt;code&gt;c=200&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;37.7 RPS (p99 9.94 s)&lt;/td&gt;
&lt;td&gt;36.6 RPS (p99 9.52 s)&lt;/td&gt;
&lt;td&gt;38.1 RPS (p99 9.75 s)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Keyset / Cursor&lt;/strong&gt; (&lt;code&gt;c=200&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;54,635 RPS&lt;/strong&gt; (p99 6.0 ms)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;32,332 RPS&lt;/strong&gt; (p99 23.1 ms)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;6,784 RPS&lt;/strong&gt; (p99 35.3 ms)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Beginner's Guide: How Keyset / Cursor Pagination Works (and Does PostgreSQL Have the Same Issue?)
&lt;/h3&gt;

&lt;p&gt;Think of &lt;code&gt;OFFSET&lt;/code&gt; like flipping through a physical book from page 1 every single time you want to reach page 900. &lt;strong&gt;Keyset / Cursor pagination&lt;/strong&gt; is like putting a bookmark on the last row you saw (&lt;code&gt;id = 86516&lt;/code&gt;) and jumping straight to that bookmark via the B-tree index.&lt;/p&gt;

&lt;p&gt;To implement it cleanly in production (both &lt;strong&gt;MySQL&lt;/strong&gt; and &lt;strong&gt;PostgreSQL&lt;/strong&gt; suffer from the exact same &lt;code&gt;OFFSET&lt;/code&gt; and &lt;code&gt;COUNT(*)&lt;/code&gt; costs):&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Always include a unique tie-breaker (&lt;code&gt;id&lt;/code&gt;)&lt;/strong&gt; so rows with identical timestamps never disappear or duplicate. In PostgreSQL, row-value comparison makes this one line:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;   &lt;span class="c1"&gt;-- Recommended index: CREATE INDEX idx_posts_pub_created_id ON posts (created_at DESC, id DESC) WHERE published = true;&lt;/span&gt;
   &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;
   &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;posts&lt;/span&gt;
   &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;published&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
     &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;created_at&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
   &lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;created_at&lt;/span&gt; &lt;span class="k"&gt;DESC&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="k"&gt;DESC&lt;/span&gt;
   &lt;span class="k"&gt;LIMIT&lt;/span&gt; &lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;-- fetch per_page + 1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Use &lt;code&gt;LIMIT + 1&lt;/code&gt; instead of &lt;code&gt;COUNT(*)&lt;/code&gt;&lt;/strong&gt;: Ask for 16 rows when showing 15. If 16 come back, you know there is a next page (&lt;code&gt;has_more = true&lt;/code&gt;), drop row 16, and return row 15's key as &lt;code&gt;next_cursor&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Know the trade-off&lt;/strong&gt;: Cursor pagination cannot jump straight to "Page 47", so it is ideal for feeds, logs, APIs, and "Next / Previous" tables. In Laravel PHP, &lt;code&gt;-&amp;gt;cursorPaginate(15)&lt;/code&gt; handles all of this automatically.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;The golden rule from Test 8&lt;/strong&gt;: &lt;strong&gt;Fix the SQL first (worth up to 2,544×). Then the runtime gives you another 4×–8× on top.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  So Which Stack Should You Actually Choose?
&lt;/h2&gt;

&lt;p&gt;There is no single winner for every team. Here is the practical decision guide from everything we measured so far:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Stay on Laravel PHP (+ Octane FrankenPHP or Workerman)&lt;/strong&gt; when:

&lt;ul&gt;
&lt;li&gt;You rely on PHP's massive ecosystem (Filament, Spatie packages, mature SaaS starter kits) and want 0-second edit-refresh speed.&lt;/li&gt;
&lt;li&gt;Simply moving from PHP-FPM to Octane or Workerman gives you a &lt;strong&gt;100×–244×&lt;/strong&gt; boost on light requests without rewriting a single line of PHP.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch / adopt Laravel Go&lt;/strong&gt; when:

&lt;ul&gt;
&lt;li&gt;You build database-heavy business systems, admin panels, or queue-heavy backends where &lt;strong&gt;Heavy ORM (3.1× Rust / 10× PHP)&lt;/strong&gt;, &lt;strong&gt;Redis Queues (22.5k/s)&lt;/strong&gt;, &lt;strong&gt;55 MB RAM&lt;/strong&gt;, and a &lt;strong&gt;0.36-second rebuild loop&lt;/strong&gt; (amazing for AI-assisted coding) matter most.&lt;/li&gt;
&lt;li&gt;Just keep an eye on &lt;code&gt;r.Validate&lt;/code&gt; performance in &lt;code&gt;v0.1.0&lt;/code&gt; until the reflection bottleneck is patched.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch / adopt Laravel Rust&lt;/strong&gt; when:

&lt;ul&gt;
&lt;li&gt;You need maximum raw API throughput (150k RPS), rock-solid &lt;strong&gt;p99 tail latency under 1,000+ concurrent spikes (103 ms)&lt;/strong&gt;, or ultra-fast compile-time JSON validation (55k–142k RPS) in a 27–67 MB single binary.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No matter which language you choose&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;Fix your SQL queries, indexes, and pagination first. A bad &lt;code&gt;OFFSET&lt;/code&gt; query turns a 54,000 RPS Rust server into a 21 RPS server overnight.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  What We Are Benchmarking Next
&lt;/h2&gt;

&lt;p&gt;This page will keep growing as we test new real-world scenarios and re-test future releases of Laravel Go and Laravel Rust. Planned chapters:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;PostgreSQL 100k rows + JSONB + Partial Indexes&lt;/strong&gt;: Does PostgreSQL change the 3-way balance?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The $5 VPS Survival Test&lt;/strong&gt; (1 vCPU / 512 MB–1 GB RAM): Where single binaries really separate from multi-process runtimes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;100,000-Row CSV / Excel Export &amp;amp; Import&lt;/strong&gt;: Streaming memory and speed across PHP, Go, and Rust.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;10,000 Concurrent WebSocket / SSE Connections&lt;/strong&gt;: Real-time fan-out and RAM usage.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Laravel Go Validation Re-Test&lt;/strong&gt;: Measuring the fix once &lt;code&gt;laravel-go&lt;/code&gt; optimizes &lt;code&gt;r.Validate&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Have a workload you want us to test next? Reach out to &lt;a href="https://x.com/yichokd" rel="noopener noreferrer"&gt;@yichokd on X&lt;/a&gt; — several of the best chapters on this page started as replies there.&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>rust</category>
      <category>go</category>
      <category>php</category>
    </item>
    <item>
      <title>How I Got a 1,000-Row Filament Table from 10.9 s to 1.1 s with Canvas</title>
      <dc:creator>Yuichi Okada</dc:creator>
      <pubDate>Mon, 12 Oct 2026 12:30:46 +0000</pubDate>
      <link>https://dev.to/yichokd/how-i-got-a-1000-row-filament-table-from-109-s-to-11-s-with-canvas-g7e</link>
      <guid>https://dev.to/yichokd/how-i-got-a-1000-row-filament-table-from-109-s-to-11-s-with-canvas-g7e</guid>
      <description>&lt;p&gt;&lt;strong&gt;Disclosure:&lt;/strong&gt; I'm the author of Warp Table, a commercial Filament plugin. The measurements below come from its public demo, which you can use to run the same comparison in your own browser.&lt;/p&gt;

&lt;p&gt;Filament tables are a joy to build. A few lines of PHP give you sorting, search, filters, bulk actions, and inline editing.&lt;/p&gt;

&lt;p&gt;Then a client asks to see 1,000 rows on one page, with editable prices and stock levels. A table that felt instant at 25 rows now takes seconds to load.&lt;/p&gt;

&lt;p&gt;Pagination is usually the right answer. But some workflows depend on scanning and editing a long list without switching pages: order entry, price updates, inventory counts. Those were the screens I wanted to improve.&lt;/p&gt;

&lt;p&gt;So I built a renderer that draws the table rows on a &lt;code&gt;&amp;lt;canvas&amp;gt;&lt;/code&gt; while keeping Filament's surrounding controls. In my demo, the 1,000-row page's load time went from &lt;strong&gt;10.85 s to 1.10 s&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Drawing the rows turned out to be the easy part. Preserving the interactions people expect from a table took most of the work.&lt;/p&gt;

&lt;h2&gt;
  
  
  The numbers
&lt;/h2&gt;

&lt;p&gt;The demo includes a page called &lt;strong&gt;Speed Lab&lt;/strong&gt;. It renders the same table using either Filament's native renderer or Warp Table.&lt;/p&gt;

&lt;p&gt;The table has 10 columns, seven of them editable: three text inputs, two selects, a toggle, and a checkbox.&lt;/p&gt;

&lt;p&gt;After each full page load, Speed Lab records the DOM node count, decoded HTML size, and time to the browser's &lt;code&gt;load&lt;/code&gt; event. Here are the results from my measurements:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Rows&lt;/th&gt;
&lt;th&gt;Renderer&lt;/th&gt;
&lt;th&gt;DOM nodes&lt;/th&gt;
&lt;th&gt;Decoded HTML&lt;/th&gt;
&lt;th&gt;Page load&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;500&lt;/td&gt;
&lt;td&gt;Native&lt;/td&gt;
&lt;td&gt;46,641&lt;/td&gt;
&lt;td&gt;19.2 MB&lt;/td&gt;
&lt;td&gt;3.89 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;500&lt;/td&gt;
&lt;td&gt;Warp Table&lt;/td&gt;
&lt;td&gt;1,090&lt;/td&gt;
&lt;td&gt;395 KB&lt;/td&gt;
&lt;td&gt;0.84 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1,000&lt;/td&gt;
&lt;td&gt;Native&lt;/td&gt;
&lt;td&gt;92,849&lt;/td&gt;
&lt;td&gt;38.2 MB&lt;/td&gt;
&lt;td&gt;10.85 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1,000&lt;/td&gt;
&lt;td&gt;Warp Table&lt;/td&gt;
&lt;td&gt;1,590&lt;/td&gt;
&lt;td&gt;655 KB&lt;/td&gt;
&lt;td&gt;1.10 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2,500&lt;/td&gt;
&lt;td&gt;Native&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;PHP out of memory&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2,500&lt;/td&gt;
&lt;td&gt;Warp Table&lt;/td&gt;
&lt;td&gt;3,081&lt;/td&gt;
&lt;td&gt;1.4 MB&lt;/td&gt;
&lt;td&gt;1.53 s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;At 2,500 rows, the native version hit the demo server's 256 MB PHP memory limit while generating the HTML. That is a limit of this test environment, not a universal row limit for Filament.&lt;/p&gt;

&lt;p&gt;These are &lt;strong&gt;full-page load measurements&lt;/strong&gt;, not isolated canvas draw times or a direct measurement of when every control becomes interactive. The HTML figures are decoded sizes, not compressed network transfer sizes. Results will vary with the browser, hardware, server, network, and cache state.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm3ar2rbiqd899okvb3pp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm3ar2rbiqd899okvb3pp.png" alt="Speed Lab measurements for 500, 1,000 and 2,500 rows" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the weight comes from
&lt;/h2&gt;

&lt;p&gt;An editable table does much more than display text. Each cell needs its own state, event handling, loading indicators, and validation behavior.&lt;/p&gt;

&lt;p&gt;For example, a &lt;code&gt;TextInputColumn&lt;/code&gt; renders an Alpine component for each cell. The structure looks roughly like this, with details omitted:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt;
    &lt;span class="na"&gt;wire:ignore.self&lt;/span&gt;
    &lt;span class="na"&gt;x-load&lt;/span&gt;
    &lt;span class="na"&gt;x-load-src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"…/columns/text-input.js"&lt;/span&gt;
    &lt;span class="na"&gt;x-data&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"textInputTableColumn({ name: 'price', recordKey: '42', state: 1250 })"&lt;/span&gt;
    &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"fi-ta-text-input"&lt;/span&gt;
&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"1250"&lt;/span&gt; &lt;span class="na"&gt;x-ref&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"serverState"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;

    &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt;
        &lt;span class="na"&gt;x-bind:class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"{ 'fi-disabled': isLoading, 'fi-invalid': error !== undefined }"&lt;/span&gt;
        &lt;span class="na"&gt;x-tooltip&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"…"&lt;/span&gt;
        &lt;span class="na"&gt;x-on:click.prevent.stop&lt;/span&gt;
        &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"fi-input-wrp"&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"fi-input-wrp-content-ctn"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt;
                &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"number"&lt;/span&gt;
                &lt;span class="na"&gt;wire:loading.attr&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"disabled"&lt;/span&gt;
                &lt;span class="na"&gt;wire:target&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"…"&lt;/span&gt;
                &lt;span class="na"&gt;x-bind:disabled&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"isLoading"&lt;/span&gt;
                &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"fi-input"&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;SelectColumn&lt;/code&gt;, &lt;code&gt;ToggleColumn&lt;/code&gt;, and &lt;code&gt;CheckboxColumn&lt;/code&gt; add their own markup and behavior. A native select also repeats its &lt;code&gt;&amp;lt;option&amp;gt;&lt;/code&gt; list in every row.&lt;/p&gt;

&lt;p&gt;With seven editable columns across 1,000 rows, the Speed Lab table has about &lt;strong&gt;7,000 Alpine components&lt;/strong&gt;. The measured page contains roughly 93 DOM nodes per displayed row, including the surrounding UI.&lt;/p&gt;

&lt;p&gt;The server has to generate the markup, the browser has to parse it, and Alpine has to initialize the components. The benchmark does not isolate the time spent at each stage, but it shows how much work a large editable table asks the stack to do.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep Filament, replace the rows
&lt;/h2&gt;

&lt;p&gt;Warp Table uses &lt;code&gt;Table::content()&lt;/code&gt; to replace the records area while keeping Filament's header, toolbar, filters, pagination, bulk actions, and modals.&lt;/p&gt;

&lt;p&gt;For supported tables, enabling it takes one extra method call:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nv"&gt;$table&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;columns&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="c1"&gt;// Your existing column definitions.&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;warp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Instead of rendering a Blade view for every cell, the server serializes the current page into a compact JSON payload: cell data, column definitions, groups, and summaries. Row action markup is templated once with a placeholder for the record key instead of being repeated for every record.&lt;/p&gt;

&lt;p&gt;That change is what brings the decoded HTML size down from &lt;strong&gt;38.2 MB to 655 KB&lt;/strong&gt; in the 1,000-row test.&lt;/p&gt;

&lt;p&gt;One unexpected problem was where to put the JSON. I initially used a &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; tag. In the Livewire debug setup I was testing, the single-root-element check stripped script contents with a regular expression. With PCRE's JIT disabled, that check failed when the script grew beyond roughly 1 MB.&lt;/p&gt;

&lt;p&gt;Moving the payload into a hidden &lt;code&gt;&amp;lt;textarea&amp;gt;&lt;/code&gt; avoided the failure in that setup. It was a small implementation detail that cost me an afternoon.&lt;/p&gt;

&lt;h2&gt;
  
  
  Matching the theme
&lt;/h2&gt;

&lt;p&gt;Canvas drawing does not automatically inherit the appearance of Filament's HTML components. I wanted the rows to follow custom themes and dark mode without maintaining a separate palette.&lt;/p&gt;

&lt;p&gt;The renderer gets its styling from the browser:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Colors, fonts, and spacing&lt;/strong&gt; come from hidden probe elements with Filament's classes, read through &lt;code&gt;getComputedStyle&lt;/code&gt;. The canvas uses those values when drawing the rows.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Column widths&lt;/strong&gt; come from a hidden HTML table built with Filament's markup and a sample of rows. The browser calculates the layout, and the canvas uses the resulting widths. This also lets the measurement reflect relevant application CSS and &lt;code&gt;extraAttributes()&lt;/code&gt; styling.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Rather than trying to reproduce the browser's layout rules in JavaScript, I let the browser do that work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Preserving the interactions
&lt;/h2&gt;

&lt;p&gt;Replacing DOM rows with pixels means rebuilding interactions that HTML normally gives you for free.&lt;/p&gt;

&lt;h3&gt;
  
  
  Links
&lt;/h3&gt;

&lt;p&gt;Real links support Cmd/Ctrl-click, middle-click, context menus, and URL previews in the status bar.&lt;/p&gt;

&lt;p&gt;To preserve those behaviors, a transparent &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; element follows the pointer over link cells. The browser handles the link interaction instead of a canvas click handler trying to imitate it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Editing
&lt;/h3&gt;

&lt;p&gt;When a cell enters edit mode, the renderer places a real input over it, using Filament's classes. This keeps text entry in a DOM element rather than trying to implement an editor inside the canvas.&lt;/p&gt;

&lt;p&gt;Saving goes through Filament's &lt;code&gt;updateTableColumnState&lt;/code&gt;, the same method used by native editable columns.&lt;/p&gt;

&lt;h3&gt;
  
  
  Keyboard navigation
&lt;/h3&gt;

&lt;p&gt;The renderer maintains a virtual list of focus targets in the order users would encounter them in the native table: the page checkbox, sortable headers, group checkboxes, then each row's checkbox, links, fields, and actions.&lt;/p&gt;

&lt;p&gt;Tab moves through those targets, focus indicators use styles taken from the native components, and Tab leaves the table at either end. This supports keyboard navigation, but it does not give canvas rows the accessibility semantics of a native table—a limitation I return to below.&lt;/p&gt;

&lt;h3&gt;
  
  
  Selection and bulk actions
&lt;/h3&gt;

&lt;p&gt;Row selection uses Filament's own Alpine store, so Shift-click ranges, “select all,” and bulk actions stay connected to Filament's selection state.&lt;/p&gt;

&lt;h3&gt;
  
  
  Browser find
&lt;/h3&gt;

&lt;p&gt;Text drawn on a canvas is not searchable DOM text. To support Cmd/Ctrl+F, the renderer adds a transparent text layer containing all rows on the current page when that shortcut is pressed.&lt;/p&gt;

&lt;p&gt;The layer is aligned with the canvas so the browser can highlight matches and scroll to them. It is a workaround for browser find, not a replacement for an accessible table structure.&lt;/p&gt;

&lt;p&gt;Every demo page has a &lt;strong&gt;Compare with native&lt;/strong&gt; button. I use it to check the same table and interactions with both renderers.&lt;/p&gt;

&lt;h2&gt;
  
  
  What recording the screen revealed
&lt;/h2&gt;

&lt;p&gt;Two scrolling bugs became obvious when I reviewed recordings frame by frame.&lt;/p&gt;

&lt;h3&gt;
  
  
  A sticky header that jittered
&lt;/h3&gt;

&lt;p&gt;Filament wraps the table in a horizontally scrollable container (&lt;code&gt;.fi-ta-content-ctn&lt;/code&gt; has &lt;code&gt;overflow-x: auto&lt;/code&gt;), so &lt;code&gt;position: sticky&lt;/code&gt; on the header can only stick inside that container, never to the page viewport. That is why the native table has no sticky header while the page scrolls.&lt;/p&gt;

&lt;p&gt;My first canvas implementation repositioned the header on every &lt;code&gt;scroll&lt;/code&gt; event. But scrolling can advance on the compositor thread before the main thread updates the drawing. For a frame, the header would move with the page, then jump back into place.&lt;/p&gt;

&lt;p&gt;In one recording, &lt;strong&gt;154 of 331 frames&lt;/strong&gt; showed the header displaced by about 10 px.&lt;/p&gt;

&lt;p&gt;The fix was to draw the pinned header on a separate &lt;code&gt;position: fixed&lt;/code&gt; canvas. That let the browser keep it in place without waiting for a JavaScript position update. In the follow-up recording, I observed the issue in &lt;strong&gt;0 of 331 frames&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  A blank band during fast scrolling
&lt;/h3&gt;

&lt;p&gt;The rows canvas initially covered exactly the viewport. During fast scrolling, the browser could reveal an area before the next redraw filled it.&lt;/p&gt;

&lt;p&gt;In one recording, this produced a blank band in &lt;strong&gt;106 of 598 frames&lt;/strong&gt;, reaching up to 215 px.&lt;/p&gt;

&lt;p&gt;Drawing an extra 400 px above and below the viewport eliminated the visible gap in the follow-up recording: &lt;strong&gt;0 of 598 frames&lt;/strong&gt;. The trade-off was an increase in draw time from about &lt;strong&gt;0.3 ms to 0.6 ms&lt;/strong&gt; in my measurements.&lt;/p&gt;

&lt;p&gt;Those results describe the recordings I checked, rather than a guarantee for every device or scroll speed.&lt;/p&gt;

&lt;h3&gt;
  
  
  A rendering engine that never rested
&lt;/h3&gt;

&lt;p&gt;A profiler revealed another problem: I had stored the rendering engine in Alpine's reactive data.&lt;/p&gt;

&lt;p&gt;In that implementation, proxy access and a reactive effect created a feedback loop. The table kept redrawing even while idle—about &lt;strong&gt;175 times per second&lt;/strong&gt; in the trace I inspected.&lt;/p&gt;

&lt;p&gt;Moving the engine out of reactive state fixed it. The UI needed reactive state; the rendering engine itself did not need to be reactive.&lt;/p&gt;

&lt;h2&gt;
  
  
  The trade-offs
&lt;/h2&gt;

&lt;p&gt;Canvas solves some performance problems by giving up features the DOM provides automatically. These are the main limitations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Screen readers cannot read the drawn rows as a native table.&lt;/strong&gt; Users who rely on that structure should use the native renderer. &lt;code&gt;-&amp;gt;warp()&lt;/code&gt; accepts a closure, so an application can make the choice follow a user preference.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You cannot drag-select individual words in the drawn rows.&lt;/strong&gt; Warp Table 1.1 adds spreadsheet-style cell selection instead: drag across cells and copy tab-separated text into Excel or Google Sheets. That is useful for tabular data, but it is a different interaction from selecting text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Some configurations use the native renderer automatically.&lt;/strong&gt; These include column layouts such as &lt;code&gt;Split&lt;/code&gt; and &lt;code&gt;Stack&lt;/code&gt;, reorder mode, groups-only tables, and empty results.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For a typical table with a small page size, I would keep the native renderer. Warp Table is aimed at screens where displaying and editing hundreds or thousands of rows on one page is a workflow requirement.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try the comparison
&lt;/h2&gt;

&lt;p&gt;The demo requires no sign-up, and each page includes &lt;strong&gt;Compare with native&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://filament-warp-table.webllsystem.com/demo/products/speed-lab" rel="noopener noreferrer"&gt;Speed Lab: run the measurements in your browser&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://filament-warp-table.webllsystem.com" rel="noopener noreferrer"&gt;Live demo: sticky headers, frozen columns, and cell selection&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://filamentphp.com/plugins/yuichi-okada-warp-table" rel="noopener noreferrer"&gt;Warp Table on the Filament plugin directory&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you've worked on a Filament table that became slow, what did it look like? How many rows did users need on one page, which columns were editable, and why did that workflow need a long table?&lt;/p&gt;

&lt;p&gt;Those details help me decide what to support next.&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>php</category>
      <category>filament</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
