We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When number of routes increase, router performance drops linearly (still amazing, though : ).
# ruby s = (1..1000).to_a.map { |e| %Q(get "/#{e}" { "hello" } ) }.join("\n") File.write('frank_router_performance.cr', s)
wrk -c100 -t 2 -d 10s http://127.0.0.1:3000/1 wrk -c100 -t 2 -d 10s http://127.0.0.1:3000/100 wrk -c100 -t 2 -d 10s http://127.0.0.1:3000/500 wrk -c100 -t 2 -d 10s http://127.0.0.1:3000/1000
Linear drop of performance. Because of @routes = [] of Route ?
I don't think it's an issue in production, most app only have several routes.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When number of routes increase, router performance drops linearly (still amazing, though : ).
Generate routes.
Run the app.
Test performace
Linear drop of performance. Because of @routes = [] of Route ?
I don't think it's an issue in production, most app only have several routes.
The text was updated successfully, but these errors were encountered: