Tilly The Coder
Tilly The Coder
PHP 8.6.0 13.42.0 · PHP 8.6.0 #4 M1 Max · #4 €1.99 VPS

Laravel 13 PHP Benchmarks

This is the heart of the entire X controversy. Testing Laravel 13 across 5 isolated configurations proves that PHP-FPM boot time was barely the culprit (Octane only lifted Eloquent from 525 to 600 RPS, +14%). Simply swapping Eloquent hydration for toBase() + SQL JOIN lifted Octane 4.4× to 2,650 RPS — and tracing JIT cut p95 latency in half.

Test Hardware

10-core Apple Silicon (8P + 2E) · 32 GB RAM · MySQL 8.4 · PHP 8.6.0 · Go 1.27.4 · Rust 1.100.1

1 vCPU (Intel Xeon Gold 6142) · 1.9 GiB RAM · Ubuntu 26.04 LTS · PHP 8.6.0 · Go 1.27.4 · Rust 1.100.1

Peak Confirmed RPS

2,650 RPS

Octane · toBase() + Tracing JIT

Confirm p50 / p95

10.4 / 42.4ms

Fails at 2,700 RPS

50 RPS Latency & RAM

3.21ms p50

281.0 MB total (281.0 MB app)

Cold Build Time

~2s

Composer autoload + config/route cache · no binary compile

Peak Confirmed RPS

75 RPS

Octane · toBase() + Tracing JIT

Confirm p50 / p95

17.5 / 55.8ms

Fails at 80 RPS

50 RPS Latency & RAM

9.96ms p50

305.5 MB total (305.5 MB app)

Cold Build Time

Seconds

Composer install + artisan cache

All 5 Tested Configurations

Fixed-rate binary-search holds, confirmation latency, exact failure threshold, CPU split, and steady-state telemetry.

Inside Laravel 13 PHP — Configuration Impact (Apple M1 Max (Local))

Octane · toBase() + Tracing JIT
2,650 RPS
Octane · toBase() (JIT Off)
2,650 RPS
No Octane (FPM) · toBase() + JIT
1,400 RPS
Octane · Eloquent (Default)
600 RPS
No Octane (FPM) · Eloquent
525 RPS

Octane · toBase() + Tracing JIT

laravel-php-octane-projection-jit
FrankenPHP 1.14 / PHP 8.6 2-query JOIN + toBase() projection JIT: Tracing (64 MiB) 4 Octane workers (max 500 req)

2,650 RPS

Confirmed twice · 0 fails

Confirmation Latency

10.4 / 42.4 ms

p50 / p95 · max 51 ms · 0.00% drops

Next Failing Step

2,700 RPS

p95 106.1 ms

Steady 50 RPS Hold

3.21 / 6.9 ms

App+HTTP 22.4% · MySQL 4.1% CPU

Memory (50 RPS → Peak)

281.0 → 380.4 MB

App-only peak: 380.4 MB

CPU Split at Confirmed Ceiling (536% total)
App+HTTP 313.1% MySQL 73.5% k6 149.4%
Upstream-style 10→7,000 RPS ramp note: Best zero-failure 10s window scored 1,058.7 RPS at p50 1,398.7 ms (window drops: 18,233).
Inspect all 10 fixed-rate binary-search trials (12s holds)
Target RPS Result Delivered p50 p95 Drops HTTP Fail App / DB / k6 CPU RAM
700 PASS 699.8 1.75 ms 2.38 ms 0.00% 0 90% / 21% / 44% 280.7 MB
2,000 PASS 1,999.0 1.63 ms 3.61 ms 0.00% 0 238% / 56% / 121% 269.1 MB
4,000 FAIL 2,568.8 574.58 ms 597.74 ms 32.82% 0 330% / 77% / 151% 378.7 MB
3,000 FAIL 2,568.6 517.78 ms 588.78 ms 10.47% 0 311% / 72% / 157% 379.8 MB
2,500 PASS 2,498.0 2.71 ms 10.17 ms 0.00% 0 301% / 69% / 147% 379.8 MB
2,750 FAIL 2,645.2 150.84 ms 242.06 ms 1.93% 0 320% / 75% / 158% 379.9 MB
2,600 PASS 2,597.9 6.29 ms 51.28 ms 0.00% 0 308% / 72% / 147% 380.0 MB
2,650 PASS 2,647.5 9.37 ms 31.04 ms 0.00% 0 310% / 74% / 151% 380.3 MB
2,700 FAIL 2,668.2 87.61 ms 106.14 ms 0.31% 0 322% / 74% / 156% 380.4 MB
2,650 PASS 2,648.5 10.41 ms 42.35 ms 0.00% 0 313% / 74% / 149% 380.4 MB

Octane · toBase() (JIT Off)

laravel-php-octane-projection-nojit
FrankenPHP 1.14 / PHP 8.6 2-query JOIN + toBase() projection JIT: Disabled 4 Octane workers (max 500 req)

2,650 RPS

Confirmed twice · 0 fails

Confirmation Latency

26.5 / 87.3 ms

p50 / p95 · max 97 ms · 0.16% drops

Next Failing Step

2,700 RPS

1.81% drops · p95 244 ms

Steady 50 RPS Hold

2.99 / 6.8 ms

App+HTTP 20.4% · MySQL 3.8% CPU

Memory (50 RPS → Peak)

256.6 → 360.2 MB

App-only peak: 360.2 MB

CPU Split at Confirmed Ceiling (546% total)
App+HTTP 322.6% MySQL 69.8% k6 153.6%
Inspect all 9 fixed-rate binary-search trials (12s holds)
Target RPS Result Delivered p50 p95 Drops HTTP Fail App / DB / k6 CPU RAM
500 PASS 500.1 1.74 ms 2.32 ms 0.00% 0 66% / 14% / 29% 255.2 MB
1,600 PASS 1,599.3 1.56 ms 2.51 ms 0.00% 0 197% / 43% / 95% 245.7 MB
3,600 FAIL 2,556.3 577.33 ms 591.18 ms 25.62% 0 320% / 69% / 147% 359.4 MB
2,600 PASS 2,596.5 8.34 ms 76.55 ms 0.04% 0 314% / 68% / 146% 359.6 MB
3,100 FAIL 2,546.5 568.81 ms 593.67 ms 13.99% 0 319% / 68% / 148% 359.7 MB
2,850 FAIL 2,555.3 319.31 ms 583.75 ms 6.28% 0 316% / 67% / 157% 359.8 MB
2,700 FAIL 2,596.2 141.50 ms 243.64 ms 1.81% 0 325% / 70% / 157% 359.8 MB
2,650 PASS 2,632.9 31.88 ms 73.91 ms 0.05% 0 330% / 70% / 154% 360.1 MB
2,650 PASS 2,629.3 26.45 ms 87.32 ms 0.16% 0 323% / 70% / 154% 360.2 MB

No Octane (FPM) · toBase() + JIT

laravel-php-fpm-projection-jit
PHP 8.6-FPM + Caddy gzip 2-query JOIN + toBase() projection JIT: Tracing (64 MiB) 4 static FPM workers

1,400 RPS

Confirmed twice · 0 fails

Confirmation Latency

7.4 / 22.0 ms

p50 / p95 · max 37 ms · 0.00% drops

Next Failing Step

1,450 RPS

263 HTTP fails

Steady 50 RPS Hold

4.40 / 7.3 ms

App+HTTP 29.3% · MySQL 4.2% CPU

Memory (50 RPS → Peak)

228.4 → 236.6 MB

App-only peak: 141.3 MB

CPU Split at Confirmed Ceiling (422% total)
App+HTTP 270.2% MySQL 65.9% k6 85.7%
Upstream-style 10→7,000 RPS ramp note: Best zero-failure 10s window scored 500.5 RPS at p50 3.7 ms (window drops: 0).
Inspect all 8 fixed-rate binary-search trials (12s holds)
Target RPS Result Delivered p50 p95 Drops HTTP Fail App / DB / k6 CPU RAM
400 PASS 399.9 2.95 ms 3.70 ms 0.00% 0 90% / 19% / 26% 231.9 MB
1,600 FAIL 1,585.2 90.65 ms 104.38 ms 0.12% 2,208 285% / 67% / 93% 236.2 MB
1,000 PASS 999.3 2.99 ms 4.41 ms 0.00% 0 198% / 49% / 67% 238.0 MB
1,300 PASS 1,299.1 3.55 ms 11.04 ms 0.00% 0 259% / 61% / 84% 236.4 MB
1,450 FAIL 1,436.2 86.02 ms 97.27 ms 0.13% 263 282% / 69% / 91% 236.5 MB
1,350 PASS 1,348.9 4.02 ms 9.86 ms 0.00% 0 263% / 63% / 88% 236.5 MB
1,400 PASS 1,398.8 7.37 ms 26.55 ms 0.00% 0 277% / 66% / 90% 238.2 MB
1,400 PASS 1,398.8 7.41 ms 22.02 ms 0.00% 0 270% / 66% / 86% 236.6 MB

Octane · Eloquent (Default)

laravel-php-octane-eloquent
FrankenPHP 1.14 / PHP 8.6 Eloquent 3-query eager load JIT: Disabled 4 Octane workers (max 500 req)

600 RPS

Confirmed twice · 0 fails

Confirmation Latency

50.4 / 82.9 ms

p50 / p95 · max 92 ms · 0.06% drops

Next Failing Step

625 RPS

2.65% drops · p95 451 ms

Steady 50 RPS Hold

9.35 / 10.8 ms

App+HTTP 45.4% · MySQL 2.3% CPU

Memory (50 RPS → Peak)

259.8 → 333.2 MB

App-only peak: 333.2 MB

CPU Split at Confirmed Ceiling (411% total)
App+HTTP 356.8% MySQL 17.6% k6 36.3%
Upstream-style 10→7,000 RPS ramp note: Best zero-failure 10s window scored 580.9 RPS at p50 2,581.1 ms (window drops: 13,844).
Inspect all 7 fixed-rate binary-search trials (12s holds)
Target RPS Result Delivered p50 p95 Drops HTTP Fail App / DB / k6 CPU RAM
300 PASS 299.7 8.12 ms 9.10 ms 0.00% 0 181% / 9% / 19% 258.7 MB
900 FAIL 588.9 1,597.45 ms 2,524.63 ms 20.76% 0 359% / 18% / 50% 329.2 MB
600 PASS 593.8 58.56 ms 96.37 ms 0.10% 0 357% / 18% / 36% 332.0 MB
750 FAIL 591.1 872.86 ms 1,598.38 ms 10.18% 0 355% / 18% / 44% 333.1 MB
675 FAIL 588.3 515.60 ms 897.65 ms 5.91% 0 348% / 18% / 39% 333.1 MB
625 FAIL 584.4 311.86 ms 451.22 ms 2.65% 0 357% / 18% / 38% 333.2 MB
600 PASS 595.1 50.43 ms 82.93 ms 0.06% 0 357% / 18% / 36% 333.2 MB

No Octane (FPM) · Eloquent

laravel-php-fpm-eloquent
PHP 8.6-FPM + Caddy gzip Eloquent 3-query eager load JIT: Disabled 4 static FPM workers

525 RPS

Confirmed twice · 0 fails

Confirmation Latency

11.3 / 18.5 ms

p50 / p95 · max 27 ms · 0.00% drops

Next Failing Step

550 RPS

11 HTTP fails · 0.92% drops · p95 243 ms

Steady 50 RPS Hold

10.01 / 11.3 ms

App+HTTP 53.1% · MySQL 2.9% CPU

Memory (50 RPS → Peak)

207.0 → 215.0 MB

App-only peak: 124.4 MB

CPU Split at Confirmed Ceiling (390% total)
App+HTTP 332.0% MySQL 23.0% k6 35.2%
Upstream-style 10→7,000 RPS ramp note: Best zero-failure 10s window scored 303.8 RPS at p50 9.7 ms (window drops: 0).
Inspect all 8 fixed-rate binary-search trials (12s holds)
Target RPS Result Delivered p50 p95 Drops HTTP Fail App / DB / k6 CPU RAM
200 PASS 200.0 8.62 ms 9.78 ms 0.00% 0 134% / 9% / 14% 207.9 MB
700 FAIL 678.7 246.18 ms 259.86 ms 0.91% 1,896 336% / 23% / 38% 214.5 MB
450 PASS 449.3 8.61 ms 11.81 ms 0.00% 0 296% / 20% / 30% 214.8 MB
575 FAIL 557.4 238.65 ms 254.12 ms 0.99% 305 334% / 23% / 35% 214.8 MB
500 PASS 499.1 8.96 ms 14.55 ms 0.00% 0 315% / 22% / 34% 214.9 MB
525 PASS 523.5 11.58 ms 21.32 ms 0.00% 0 335% / 23% / 34% 215.0 MB
550 FAIL 533.6 149.67 ms 243.02 ms 0.92% 11 335% / 23% / 37% 215.0 MB
525 PASS 523.8 11.28 ms 18.52 ms 0.00% 0 332% / 23% / 35% 215.0 MB

Inside Laravel 13 PHP — Configuration Impact (Euronodes €1.99/mo VPS)

Octane · toBase() + Tracing JIT
75 RPS
Octane · toBase() (JIT Off)
65 RPS
No Octane (FPM) · toBase() + JIT
40 RPS
Octane · Eloquent (Default)
Failed 100ms SLA at 5 RPS
< 5 RPS
No Octane (FPM) · Eloquent
Failed 100ms SLA at 5 RPS
< 5 RPS

Octane · toBase() + Tracing JIT

laravel-php-octane-projection-jit
FrankenPHP 1.14 / PHP 8.6 2-query JOIN + toBase() projection JIT: Tracing (64 MiB) 4 Octane workers (max 500 req)

75 RPS

Confirmed twice · 0 fails

Confirmation Latency

17.5 / 55.8 ms

p50 / p95 · max 247 ms · 0.00% drops

Next Failing Step

80 RPS

p95 145 ms

Steady 50 RPS Hold

9.96 / 29.6 ms

App+HTTP 25.6% · MySQL 7.1% CPU

Memory (50 RPS → Peak)

305.5 → 284.7 MB

App-only peak: 284.7 MB

CPU Split at Confirmed Ceiling (72% total)
App+HTTP 39.3% MySQL 11.2% k6 21.5%
Inspect all 8 fixed-rate binary-search trials (12s holds)
Target RPS Result Delivered p50 p95 Drops HTTP Fail App / DB / k6 CPU RAM
50 PASS 50.3 12.19 ms 31.79 ms 0.00% 0 25% / 7% / 14% 302.5 MB
100 FAIL 96.6 327.70 ms 625.45 ms 3.75% 0 53% / 15% / 27% 300.3 MB
75 PASS 75.3 15.48 ms 43.11 ms 0.00% 0 37% / 11% / 21% 300.1 MB
85 FAIL 81.5 37.71 ms 990.42 ms 4.90% 0 46% / 12% / 22% 300.1 MB
80 PASS 80.3 17.91 ms 59.60 ms 0.00% 0 41% / 12% / 22% 287.9 MB
80 FAIL 80.3 24.75 ms 145.46 ms 0.00% 0 44% / 12% / 24% 287.3 MB
75 PASS 75.3 16.15 ms 48.98 ms 0.00% 0 38% / 11% / 21% 284.4 MB
75 PASS 75.3 17.53 ms 55.79 ms 0.00% 0 39% / 11% / 21% 284.7 MB

Octane · toBase() (JIT Off)

laravel-php-octane-projection-nojit
FrankenPHP 1.14 / PHP 8.6 2-query JOIN + toBase() projection JIT: Disabled 4 Octane workers (max 500 req)

65 RPS

Confirmed twice · 0 fails

Confirmation Latency

