Repository navigation
Add re-runnable router benchmark vs FastRoute and Symfony Routing - #8
Merged
Merged
Conversation
Standalone composer project in benchmark/ comparing ruta (in-memory and cached) with nikic/fast-route (simple and cached dispatcher) and symfony/routing (UrlMatcher and compiled matcher) across REST-style and static route sets of configurable size, measuring setup cost and static/dynamic/deep/not-found dispatch scenarios. Includes a manually triggerable Benchmark workflow that prints results to the job summary. Closes #7 https://claude.ai/code/session_01HFuiFYMtQfuPKMX4rCifzu
tylersriver
force-pushed
the
claude/issue-7-gk4shy
branch
from
June 11, 2026 01:50
a91d2f0 to
b7747ce
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #7
What
Adds a re-runnable benchmark comparing ruta against nikic/fast-route and symfony/routing (including Symfony's compiled matcher) under various configurations, plus the measured results and an evaluation.
benchmark/— standalone composer project so the comparison libraries never become dependencies of ruta itself (ruta is pulled in through apathrepository). Run withcd benchmark && composer install && php run.php; flags for route counts, shapes, subjects, iterations and repeats.ruta,ruta (cached)viaRuta\cachedRouter(), FastRoute simple + cached dispatcher, SymfonyUrlMatcher+CompiledUrlMatcher..github/workflows/benchmark.yml— manually triggerable workflow that prints the result tables to the job summary.benchmark/README.md— methodology, fairness notes, full results and interpretation.Headline results (PHP 8.4, opcache off)
cachedRouter()cuts setup ~3× at 600+ routes.Note:
benchmark/composer.lockis intentionally git-ignored — a path-repository lock pins ruta to the branch name it was generated on and would breakcomposer installafter merge.https://claude.ai/code/session_01HFuiFYMtQfuPKMX4rCifzu
Generated by Claude Code