DEV Community

Discussion on: New PHP router wich is 7 to 15 times faster then Symfony router

Collapse
 
nicolasgrekas profile image
Nicolas Grekas • Edited

Hello, thanks for contributing to the space of routing libraries in PHP.
FYI, your benchmark for the Symfony router is using the slowest path supported by the component.
If you really want to compare its performance to your work, you should use the CompiledUrlMatcher.
AFAIK, this is the fastest PHP Router existing to date.
I would be very (and happily) surprised if your router were (significantly) faster. Let me know!
Check medium.com/@nicolas.grekas/making-... for some background on the technology.

Collapse
 
alexdodonov profile image
alexdodonov

Hi! I have benchmarked CompiledUrlMatcher - dev.to/alexdodonov/real-life-compa...