Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This improves Rack's performance when escaping/unescaping URLs. For a simple sinatra app (one route returning a string), I get those numbers without escape_utils: request concurrency req/s failures ========================================== 1000 1 952 0 1000 11 1106 0 1000 21 1156 0 1000 31 953 0 1000 41 1030 0 1000 51 1140 0 1000 61 1156 0 1000 71 1123 0 1000 81 1119 0 1000 91 1097 0 And these with escape_utils: request concurrency req/s failures ========================================== 1000 1 964 0 1000 11 1178 0 1000 21 1229 0 1000 31 1206 0 1000 41 1236 0 1000 51 1230 0 1000 61 1222 0 1000 71 1206 0 1000 81 1224 0 1000 91 1190 0 For benchmarking I used Thin's abc (which in turn uses ab).
- Loading branch information