URL routing implementation with RegEx and Radix Tree
PythonMIT
URL routing: RegEx VS RadixTree
Benchmark result (run python router_benchmark.py):
Random router:
Radix Tree Router: 0.8410812499932945
RegEx Router: 3.1290363748557866
First router:
Radix Tree Router: 0.6839567082934082
RegEx Router: 0.041050249710679054