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

Fixes #2033, shared queue push bug #2158

Merged
merged 4 commits into from
Apr 21, 2019
Merged

Fixes #2033, shared queue push bug #2158

merged 4 commits into from
Apr 21, 2019

Conversation

ry
Copy link
Member

@ry ry commented Apr 20, 2019

No description provided.

@ry
Copy link
Member Author

ry commented Apr 20, 2019

master branch

  "req_per_sec": {
    "node": 31770, 
    "deno_core_single": 74917, 
    "hyper": 99012, 
    "deno_core_multi": 78296, 
    "deno_net_http": 17691, 
    "deno": 44438, 
    "node_tcp": 73330
  }, 
  "max_latency": {
    "node": 8.47, 
    "deno_core_single": 8.22, 
    "hyper": 1000.0, 
    "deno_core_multi": 6.83, 
    "deno_net_http": 7.13, 
    "deno": 12.83, 
    "node_tcp": 8.65
  }, 

@keroxp's original patch

  "req_per_sec": {
    "node": 31658, 
    "deno_core_single": 69064, 
    "hyper": 90390, 
    "deno_core_multi": 74903, 
    "deno_net_http": 17603, 
    "deno": 42531, 
    "node_tcp": 73079
  }, 
  "max_latency": {
    "node": 11.82, 
    "deno_core_single": 9.92, 
    "hyper": 746.68, 
    "deno_core_multi": 8.18, 
    "deno_net_http": 7.25, 
    "deno": 12.24, 
    "node_tcp": 11.48
  }, 

this branch:

  "req_per_sec": {
    "node": 31795, 
    "deno_core_single": 74600, 
    "hyper": 96806, 
    "deno_core_multi": 78863, 
    "deno_net_http": 17186, 
    "deno": 44598, 
    "node_tcp": 70990
  }, 
  "max_latency": {
    "node": 10.74, 
    "deno_core_single": 8.96, 
    "hyper": 78.68, 
    "deno_core_multi": 8.14, 
    "deno_net_http": 7.0, 
    "deno": 11.86, 
    "node_tcp": 8.14
  }, 

@ry ry requested a review from piscisaureus April 20, 2019 15:01
@keroxp
Copy link
Contributor

keroxp commented Apr 20, 2019

@ry
Copy link
Member Author

ry commented Apr 20, 2019

@keroxp I believe I fixed that now. PTAL

@ry ry mentioned this pull request Apr 20, 2019
@keroxp
Copy link
Contributor

keroxp commented Apr 21, 2019

@ry I tried using this branch for running std's http bench as #2156 and go same results. Can you check https://deno.land/std/http/http_bench.ts with this branch?

@keroxp
Copy link
Contributor

keroxp commented Apr 21, 2019

I think debug! might not affect the result.

Copy link
Member

@piscisaureus piscisaureus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ry
Copy link
Member Author

ry commented Apr 21, 2019

@keroxp here is this branch (running ./target/release/deno -A https://deno.land/std/http/http_bench.ts)

> wrk -d 10 http:https://localhost:4500/
Running 10s test @ http:https://localhost:4500/
  2 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   683.39us  359.08us   9.48ms   94.58%
    Req/Sec     7.58k     0.88k    8.81k    90.59%
  152310 requests in 10.10s, 7.26MB read
Requests/sec:  15080.05
Transfer/sec:    736.33KB

and here is master branch

> wrk -d 10 http:https://localhost:4500/
Running 10s test @ http:https://localhost:4500/
  2 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   702.47us  616.28us  18.67ms   95.87%
    Req/Sec     7.54k     1.02k    9.40k    86.63%
  151495 requests in 10.10s, 7.22MB read
Requests/sec:  14998.30
Transfer/sec:    732.34KB

So seems ok. I will put back in your debug!() calls before landing

@ry ry merged commit 961f87e into denoland:master Apr 21, 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.

None yet

3 participants