Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimal dispatch #1966

Closed
wants to merge 8 commits into from
Closed

Minimal dispatch #1966

wants to merge 8 commits into from

Conversation

ry
Copy link
Member

@ry ry commented Mar 19, 2019

Perf improvements by switching to current thread runtime, and avoiding the use of flatbuffers for op_read and op_write. Sets the stage to abandon flatbuffers elsewhere.

master branch, deno tests/http_bench.ts

~/src/deno> third_party/wrk/mac/wrk -d 10 -c 10 http://127.0.0.1:4500/
Running 10s test @ http://127.0.0.1:4500/
  2 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     4.94ms   22.73ms 363.54ms   95.28%
    Req/Sec    17.93k     2.66k   22.92k    80.50%
  356819 requests in 10.00s, 17.35MB read
Requests/sec:  35676.99
Transfer/sec:      1.74MB

node tools/node_tcp.js

~/src/deno> third_party/wrk/mac/wrk -d 10 -c 10 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   251.77us  123.99us   4.93ms   84.39%
    Req/Sec    19.51k     2.29k   26.57k    83.17%
  392022 requests in 10.10s, 19.07MB read
Requests/sec:  38815.10
Transfer/sec:      1.89MB

this branch, deno tests/http_bench.ts

~/src/deno> third_party/wrk/mac/wrk -d 10 -c 10 http://127.0.0.1:4500/
Running 10s test @ http://127.0.0.1:4500/
  2 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   525.63us    1.57ms  54.80ms   94.10%
    Req/Sec    24.10k     1.61k   27.45k    80.50%
  479501 requests in 10.00s, 23.32MB read
Requests/sec:  47935.58
Transfer/sec:      2.33MB

this branch, deno_core_http_bench

~/src/deno> third_party/wrk/mac/wrk -d 10 -c 10 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   402.90us    1.15ms  20.76ms   94.86%
    Req/Sec    26.86k     2.01k   31.81k    78.71%
  539721 requests in 10.10s, 26.25MB read
Requests/sec:  53435.75
Transfer/sec:      2.60MB

@ry ry force-pushed the minimal_dispatch branch from a9ccd72 to a2f67e6 Compare March 19, 2019 12:20
@ry ry mentioned this pull request Apr 15, 2019
@ry
Copy link
Member Author

ry commented May 1, 2019

closed in favor of #2259

@ry ry closed this May 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants