Skip to content

Instantly share code, notes, and snippets.

@ry
Created February 26, 2019 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ry/3ff0fdb4c297b2ffb56f44f7fc783f77 to your computer and use it in GitHub Desktop.
Save ry/3ff0fdb4c297b2ffb56f44f7fc783f77 to your computer and use it in GitHub Desktop.
http_benchmark testing DENO.
Compiling file:///home/travis/build/denoland/deno/tests/http_bench.ts
Listening on 127.0.0.1:4544
third_party/wrk/linux/wrk -d 10s http://127.0.0.1:4544/
Running 10s test @ http://127.0.0.1:4544/
2 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 410.07us 738.85us 10.99ms 95.64%
Req/Sec 17.85k 2.22k 32.57k 93.53%
356929 requests in 10.10s, 17.36MB read
Requests/sec: 35341.51
Transfer/sec: 1.72MB
http_benchmark testing DENO using net/http.
Compiling file:///home/travis/build/denoland/deno/js/deps/https/deno.land/x/std/http/http_bench.ts
Compiling https://deno.land/x/std/http/server.ts
Compiling https://deno.land/x/std/io/bufio.ts
Compiling https://deno.land/x/std/io/util.ts
Compiling https://deno.land/x/std/strings/strings.ts
Compiling https://deno.land/x/std/fs/path.ts
Compiling https://deno.land/x/std/fs/path/mod.ts
Compiling https://deno.land/x/std/fs/path/constants.ts
Compiling https://deno.land/x/std/testing/mod.ts
Compiling https://deno.land/x/std/textproto/mod.ts
Compiling https://deno.land/x/std/http/http_status.ts
third_party/wrk/linux/wrk -d 10s http://127.0.0.1:4544/
Running 10s test @ http://127.0.0.1:4544/
2 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 1.11ms 512.77us 12.04ms 94.05%
Req/Sec 4.69k 620.32 5.20k 94.00%
93355 requests in 10.01s, 4.45MB read
Requests/sec: 9330.13
Transfer/sec: 455.57KB
http_benchmark testing deno_core_single
single-thread
http_bench.js start
listening http://127.0.0.1:4544/ rid = 3
third_party/wrk/linux/wrk -d 10s http://127.0.0.1:4544/
op err Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" }
op err Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" }
op err Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" }
op err Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" }
op err Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" }
op err Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" }
Running 10s test @ http://127.0.0.1:4544/
2 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 140.73us 324.88us 8.39ms 98.81%
Req/Sec 44.86k 1.82k 48.13k 89.00%
892505 requests in 10.00s, 43.41MB read
Requests/sec: 89248.53
Transfer/sec: 4.34MB
http_benchmark testing deno_core_multi
multi-thread
http_bench.js start
listening http://127.0.0.1:4544/ rid = 3
third_party/wrk/linux/wrk -d 10s http://127.0.0.1:4544/
op err Os { code: 104, kind: ConnectionResetRunning 10s test @ http://127.0.0.1:4544/
2 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 170.23us 486.07us 11.88ms 98.07%
Req/Sec 41.26k 4.06k 53.94k 80.50%
821295 requests in 10.01s, 39.95MB read
Requests/sec: 82076.63
Transfer/sec: 3.99MB
,http_benchmark testing NODE.
port 4544
third_party/wrk/linux/wrk -d 10s http://127.0.0.1:4544/
Running 10s test @ http://127.0.0.1:4544/
2 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 515.97us 380.16us 12.57ms 97.71%
Req/Sec 10.22k 1.28k 10.80k 94.50%
203526 requests in 10.00s, 21.74MB read
Requests/sec: 20348.56
Transfer/sec: 2.17MB
http_benchmark testing node_tcp.js
port 4544
third_party/wrk/linux/wrk -d 10s http://127.0.0.1:4544/
Running 10s test @ http://127.0.0.1:4544/
2 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 216.08us 224.80us 8.09ms 98.25%
Req/Sec 24.69k 2.43k 47.28k 95.52%
493807 requests in 10.10s, 24.02MB read
Requests/sec: 48892.59
Transfer/sec: 2.38MB
http_benchmark testing RUST hyper.
Listening on http://127.0.0.1:4544
third_party/wrk/linux/wrk -d 10s http://127.0.0.1:4544/
Running 10s test @ http://127.0.0.1:4544/
2 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 106.32us 308.28us 12.48ms 99.33%
Req/Sec 49.43k 3.43k 65.26k 86.50%
983258 requests in 10.00s, 82.52MB read
Requests/sec: 98322.54
Transfer/sec: 8.25MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment