This benchmark runs with cache disabled for all of Symfony, Fastroute, and HackRouting.
The (matcher/dispatcher/resolver) is being created in each iteration from scratch.
- FastRoute
- Symfony
- HackRouting
<?php | |
/** | |
* @context={} | |
*/ | |
function foo(): void {} | |
/** | |
* @context={io} |
<?php | |
declare(strict_types=1); | |
use Psl\Async; | |
use Psl\IO; | |
require 'vendor/autoload.php'; | |
function fetch(string $id): string { |
<?php | |
declare(strict_types=1); | |
namespace App; | |
struct User { | |
string $identifier; | |
} |
<?php | |
declare(strict_types=1); | |
namespace App; | |
enum ArticleStatus { | |
case Published; | |
case Draft; | |
case Archived; |