cmorten / opine

Minimalist web framework for Deno ported from ExpressJS.
https://github.com/cmorten/opine/blob/main/.github/API/api.md
MIT License
854 stars 43 forks source link

[#132] std lib and deno upgrade #133

Closed cmorten closed 3 years ago

cmorten commented 3 years ago

Issue

Fixes #132

Details

Upgrade std@0.101.0 and Deno to 1.12.0.

Refactor to benchmarks.

CheckList

github-actions[bot] commented 3 years ago

Benchmark results

PR to merge feat/std-101-and-deno-upgrade 228b7c45ecfeb19108f765d865ae1389a0dadf89 -> main ```console opine: 1 middleware ================================ 1 middleware Running 3s test @ http://localhost:3333/?foo[bar]=baz 2 threads and 10 connections Thread Stats Avg Stdev Max +/- Stdev Latency 3.32ms 2.21ms 31.23ms 95.62% Req/Sec 1.61k 336.92 2.02k 62.90% Latency Distribution 50% 2.77ms 75% 3.32ms 90% 4.35ms 99% 14.86ms 9978 requests in 3.12s, 1.45MB read Requests/sec: 3193.60 Transfer/sec: 474.05KB opine: 10 middleware ================================ 10 middleware Running 3s test @ http://localhost:3333/?foo[bar]=baz 2 threads and 10 connections Thread Stats Avg Stdev Max +/- Stdev Latency 3.08ms 0.95ms 22.32ms 90.81% Req/Sec 1.63k 262.67 1.97k 81.67% Latency Distribution 50% 2.82ms 75% 3.16ms 90% 3.88ms 99% 6.69ms 9798 requests in 3.02s, 1.42MB read Requests/sec: 3249.09 Transfer/sec: 482.29KB opine: 50 middleware ================================ 50 middleware Running 3s test @ http://localhost:3333/?foo[bar]=baz 2 threads and 10 connections Thread Stats Avg Stdev Max +/- Stdev Latency 6.15ms 8.71ms 89.35ms 92.70% Req/Sec 1.15k 337.81 1.57k 65.52% Latency Distribution 50% 3.67ms 75% 4.57ms 90% 9.45ms 99% 51.21ms 6791 requests in 3.00s, 0.98MB read Requests/sec: 2260.42 Transfer/sec: 335.53KB native_http benchmark ================================ Server listening on localhost:3333 Running 3s test @ http://localhost:3333/?foo[bar]=baz 2 threads and 10 connections Thread Stats Avg Stdev Max +/- Stdev Latency 773.05us 1.65ms 24.56ms 97.94% Req/Sec 8.56k 1.55k 10.52k 64.52% Latency Distribution 50% 521.00us 75% 597.00us 90% 822.00us 99% 10.01ms 52870 requests in 3.10s, 4.39MB read Requests/sec: 17034.69 Transfer/sec: 1.41MB std/http benchmark ================================ http://localhost:3333/ Running 3s test @ http://localhost:3333/?foo[bar]=baz 2 threads and 10 connections Thread Stats Avg Stdev Max +/- Stdev Latency 4.63ms 10.98ms 86.12ms 91.65% Req/Sec 3.24k 1.23k 4.54k 78.33% Latency Distribution 50% 1.23ms 75% 1.66ms 90% 10.11ms 99% 57.49ms 19683 requests in 3.13s, 2.08MB read Requests/sec: 6297.10 Transfer/sec: 682.60KB deno_http_native benchmark ================================ Server listening on localhost:3333 Running 3s test @ http://localhost:3333/?foo[bar]=baz 2 threads and 10 connections Thread Stats Avg Stdev Max +/- Stdev Latency 512.72us 219.05us 4.68ms 91.45% Req/Sec 9.84k 1.62k 17.56k 88.52% Latency Distribution 50% 463.00us 75% 531.00us 90% 651.00us 99% 1.38ms 59701 requests in 3.10s, 4.95MB read Requests/sec: 19262.89 Transfer/sec: 1.60MB ```