Skip to content

Instantly share code, notes, and snippets.

@mjc
Last active August 29, 2015 14:18
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 mjc/0bd733280095acb2dcd8 to your computer and use it in GitHub Desktop.
Save mjc/0bd733280095acb2dcd8 to your computer and use it in GitHub Desktop.
JRuby benchmark

blank rails 4.2.1 app with blank controller in production mode with torquebox 4 alpha 1 started with rails s -e production torquebox

JRuby be07196

wrk -c 50 -d 10m -t 1 http://localhost:3000 once for warmup and second time for actual run

warmup:

Running 10m test @ http://localhost:3000
  1 threads and 50 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    21.65ms   20.46ms 982.23ms   99.02%
    Req/Sec     2.42k   353.45     2.96k    79.35%
  1441008 requests in 10.00m, 1.80GB read
  Non-2xx or 3xx responses: 1
Requests/sec:   2401.73
Transfer/sec:      3.08MB

hot run:

Running 10m test @ http://localhost:3000
  1 threads and 50 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    20.14ms    3.39ms  92.12ms   82.29%
    Req/Sec     2.50k   287.10     3.01k    68.44%
  1489463 requests in 10.00m, 1.86GB read
Requests/sec:   2482.52
Transfer/sec:      3.18MB

JRuby 1.7.19

wrk -c 50 -d 10m -t 1 http://localhost:3000 once for warmup and second time for actual run

warmup:

Running 10m test @ http://localhost:3000
  1 threads and 50 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    25.66ms   34.13ms   1.38s    99.60%
    Req/Sec     2.09k   290.26     2.57k    67.06%
  1244137 requests in 10.00m, 1.56GB read
  Non-2xx or 3xx responses: 47
Requests/sec:   2073.47
Transfer/sec:      2.66MB

hot run:

Running 10m test @ http://localhost:3000
  1 threads and 50 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    23.12ms    4.30ms  62.89ms   85.36%
    Req/Sec     2.17k   240.84     2.73k    66.48%
  1297705 requests in 10.00m, 1.62GB read
  Non-2xx or 3xx responses: 67
Requests/sec:   2162.68
Transfer/sec:      2.77MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment