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

[#137] Move to skypack for npm deps #138

Closed cmorten closed 3 years ago

cmorten commented 3 years ago

Issue

Fixes #137

Details

Seeing some issues with esm.sh v44 so migrating to skypack for NPM based deps.

CheckList

github-actions[bot] commented 3 years ago

Benchmark results

PR to merge fix/issue-137-esmsh-ipaddr-default-export 7a6baf975bc44b28018a7183539d3871e182f432 -> 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 2.96ms 0.95ms 22.08ms 88.86% Req/Sec 1.69k 312.53 2.03k 78.33% Latency Distribution 50% 2.64ms 75% 3.14ms 90% 3.99ms 99% 6.46ms 10168 requests in 3.02s, 1.47MB read Requests/sec: 3370.71 Transfer/sec: 500.34KB 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.05ms 0.95ms 22.56ms 89.24% Req/Sec 1.65k 280.83 1.94k 85.00% Latency Distribution 50% 2.72ms 75% 3.19ms 90% 4.00ms 99% 6.99ms 9924 requests in 3.02s, 1.44MB read Requests/sec: 3287.65 Transfer/sec: 488.01KB 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 3.58ms 1.11ms 27.73ms 90.81% Req/Sec 1.41k 220.94 1.64k 80.65% Latency Distribution 50% 3.29ms 75% 3.82ms 90% 4.58ms 99% 7.45ms 8735 requests in 3.12s, 1.27MB read Requests/sec: 2798.32 Transfer/sec: 415.37KB 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 586.86us 204.87us 5.02ms 93.31% Req/Sec 8.50k 0.87k 9.65k 68.75% Latency Distribution 50% 519.00us 75% 668.00us 90% 753.00us 99% 1.50ms 54169 requests in 3.20s, 4.49MB read Requests/sec: 16922.70 Transfer/sec: 1.40MB 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 1.30ms 435.53us 10.24ms 90.25% Req/Sec 3.85k 606.64 4.48k 79.69% Latency Distribution 50% 1.15ms 75% 1.33ms 90% 1.71ms 99% 3.21ms 24562 requests in 3.21s, 2.60MB read Requests/sec: 7662.13 Transfer/sec: 830.56KB 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 515.33us 163.55us 4.17ms 90.84% Req/Sec 9.70k 1.07k 10.90k 75.00% Latency Distribution 50% 471.00us 75% 511.00us 90% 665.00us 99% 1.21ms 61763 requests in 3.20s, 5.12MB read Requests/sec: 19304.56 Transfer/sec: 1.60MB ```