Laravel Rust led throughput on the real HTML posts page, Octane with FrankenPHP beat Go and Rust on a byte-identical 442-byte JSON endpoint, and SQLite database session writes caused most of the p99 tail latency.
Experiments run December 3, 2026, under WSL2.
This started as a quick Laravel Go vs. Laravel Rust test. I added Laravel PHP just to have a reference baseline to compare against. Then people started asking fair questions: what if you run PHP on Octane? What if every stack runs the exact same SQL query and returns the exact same JSON? What about PHP 8.5 and 8.6? What about CPU, memory, and compile times?
So the quick comparison turned into a much longer rabbit hole, and no single stack won everything. Laravel Rust pushed the highest throughput on the real HTML posts page. When I stripped out templates and gave every stack the same SQL query and a SHA-256 identical 442-byte JSON response, Laravel Octane with FrankenPHP beat both Go and Rust. And the biggest tail-latency problem I hit had nothing to do with language speed at all: SQLite database sessions were serializing writes on simple GET requests.
The setup
Everything ran locally over loopback on one machine, one stack at a time: an Intel Core i7-12700H with 20 logical CPUs visible to WSL2 and 7.6 GiB of WSL memory (6.7 GiB available at initial check), running Ubuntu 22.04.5 LTS on kernel 6.18.58.1-microsoft-standard-WSL2. HTTP load runs used a local Node.js 24.19.0 client, and browser measurements used Chromium 159. All three apps lived on the WSL Linux filesystem with production settings, debug off, SQLite WAL enabled, and database-backed sessions unless a test explicitly switched drivers.
| Project | Starting revision | Framework and toolchain |
|---|---|---|
| Laravel PHP CRUD | a1ee55c |
Laravel 13.38.0; initial baseline used PHP 8.4.13, Nginx 1.18.0, and a static 4-worker PHP-FPM pool with OPcache |
| Laravel Go CRUD | 721260f |
Laravel Go go.laravel.com v0.1.0, Go 1.27.4 |
| Laravel Rust CRUD | c29b141 |
laravel-rust =0.1.2, rustc and Cargo 1.100.1 |
One qualifier up front: these are local SQLite CRUD runs. They measure something very different from Laravel's Cloud benchmark (source), which hit a read-only MySQL API (200 chirps, 10 authors) and reported best 10-second k6 windows of 1,774 req/s for Rust, 1,294 for Go, and 97 for Laravel PHP. Separate independent testing on Laravel Rust 0.1.3 also saw roughly 40% faster MySQL writes after raising its connection pool from 10 to 100.
The first Go vs. Rust run
My initial pass pitted Go against Rust on a small 60-post fixture (10 categories, 48 published posts, 6 featured posts) using a Python HTTP/1.1 client with 10 warm-up requests, 60 sequential requests, and 80 requests across 8 concurrent clients:
| Measurement | Laravel Go | Laravel Rust |
|---|---|---|
| Main listing preflight | 20,179 B | 19,370 B |
| Page two preflight | 20,684 B | 19,805 B |
| Sequential listing p50 / p95 | 1.42 / 2.47 ms | 0.90 / 1.06 ms |
| Sequential listing throughput | 642 req/s | 1,091 req/s |
| Eight clients, listing p50 / p95 | 4.25 / 8.22 ms | 2.39 / 15.28 ms |
| Eight clients, listing throughput | 1,580 req/s | 1,748 req/s |
| Cold production build | 29.34 s | 114.11 s |
| Immediate rebuild | 0.64 s | 56.54 s |
| Executable | 39.54 MiB, stripped | 49.98 MiB, unstripped |
| Uncached native tests (with compilation) | 4.70 s (11 tests, 30 subtests) | 46.61 s (8 unit, 10 integration) |
| Playwright (3 passed, 1 skipped) | 5.13 s | 5.42 s |
Rust had the lower median at 8 clients, while Go had the lower p95. That split was enough to tell me I needed a real dataset, the PHP reference app for comparison, and a profiler before drawing any conclusions.
Adding PHP and fixing the obvious bottlenecks first
I brought in the Laravel PHP reference app (leaving its code and data untouched), scaled the deterministic fixture to 100, 10,000, and 100,000 posts (1,584 bytes of rich text each, 10 categories, 80% published, 10% featured, plus a 320 x 180 PNG on the last post), and profiled Go and Rust across 98,280 timed reads with zero errors.
Three straightforward fixes accounted for most of the gains before touching any server config:
- Splitting unused editor JS: Both Go and Rust were shipping Trix and Tom Select on the posts listing page, even though only the create and edit forms use them. Moving them to a form-only bundle cut local JS on the listing from 254,491 B to 1,240 B in Go (CSS 38,945 to 13,810 B; warm browser load 26.30 to 17.70 ms) and from 253,286 B to 1,240 B in Rust (CSS 38,542 to 13,447 B; warm browser load 26.00 to 14.90 ms).
- Narrowing listing projections: In Go, pprof showed 18.6% of sampled CPU going to rich-text sanitization in the listing DTO and about 20% to template execution. Switching to a narrow projection (keeping sanitization on detail pages), reusing pagination links, and premerging locale fallback catalogs cut median allocation cost from 634,604 to 309,917 B/op and allocations from 14,794 to 6,075 per operation. In Rust, where a 30-request trace showed 0.591 ms median for the post query, 0.039 ms for paginator metadata, and 0.249 ms for view/context work, I applied a typed listing projection, a metadata-only paginator, and owned view context passing.
- Indexing
(deleted_at, title): Adding a composite index on(deleted_at, title)in Go and Rust dropped a 10,000-row title-sort SQL probe from 5.028 ms to 0.022 ms (and right back to 5.113 ms when removed). A substring-search count probe dropped from 5.169 to 0.765 ms (5.129 ms without the index), though leading-wildcard search still scans and took 1.08 s median in Go at 100,000 posts and 10 clients.
Tracing individual SQL statements also showed where request time went before optimization: a warm Go listing took 0.15 ms to read the session, 0.40 ms to count posts, 0.16 ms to fetch the page, 0.15 ms to fetch categories, and 2.58 ms to update the session. Rust measured 0.21, 0.39, 0.22, 0.14, and 4.79 ms for the same steps (a separate PHP CLI trace showed 1.02 ms session read, 7.10 ms count, 10.59 ms page, 0.08 ms later session lookup, and 4.76 ms session insert).
At 10 concurrent clients (listing at 10,000 posts, title sort at 100,000 posts), those fixes moved the numbers substantially:
| App | Listing p50 | Listing p95 | Listing req/s | Title sort p50 |
|---|---|---|---|---|
| PHP reference | 72.18 ms | 88.06 ms | 135 | 307.31 ms |
| Go (before -> after) | 5.82 -> 4.18 ms | 58.95 -> 57.51 ms | 346 -> 633 | 671.30 -> 14.21 ms |
| Rust (before -> after) | 3.08 -> 3.32 ms | 82.19 -> 57.24 ms | 644 -> 869 | 935.70 -> 5.89 ms |
CPU and memory at 10,000 posts
Sampling processes every 200 ms across the full 10,000-post route matrix (including warm-up; RSS summed across processes) showed how much CPU time those fixes saved:
| App | Idle RSS | Peak RSS | CPU seconds | Average cores |
|---|---|---|---|---|
| PHP reference | 237.5 MiB | 249.4 MiB | 168.6 | 1.61 |
| Go before | 38.8 MiB | 99.8 MiB | 98.3 | 1.94 |
| Go after | 38.5 MiB | 87.1 MiB | 32.2 | 1.43 |
| Rust before | 59.0 MiB | 142.3 MiB | 43.3 | 1.03 |
| Rust after | 56.0 MiB | 130.1 MiB | 17.1 | 0.49 |
Adding Octane and matching the PHP runtime
Once PHP was on the board, the first question everyone asked was: what about Octane?
An initial short-batch Octane check (20,700 requests, zero errors, at 10,000 posts and 10 clients) put PHP-FPM at 72.6 req/s (236.1 / 247.6 MiB idle/peak RSS), Swoole at 175.6 req/s (405.3 / 465.4 MiB), FrankenPHP at 183.8 req/s (263.2 / 686.3 MiB), Laravel Go at 523.1 req/s, and Laravel Rust at 609.1 req/s. However, FrankenPHP 1.14.1 bundled PHP 8.6.0 and SQLite 3.45.2 while FPM and Swoole ran PHP 8.4 and SQLite 3.37.2.
To keep the comparison fair, I ran a sustained test aligning all three PHP setups on PHP 8.4.28, SQLite 3.45.2, OPcache enabled, Octane 2.26.0, Swoole 6.3.0, FrankenPHP 1.14.0, and 4 request workers each. Every workload ran at 10 concurrent clients across two trials with stack order reversed, totaling 690,164 timed requests with zero errors (970,619 including the session experiment). During sampled sustained runs, WSL CPU usage ranged from 9.6% to 63.8% (27.25% median, 1.89% peak 10-second CPU pressure average; a post-test Windows snapshot showed 42% CPU). Partial combined resource records from that round showed 37.8 / 53.1 MiB RSS and 315.68 CPU seconds for Go, and 247.6 / 374.1 MiB RSS and 333.58 CPU seconds for FrankenPHP.
Workload A: The real posts HTML page
Two 60-second trials per stack against the 10,000-post database. HTML payload sizes differed by app: PHP returned 80,648 B, Go 20,993 B, and Rust 20,190 B. Latencies are the median of the two trial percentiles, and throughput is the two-run range:
| Server | p50 | p95 | p99 | Requests/sec |
|---|---|---|---|---|
| PHP-FPM + OPcache | 82.27 ms | 111.79 ms | 143.86 ms | 117.9-118.2 |
| Octane + Swoole | 73.06 ms | 103.09 ms | 126.32 ms | 126.6-152.3 |
| Octane + FrankenPHP | 68.37 ms | 92.80 ms | 114.53 ms | 130.1-155.1 |
| Laravel Go | 5.34 ms | 70.43 ms | 258.23 ms | 474.7-666.5 |
| Laravel Rust | 3.18 ms | 56.42 ms | 161.11 ms | 774.4-841.7 |
Rust won on median latency and throughput. FrankenPHP had the lowest aggregated p99, while Go's individual p99 values ranged from 183.32 to 333.13 ms and Rust's ranged from 138.76 to 183.46 ms.
Workload B: The matched 442-byte JSON route
Naturally, the next pushback was that PHP was rendering an 80 KB page while Go and Rust were returning 20 KB. To take templates and payload size out of the equation, I added a benchmark-only route with no session or auth work. Every stack ran one query against the same 10,000-post database and returned a SHA-256 identical 442-byte JSON response:
SELECT id, title
FROM posts
WHERE deleted_at IS NULL
ORDER BY id DESC
LIMIT 10;
Two 20-second trials per stack at 10 concurrent clients:
| Server | p50 | p95 | p99 | Requests/sec |
|---|---|---|---|---|
| PHP-FPM + OPcache | 11.74 ms | 15.49 ms | 18.46 ms | 819.0-889.8 |
| Octane + Swoole | 3.00 ms | 4.58 ms | 5.73 ms | 3,275.0-3,352.2 |
| Octane + FrankenPHP | 2.70 ms | 3.81 ms | 4.70 ms | 3,511.2-3,529.4 |
| Laravel Go | 6.86 ms | 9.99 ms | 12.74 ms | 1,214.3-1,639.6 |
| Laravel Rust | 3.58 ms | 4.73 ms | 5.59 ms | 2,747.5-2,842.1 |
When the query and payload matched, Octane + FrankenPHP won on every single metric, with Octane + Swoole right behind it.
Why Go and Rust had 161 to 258 ms p99 spikes
Those p99 numbers on the HTML listing still bugged me. Go and Rust had 3 to 5 ms medians, so why were they stalling past 160 ms on a read-only page?
Tracing a minimal GET showed both apps were reading and updating SQLite sessions on every request (2.58 ms in a Go trace, 4.79 ms in a Rust trace). SQLite WAL lets readers and writers overlap, but writers still have to wait in line.
Switching the 10,000-post listing to cookie sessions (two 30-second trials at 10 clients, compared against the 60-second database-session runs) made the tail latency collapse:
| App | DB session p50 / p99 | Cookie session p50 / p99 | DB -> cookie req/s |
|---|---|---|---|
| Go | 5.34 / 258.23 ms | 7.71 / 17.25 ms | 570.6 -> 1,237.0 |
| Rust | 3.18 / 161.11 ms | 2.59 / 7.86 ms | 808.0 -> 3,436.6 |
The same pattern held across concurrency levels in the main 10,000-post matrix (p50 / p95 / p99 in ms / req/s / error rate):
| App | Concurrency | Database sessions | Cookie sessions |
|---|---|---|---|
| Go | 1 | 2.52 / 3.70 / 3.98 / 394 / 0.0% | 1.39 / 2.42 / 2.83 / 639 / 0.0% |
| Go | 10 | 4.18 / 57.51 / 112.03 / 633 / 0.0% | 4.29 / 7.34 / 8.94 / 2,175 / 0.0% |
| Go | 50 | 44.43 / 100.45 / 161.32 / 672 / 0.0% | 14.86 / 31.83 / 42.05 / 2,845 / 0.0% |
| Go | 100 | 89.85 / 197.93 / 276.97 / 779 / 0.0% | 25.64 / 52.04 / 62.59 / 3,118 / 0.0% |
| Rust | 1 | 2.14 / 4.13 / 5.16 / 420 / 0.0% | 0.81 / 1.02 / 1.20 / 1,149 / 0.0% |
| Rust | 10 | 3.32 / 57.24 / 133.04 / 869 / 0.0% | 1.81 / 5.38 / 7.13 / 4,339 / 0.0% |
| Rust | 50 | 49.98 / 99.67 / 163.03 / 740 / 0.0% | 6.73 / 13.38 / 15.52 / 6,228 / 0.0% |
| Rust | 100 | 92.34 / 141.30 / 231.90 / 820 / 0.0% | 13.19 / 30.05 / 33.71 / 5,786 / 0.0% |
Both apps still default to database sessions to preserve their existing behavior, but it was a good reminder that a fast median can hide a serialized writer queue.
PHP 8.4 vs. 8.5 vs. 8.6 and compile loops
Since the five-stack matrix used PHP 8.4.28 to keep all three PHP servers aligned, I ran a separate PHP-FPM check for 8.5 and 8.6. Everything else stayed constant: Nginx, SQLite 3.37.2, OPcache, 4 workers, and the 80,648-byte listing (two 30-second runs per version, 10 clients, 10,000 posts; 21,688 requests, zero errors):
| PHP-FPM version | p50 across trials | p99 range | Requests/sec (trial 1 -> 2) |
|---|---|---|---|
| 8.4.13 | 82.71 ms | 142.65-457.31 ms | 81.20 -> 130.04 |
| 8.5.13 | 79.23 ms | 127.09-177.22 ms | 103.69 -> 141.22 |
| 8.6.0 | 73.05 ms | 113.50-175.74 ms | 127.00 -> 137.38 |
And on the Go vs. Rust side, runtime numbers are only half the day-to-day experience. After the optimization commits, here is what the compile loop looked like (dependencies already on disk, Vite excluded):
| Build metric | Laravel Go | Laravel Rust |
|---|---|---|
| Cold compile | 18.96 s | 134.80 s |
| Immediate rebuild (same cache) | 0.19 s | 56.78 s |
| Release executable | 39.6 MiB (stripped) | 50.0 MiB (unstripped) |
Where I landed
If I had stopped after the first Go vs. Rust pass, or only timed the HTML listing, I would have walked away with a much simpler, and much less accurate, conclusion. Testing the real page showed what each app actually delivers right now. Testing the matched 442-byte JSON route showed how much of that gap disappears once the work is identical.
Mostly, this reinforced the boring stuff. Splitting unused editor JS, narrowing queries so you stop sanitizing columns you never display, and adding a missing index beat every runtime debate. And if your medians look great while your p99 spikes on SQLite, check whether your GET routes are writing sessions.
Full route, write, and browser numbers
All HTTP cells below report p50 / p95 / p99 in milliseconds / successful requests per second / error rate (medians across three batches). Write percentiles come from 15 operations of each type.
Posts listing across fixture sizes
| Posts | Concurrency | PHP | Go before | Go after | Rust before | Rust after |
|---|---|---|---|---|---|---|
| 100 | 1 | 10.76 / 13.37 / 16.87 / 89 / 0.0% | 3.09 / 4.97 / 5.71 / 275 / 0.0% | 2.28 / 3.36 / 3.74 / 441 / 0.0% | 1.77 / 2.48 / 2.75 / 523 / 0.0% | 1.72 / 2.46 / 2.64 / 559 / 0.0% |
| 100 | 10 | 31.82 / 39.96 / 53.26 / 285 / 0.0% | 4.89 / 59.53 / 137.63 / 497 / 0.0% | 3.07 / 56.90 / 135.68 / 521 / 0.0% | 3.25 / 57.39 / 110.06 / 756 / 0.0% | 3.97 / 82.96 / 182.93 / 562 / 0.0% |
| 100 | 50 | 152.26 / 196.13 / 205.93 / 309 / 0.0% | 49.84 / 114.88 / 247.28 / 630 / 0.0% | 39.74 / 96.12 / 157.11 / 747 / 0.0% | 41.11 / 94.22 / 146.44 / 814 / 0.0% | 40.26 / 76.96 / 148.66 / 803 / 0.0% |
| 100 | 100 | 290.17 / 308.58 / 314.17 / 334 / 0.0% | 103.57 / 208.46 / 274.42 / 602 / 0.0% | 84.35 / 176.39 / 251.37 / 754 / 0.0% | 96.94 / 141.92 / 213.50 / 823 / 0.0% | 89.75 / 132.68 / 182.23 / 825 / 0.0% |
| 10,000 | 1 | 26.86 / 31.59 / 37.64 / 36 / 0.0% | 4.15 / 6.24 / 7.24 / 223 / 0.0% | 2.52 / 3.70 / 3.98 / 394 / 0.0% | 2.13 / 2.95 / 4.00 / 453 / 0.0% | 2.14 / 4.13 / 5.16 / 420 / 0.0% |
| 10,000 | 10 | 72.18 / 88.06 / 95.79 / 135 / 0.0% | 5.82 / 58.95 / 244.03 / 346 / 0.0% | 4.18 / 57.51 / 112.03 / 633 / 0.0% | 3.08 / 82.19 / 136.51 / 644 / 0.0% | 3.32 / 57.24 / 133.04 / 869 / 0.0% |
| 10,000 | 50 | 360.43 / 386.91 / 392.73 / 137 / 0.0% | 55.80 / 122.07 / 218.25 / 692 / 0.0% | 44.43 / 100.45 / 161.32 / 672 / 0.0% | 43.76 / 96.55 / 147.02 / 881 / 0.0% | 49.98 / 99.67 / 163.03 / 740 / 0.0% |
| 10,000 | 100 | 653.09 / 692.58 / 700.18 / 148 / 0.0% | 108.03 / 208.85 / 255.10 / 649 / 0.0% | 89.85 / 197.93 / 276.97 / 779 / 0.0% | 95.02 / 137.31 / 210.28 / 786 / 0.0% | 92.34 / 141.30 / 231.90 / 820 / 0.0% |
| 100,000 | 1 | 143.59 / 161.62 / 175.01 / 7 / 0.0% | 7.03 / 8.45 / 9.18 / 139 / 0.0% | 5.51 / 6.62 / 8.16 / 175 / 0.0% | 4.42 / 6.31 / 9.37 / 208 / 0.0% | 4.59 / 5.67 / 7.37 / 215 / 0.0% |
| 100,000 | 10 | 358.01 / 476.21 / 485.53 / 25 / 0.0% | 15.00 / 76.21 / 170.18 / 318 / 0.0% | 16.00 / 81.36 / 212.12 / 282 / 0.0% | 6.58 / 61.38 / 143.12 / 418 / 0.0% | 6.95 / 62.35 / 90.88 / 453 / 0.0% |
Other read routes at 10,000 posts
| Request | Concurrency | PHP | Go before | Go after | Rust before | Rust after |
|---|---|---|---|---|---|---|
/up |
1 | 2.63 / 3.21 / 5.10 / 368 / 0.0% | 0.20 / 0.30 / 0.72 / 4,385 / 0.0% | 0.15 / 0.28 / 0.61 / 5,097 / 0.0% | 0.09 / 0.53 / 0.91 / 5,141 / 0.0% | 0.11 / 0.28 / 0.49 / 4,732 / 0.0% |
/up |
10 | 6.64 / 8.54 / 8.77 / 1,393 / 0.0% | 0.59 / 1.24 / 1.53 / 14,214 / 0.0% | 0.50 / 2.12 / 2.41 / 13,905 / 0.0% | 0.51 / 1.18 / 1.41 / 16,010 / 0.0% | 0.63 / 1.66 / 1.86 / 10,608 / 0.0% |
/posts/<id> |
1 | 9.97 / 11.85 / 12.61 / 97 / 0.0% | 1.59 / 2.26 / 3.27 / 580 / 0.0% | 1.51 / 2.44 / 3.37 / 591 / 0.0% | 1.18 / 1.95 / 2.49 / 725 / 0.0% | 1.67 / 2.88 / 3.36 / 543 / 0.0% |
/posts/<id> |
10 | 29.05 / 42.00 / 79.99 / 307 / 0.0% | 2.94 / 56.37 / 132.07 / 646 / 0.0% | 3.16 / 55.27 / 186.62 / 505 / 0.0% | 3.17 / 59.01 / 113.00 / 618 / 0.0% | 2.66 / 81.25 / 136.88 / 633 / 0.0% |
/posts?search=post+0000 |
1 | 22.36 / 25.22 / 27.92 / 44 / 0.0% | 19.84 / 22.64 / 24.37 / 50 / 0.0% | 12.21 / 14.08 / 15.59 / 80 / 0.0% | 13.28 / 14.90 / 15.98 / 74 / 0.0% | 8.87 / 10.71 / 11.69 / 110 / 0.0% |
/posts?search=post+0000 |
10 | 55.09 / 65.93 / 76.48 / 176 / 0.0% | 161.19 / 279.26 / 287.12 / 58 / 0.0% | 102.24 / 132.10 / 160.05 / 95 / 0.0% | 26.41 / 60.19 / 131.80 / 287 / 0.0% | 23.27 / 50.08 / 135.23 / 339 / 0.0% |
/posts?published=1 |
1 | 25.90 / 28.13 / 34.75 / 38 / 0.0% | 3.88 / 6.75 / 7.43 / 227 / 0.0% | 2.58 / 3.71 / 4.90 / 374 / 0.0% | 2.01 / 2.83 / 5.96 / 461 / 0.0% | 2.58 / 3.87 / 4.28 / 375 / 0.0% |
/posts?published=1 |
10 | 67.27 / 76.73 / 84.65 / 145 / 0.0% | 5.66 / 58.51 / 367.27 / 254 / 0.0% | 3.75 / 56.01 / 134.31 / 637 / 0.0% | 3.07 / 39.39 / 86.86 / 819 / 0.0% | 3.42 / 58.23 / 87.89 / 700 / 0.0% |
/posts?sortBy=title&direction=asc |
1 | 22.05 / 24.27 / 31.13 / 45 / 0.0% | 15.44 / 23.99 / 33.25 / 59 / 0.0% | 2.56 / 3.79 / 4.70 / 373 / 0.0% | 8.73 / 10.79 / 11.79 / 111 / 0.0% | 1.97 / 2.89 / 4.42 / 482 / 0.0% |
/posts?sortBy=title&direction=asc |
10 | 55.73 / 63.09 / 75.36 / 176 / 0.0% | 101.63 / 284.54 / 303.10 / 80 / 0.0% | 4.24 / 56.14 / 182.63 / 618 / 0.0% | 99.92 / 106.67 / 112.98 / 103 / 0.0% | 4.27 / 109.85 / 192.88 / 490 / 0.0% |
| Deep page | 1 | 32.89 / 35.50 / 37.90 / 30 / 0.0% | 3.90 / 5.30 / 6.23 / 244 / 0.0% | 2.83 / 3.97 / 5.85 / 341 / 0.0% | 2.26 / 3.17 / 4.28 / 421 / 0.0% | 2.02 / 3.04 / 3.84 / 470 / 0.0% |
| Deep page | 10 | 88.40 / 114.14 / 117.77 / 107 / 0.0% | 8.01 / 83.92 / 133.16 / 503 / 0.0% | 4.49 / 57.59 / 109.26 / 633 / 0.0% | 3.39 / 39.87 / 109.27 / 715 / 0.0% | 3.34 / 57.98 / 86.82 / 675 / 0.0% |
/api/posts (Bearer) |
1 | 27.01 / 32.41 / 46.19 / 36 / 0.0% | 1.73 / 3.54 / 4.45 / 486 / 0.0% | 1.46 / 2.33 / 3.19 / 620 / 0.0% | 0.79 / 1.11 / 3.46 / 1,101 / 0.0% | 0.70 / 1.01 / 1.67 / 1,271 / 0.0% |
/api/posts (Bearer) |
10 | 63.40 / 88.62 / 96.36 / 138 / 0.0% | 3.75 / 6.02 / 9.61 / 2,433 / 0.0% | 4.14 / 8.09 / 10.66 / 2,135 / 0.0% | 2.11 / 3.90 / 4.19 / 4,418 / 0.0% | 1.46 / 3.03 / 3.47 / 6,065 / 0.0% |
| Managed image | 1 | 0.10 / 0.29 / 0.59 / 5,933 / 0.0% | 1.18 / 2.23 / 2.82 / 676 / 0.0% | 1.05 / 2.00 / 3.04 / 746 / 0.0% | 48.00 / 52.32 / 55.55 / 20 / 0.0% | 47.85 / 51.60 / 52.27 / 21 / 0.0% |
| Managed image | 10 | 0.58 / 1.14 / 1.19 / 14,808 / 0.0% | 2.05 / 55.17 / 108.36 / 831 / 0.0% | 2.15 / 55.78 / 190.98 / 497 / 0.0% | 44.39 / 63.19 / 242.94 / 178 / 0.0% | 44.38 / 55.17 / 90.32 / 204 / 0.0% |
Selected routes at 100,000 posts (concurrency 10)
| Request | PHP | Go before | Go after | Rust before | Rust after |
|---|---|---|---|---|---|
/posts?search=post+0000 |
290.53 / 345.75 / 383.83 / 33 / 0.0% | 1,511.15 / 1,763.45 / 1,840.60 / 7 / 0.0% | 1,082.56 / 1,215.45 / 1,241.23 / 9 / 0.0% | 254.02 / 294.71 / 327.87 / 39 / 0.0% | 126.66 / 147.55 / 173.50 / 74 / 0.0% |
/posts?published=1 |
418.11 / 528.50 / 548.65 / 22 / 0.0% | 14.37 / 74.37 / 171.07 / 350 / 0.0% | 13.21 / 73.40 / 149.17 / 350 / 0.0% | 6.07 / 60.67 / 119.25 / 455 / 0.0% | 5.33 / 85.95 / 90.54 / 516 / 0.0% |
/posts?sortBy=title&direction=asc |
307.31 / 372.09 / 382.89 / 32 / 0.0% | 671.30 / 691.82 / 715.59 / 15 / 0.0% | 14.21 / 73.73 / 167.94 / 348 / 0.0% | 935.70 / 1,073.38 / 1,078.64 / 10 / 0.0% | 5.89 / 65.12 / 92.82 / 565 / 0.0% |
| Deep page | 613.97 / 823.14 / 907.24 / 15 / 0.0% | 28.08 / 63.53 / 90.34 / 271 / 0.0% | 24.13 / 69.55 / 120.89 / 299 / 0.0% | 9.16 / 60.93 / 118.24 / 497 / 0.0% | 8.55 / 42.21 / 92.13 / 501 / 0.0% |
Serial writes at 100 posts
| Write | PHP | Go before | Go after | Rust before | Rust after |
|---|---|---|---|---|---|
create-with-upload |
10.96 / 45.08 / 45.08 / 73 / 0.0% | 3.59 / 5.17 / 5.17 / 257 / 0.0% | 4.41 / 5.30 / 5.30 / 235 / 0.0% | 3.71 / 7.95 / 7.95 / 228 / 0.0% | 3.69 / 11.29 / 11.29 / 235 / 0.0% |
update |
9.96 / 11.31 / 11.31 / 98 / 0.0% | 1.60 / 2.40 / 2.40 / 592 / 0.0% | 2.39 / 3.49 / 3.49 / 423 / 0.0% | 1.85 / 3.13 / 3.13 / 526 / 0.0% | 2.15 / 3.19 / 3.19 / 462 / 0.0% |
feature |
9.04 / 10.69 / 10.69 / 110 / 0.0% | 2.09 / 2.75 / 2.75 / 489 / 0.0% | 2.47 / 5.28 / 5.28 / 352 / 0.0% | 1.85 / 2.89 / 2.89 / 505 / 0.0% | 2.01 / 3.89 / 3.89 / 457 / 0.0% |
Browser and transfer sizes at 100 posts
| App | HTML bytes | Local JS bytes | Local CSS bytes | Cold TTFB ms | Cold load ms | Warm TTFB ms | Warm load ms |
|---|---|---|---|---|---|---|---|
| PHP | 78,406 | 1 | 35,476 | 15.20 | 349.10 | 14.90 | 31.80 |
| Go before | 20,628 | 254,491 | 38,945 | 4.10 | 46.80 | 6.10 | 26.30 |
| Go after | 20,627 | 1,240 | 13,810 | 3.90 | 41.80 | 5.50 | 17.70 |
| Rust before | 19,819 | 253,286 | 38,542 | 3.40 | 133.50 | 5.40 | 26.00 |
| Rust after | 19,824 | 1,240 | 13,447 | 3.10 | 119.00 | 3.60 | 14.90 |
Related Articles
View all articles →Simplify Collection Operations with Higher-Order Messages
Laravel Collections support higher-order messages through dynamic properties, allowing operations like each, map, filter, and groupBy to work directly with an item's property or method without writing boilerplate callbacks.
Fixing Slow and Failing Laravel Pest Parallel Tests on Windows
Parallel Pest runs on Windows often fail with WIN1252 encoding errors or out of shared memory lock crashes. Here is how to configure PostgreSQL, OpenSSL, and your build pipeline for fast, reliable parallel testing.