~/docs
Resonate
Resonate
13.x 13.43.0.3, current
Fledge
Toggle sidebar
Fledge
webpatser/fledge-framework 13.43.0.3

Fledge 13.x

Benchmarks

The measured numbers published in the Fledge README and the command that reproduces them on your own stack.

The numbers below come from the framework README and were measured on PHP 8.5 with Fledge 13.7 against Laravel 13.7.0, before Fledge required PHP 8.6. Each is one workload on one machine, so your results will differ depending on where your application's time goes: database calls, external HTTP, template compilation, queue dispatch.

Homepage render

A default Laravel skeleton (single homepage route, PHP-FPM with persistent connections) on Fledge compared with stock Laravel 13.7.0, with the same PHP 8.5 build and the same Redis backend:

Metric Laravel 13 Fledge Difference
Homepage render (median) 30 ms 25 ms 17% faster

URI operations

Operation league/uri PHP native
Parse URI 0.047 ms 0.0005 ms
Modify URI 0.24 ms 0.0004 ms

That is roughly 100x faster for URI operations alone. See Native URI.

Run it on this server

The button runs the framework's own UriScenario (the code behind fledge:bench --scenario=uri) with a small iteration count. league/uri is installed here because fledge-fiber requires it, so both variants are timed.

Running...
use Illuminate\Foundation\Console\Bench\Scenarios\UriScenario;

// The same scenario that `php artisan fledge:bench --scenario=uri` runs
foreach ((new UriScenario)->variants() as $name => $variant) {
    $start = hrtime(true);
    for ($i = 0; $i < 300; $i++) {
        $variant(); // parses five sample URLs
    }
    $ms = (hrtime(true) - $start) / 1e6;
}

Polyfill removal

On a single HTTP request the per-call difference between native array_any() and a handwritten foreach is within measurement noise. The gain is structural: fewer version branches, less code on disk and a smaller opcache footprint. It matters most in long-running processes such as queue workers and schedulers.

Redis

Numbers from a local Valkey, 10k iterations, 1k warmup:

Workload fledge-fiber Predis (blocking)
Single sequential Cache::get(), local Redis ~32 µs ~21 µs
3 concurrent Cache::get() via Concurrency::run() ~32 µs total ~63 µs sequential

The fledge client does not make a single Redis call faster. It stops a Redis call from blocking everything else. With one sequential call against a local Redis it adds overhead. It pays off when requests touch Redis several times, when Redis is on another host (1 to 5 ms round trip), or when Redis, database and HTTP calls can overlap. To fall back to the synchronous extension, set REDIS_CLIENT=phpredis.

Run it yourself

The framework ships fledge:bench:

php artisan fledge:bench --scenario=uri --iterations=10000
php artisan fledge:bench --scenario=polyfills
php artisan fledge:bench --scenario=redis
Option Default Meaning
--scenario all uri, polyfills, redis or all
--iterations 10000 Timed iterations per variant
--warmup 1000 Warmup iterations before timing
--format table table or json

The redis scenario uses the redis cache store, with whatever Redis client is configured. For JSON output in CI:

php artisan fledge:bench --scenario=uri --format=json

To compare Redis clients, run the redis scenario with REDIS_CLIENT=fledge and again with REDIS_CLIENT=predis.