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

Node Test and Sinatra Data Not Right #8

Open
josephkandi opened this issue Oct 3, 2015 · 0 comments
Open

Node Test and Sinatra Data Not Right #8

josephkandi opened this issue Oct 3, 2015 · 0 comments

Comments

@josephkandi
Copy link

I run the same tests on the Macbook Air 1.3 GHZ i5 4Gig RAM and this is what i got, for NodeJS

Josephs-MacBook-Air:~ joseph$  wrk -c 64 -d 30s http://localhost:3000/10 
Running 30s test @ http://localhost:3000/10
  2 threads and 64 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    12.59ms    1.85ms  41.10ms   92.38%
    Req/Sec     2.55k   161.20     3.40k    88.17%
  152520 requests in 30.01s, 30.84MB read
Requests/sec:   5082.61
Transfer/sec:      1.03MB

And this is what i got from running Sinatra with JRuby 9.0, i had to warm up the JVM first and also changed from Thin to use Puma

Josephs-MacBook-Air:~ joseph$  wrk -c 64 -d 30s http://localhost:4567/10 
Running 30s test @ http://localhost:4567/10
  2 threads and 64 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    15.91ms   46.90ms 502.05ms   91.13%
    Req/Sec     2.55k     1.07k    4.94k    63.27%
  152185 requests in 30.03s, 25.25MB read
  Socket errors: connect 0, read 20, write 1, timeout 0
Requests/sec:   5067.90
Transfer/sec:    861.16KB

Under the JVM the performance catches up, i will even run this with TorqueBox this should even give more performance than am currently having with Puma

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

No branches or pull requests

1 participant