13.8 / 39.5 ms

p50 / p95 · max 96 ms · 0.00% drops

Next Failing Step

70 RPS

p95 100.0 ms

Steady 50 RPS Hold

14.31 / 49.2 ms

App+HTTP 29.5% · MySQL 7.2% CPU

Memory (50 RPS → Peak)

273.5 → 265.7 MB

App-only peak: 265.7 MB

CPU Split at Confirmed Ceiling (63% total)
App+HTTP 36.0% MySQL 9.4% k6 18.1%
Inspect all 7 fixed-rate binary-search trials (12s holds)
Target RPS Result Delivered p50 p95 Drops HTTP Fail App / DB / k6 CPU RAM
50 PASS 50.3 10.63 ms 30.88 ms 0.00% 0 27% / 7% / 14% 273.5 MB
100 FAIL 90.3 748.37 ms 1,111.73 ms 11.83% 0 55% / 14% / 25% 271.7 MB
75 FAIL 75.3 25.74 ms 113.92 ms 0.00% 0 46% / 12% / 22% 274.0 MB
60 PASS 60.3 12.58 ms 34.66 ms 0.00% 0 35% / 9% / 19% 274.1 MB
65 PASS 65.3 10.55 ms 38.36 ms 0.00% 0 37% / 10% / 19% 264.7 MB
70 FAIL 70.3 20.69 ms 100.02 ms 0.00% 0 41% / 10% / 21% 264.7 MB
65 PASS 65.3 13.83 ms 39.49 ms 0.00% 0 36% / 9% / 18% 265.7 MB

No Octane (FPM) · toBase() + JIT

laravel-php-fpm-projection-jit
PHP 8.6-FPM + Caddy gzip 2-query JOIN + toBase() projection JIT: Tracing (64 MiB) 4 static FPM workers

40 RPS

Confirmed twice · 0 fails

Confirmation Latency

22.9 / 56.4 ms

p50 / p95 · max 96 ms · 0.00% drops

Next Failing Step

45 RPS

p95 102.5 ms

Steady 50 RPS Hold

160 / 334 ms

App+HTTP 65.6% · MySQL 12.3% CPU

Memory (50 RPS → Peak)

254.3 → 244.0 MB

App-only peak: 186.0 MB

CPU Split at Confirmed Ceiling (59% total)
App+HTTP 40.2% MySQL 7.4% k6 11.3%
Inspect all 9 fixed-rate binary-search trials (12s holds)
Target RPS Result Delivered p50 p95 Drops HTTP Fail App / DB / k6 CPU RAM
50 FAIL 50.3 69.92 ms 339.49 ms 0.00% 0 62% / 11% / 17% 255.5 MB
25 PASS 25.3 24.03 ms 61.06 ms 0.00% 0 27% / 5% / 8% 253.4 MB
50 FAIL 50.5 113.35 ms 331.56 ms 0.00% 0 65% / 11% / 17% 253.4 MB
35 PASS 35.3 25.93 ms 61.51 ms 0.00% 0 38% / 8% / 11% 243.7 MB
40 PASS 40.3 26.02 ms 63.29 ms 0.00% 0 42% / 8% / 12% 244.2 MB
45 PASS 45.3 36.87 ms 79.43 ms 0.00% 0 52% / 10% / 14% 242.9 MB
45 FAIL 45.3 33.74 ms 102.50 ms 0.00% 0 50% / 9% / 14% 243.8 MB
40 PASS 40.3 30.25 ms 68.69 ms 0.00% 0 43% / 8% / 12% 243.8 MB
40 PASS 40.3 22.93 ms 56.36 ms 0.00% 0 40% / 7% / 11% 244.0 MB

Octane · Eloquent (Default)

laravel-php-octane-eloquent
FrankenPHP 1.14 / PHP 8.6 Eloquent 3-query eager load JIT: Disabled 4 Octane workers (max 500 req)

< 5 RPS

No SLA pass down to 5 RPS

Confirmation Latency

No pass

Exceeded 100 ms p95 at 5 RPS

