@koa/router v11+ benchmarks 10x SLOWER than v10! #1781
Replies: 3 comments 14 replies
-
Did some more digging from this comparison page: koajs/router@v10.1.1...v11.0.0 Tried each commit, and seemed to pinpoint it to this commit: CC: @titanism Something in that commit made things VERY slow |
Beta Was this translation helpful? Give feedback.
-
This is an amazing find @jeremy-daley-kr (albeit I haven't reproduced yet nor tested benchmarks). Perhaps in the commit it was the change in |
Beta Was this translation helpful? Give feedback.
-
This is now resolved. We have published a new version of v12 and v11 of See koajs/router#173. Thank you sincerely @jeremy-daley-kr – we're going to get this into production at Forward Email today (GitHub at @forwardemail). |
Beta Was this translation helpful? Give feedback.
-
Don't just take my word for it... Run this benchmark: https://github.com/delvedor/router-benchmark
These are the time differences I'm seeing from v10 to v11:
Even v7-v8 were faster:
Something happened between v8 and v9 that made things way better... And then v11 dialed it WAY back.
Note: I had to change
koa-router
's wildcard to a regex.Beta Was this translation helpful? Give feedback.
All reactions