Next Failing Step

5 RPS

p95 107.6 ms

Steady 50 RPS Hold

4,432 / 5,015 ms

App+HTTP 76.1% · MySQL 5.5% CPU

Memory (50 RPS → Peak)

276.1 → 274.2 MB

App-only peak: 274.2 MB

CPU Split at Confirmed Ceiling (18% total)
App+HTTP 13.6% MySQL 1.4% k6 3.4%
Inspect all 4 fixed-rate binary-search trials (12s holds)
Target RPS Result Delivered p50 p95 Drops HTTP Fail App / DB / k6 CPU RAM
50 FAIL 40.4 3,671.47 ms 5,004.68 ms 19.67% 102 78% / 5% / 11% 281.7 MB
25 FAIL 25.3 70.17 ms 177.03 ms 0.00% 0 65% / 5% / 10% 282.0 MB
10 FAIL 10.3 33.40 ms 110.48 ms 0.00% 0 25% / 2% / 5% 278.3 MB
5 FAIL 5.3 30.29 ms 107.55 ms 0.00% 0 14% / 1% / 3% 274.2 MB

No Octane (FPM) · Eloquent

laravel-php-fpm-eloquent
PHP 8.6-FPM + Caddy gzip Eloquent 3-query eager load JIT: Disabled 4 static FPM workers

< 5 RPS

No SLA pass down to 5 RPS

Confirmation Latency

No pass

Exceeded 100 ms p95 at 5 RPS

Next Failing Step

5 RPS

p95 159 ms

Steady 50 RPS Hold

5,000 / 5,014 ms

App+HTTP 78.3% · MySQL 5.7% CPU

Memory (50 RPS → Peak)

237.3 → 233.4 MB

App-only peak: 171.8 MB

CPU Split at Confirmed Ceiling (22% total)
App+HTTP 16.4% MySQL 1.8% k6 3.5%
Inspect all 4 fixed-rate binary-search trials (12s holds)
Target RPS Result Delivered p50 p95 Drops HTTP Fail App / DB / k6 CPU RAM
50 FAIL 38.7 4,992.23 ms 5,009.31 ms 22.67% 270 79% / 6% / 9% 239.7 MB
25 FAIL 25.1 1,333.07 ms 1,871.27 ms 1.00% 0 79% / 5% / 9% 240.1 MB
10 FAIL 10.3 49.03 ms 163.95 ms 0.00% 0 33% / 3% / 6% 233.4 MB
5 FAIL 5.3 44.33 ms 159.24 ms 0.00% 0 16% / 2% / 4% 233.4 MB

Where Laravel 13 PHP Sits vs. the Full Field

Highlighted bars belong to Laravel 13 PHP. Click any row to jump directly to that framework’s deep-dive.

Actual Benchmark Source Code

The exact controller/handler code executed during the timed runs for Laravel 13 PHP.

app/Http/Controllers/ChirpController.php (Idiomatic Eloquent)

Original 16-line Eloquent controller — 525 RPS (FPM) / 600 RPS (Octane).

php
<?php

namespace App\Http\Controllers;

use App\Models\Chirp;
use Illuminate\Contracts\Pagination\LengthAwarePaginator;

class ChirpController extends Controller
{
    public function index(): LengthAwarePaginator
    {
        return Chirp::with('author')->orderByDesc('id')->paginate(50);
    }

    public function show(Chirp $chirp): Chirp
    {
        return $chirp->load('author');
    }
}

app/Http/Controllers/ProjectionChirpController.php (toBase() + JOIN)

51-line query-builder projection controller — 1,400 RPS (FPM + JIT) / 2,650 RPS (Octane).

php
<?php

namespace App\Http\Controllers;

use App\Models\Chirp;
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
use Illuminate\Database\Query\Builder;
use Illuminate\Http\JsonResponse;

class ProjectionChirpController extends Controller
{
    private function query(): Builder
    {
        return Chirp::query()
            ->join('authors', 'authors.id', '=', 'chirps.author_id')
            ->select('chirps.*', 'authors.username', 'authors.created_at as author_created_at', 'authors.updated_at as author_updated_at')
            ->toBase();
    }

    public function index(): LengthAwarePaginator
    {
        return $this->query()->orderByDesc('chirps.id')->paginate(50)
            ->through($this->serialize(...));
    }

    public function show(int $chirp): JsonResponse
    {
        $row = $this->query()->where('chirps.id', $chirp)->first();

        return $row === null
            ? response()->json(['message' => 'Not found'], 404)
            : response()->json($this->serialize($row));
    }

    private function serialize(object $row): array
    {
        return [
            'id' => (int) $row->id,
            'text' => $row->text,
            'author_id' => (int) $row->author_id,
            'created_at' => $this->timestamp($row->created_at),
            'updated_at' => $this->timestamp($row->updated_at),
            'author' => [
                'id' => (int) $row->author_id,
                'username' => $row->username,
                'created_at' => $this->timestamp($row->author_created_at),
                'updated_at' => $this->timestamp($row->author_updated_at),
            ],
        ];
    }

    private function timestamp(?string $value): ?string
    {
        return $value === null ? null : str_replace(' ', 'T', $value).'.000000Z';
    }
}

Architecture & Audit Notes

  • With Eloquent, each feed request runs 3 queries and hydrates 50 Chirp + 10 Author models via newFromBuilder(), fires retrieved events, resolves __get()/getAttribute() casts and Carbon timestamps, and walks the graph again in toArray().
  • Octane (FrankenPHP) only improved Eloquent by +14% (525 → 600 RPS) because Eloquent hydration + Octane's per-request container clone/sandbox reset dwarf PHP's bootstrap cost.
  • Switching to ProjectionChirpController (toBase() + SQL JOIN + explicit serializer) lifted FPM 2.7× (525 → 1,400 RPS) and Octane 4.4× (600 → 2,650 RPS) — proving you can get massive read-endpoint wins without abandoning Laravel.
  • Isolated JIT A/B test: on Octane toBase(), enabling tracing JIT (64 MiB) held the same 2,650 RPS grid step while cutting confirmation p95 latency by 51.5% (87.32 ms → 42.35 ms) and p50 by 60.6% (26.45 ms → 10.41 ms).
  • Ramp-overload discovery: in Zhan's Docker ramp (1,061 RPS) and our initial ramp (1,059 RPS), throwing 1,500 VUs at 4 synchronous PHP workers collapsed throughput; under clean fixed-rate holds, Octane toBase() sustained 2,650 RPS cleanly.

Strengths

  • + Unmatched full-stack ecosystem: Livewire, Filament, Blade, Horizon, Cashier, Scout, and a decade of Composer packages.
  • + Near-instant deploys (no multi-minute compilation) and fast product iteration.
  • + Hot read endpoints can jump 4–5× in ~40 lines using toBase() + explicit serialization without leaving Laravel.
  • + Laravel 13 remains actively supported (bug fixes through Q3 2027, security fixes through March 2028) with the new first-party Laravel AI SDK.

Trade-offs

  • − Default Eloquent hydration + Laravel's container/pipeline overhead is genuinely expensive on tight JSON read loops (525 RPS FPM / 600 RPS Octane).
  • − Even with toBase() + JOIN + tracing JIT (2,650 RPS), Octane's request sandbox/pipeline overhead still sits behind Symfony Doctrine object hydration (3,100 RPS).
  • − Worker recycling every 500 requests adds periodic overhead at high RPS.

Reproduce Locally

Exact commands to build, migrate/seed, and serve the Laravel 13 PHP Chirper benchmark repository against MySQL 8.4:

composer install --no-dev --prefer-dist --optimize-autoloader --no-interaction
export APP_ENV=production APP_DEBUG=false BENCHMARK_PROJECTION=false
php artisan config:cache && php artisan route:cache && php artisan migrate --force
# With Octane:
php artisan octane:frankenphp --host=127.0.0.1 --port=8080 --workers=4 --max-requests=500 --caddyfile=./Caddyfile.benchmark