Skip to content

Instantly share code, notes, and snippets.

@tlivings
Last active December 30, 2015 12:59
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tlivings/7832825 to your computer and use it in GitHub Desktop.
Save tlivings/7832825 to your computer and use it in GitHub Desktop.
Node.js outbound SSL testing

Overview

Testing out fedor's SSL enhancements. You don't notice the difference... At first!

Once you adjust ciphers to disable ECDH, then you get the nice surprise.

Test Description

Running an http server that acts as a proxy to an SSL server, all running on localhost.

v0.10.22

Running 10s test @ http://127.0.0.1:3000/
  20 threads and 20 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    69.38ms   30.43ms 268.56ms   95.24%
    Req/Sec    14.95      4.16    20.00     58.65%
  3055 requests in 10.01s, 337.12KB read
Requests/sec:    305.28
Transfer/sec:     33.69KB

v0.11.10-pre (build from master)

Running 10s test @ http://127.0.0.1:3000/
  20 threads and 20 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    75.87ms    7.10ms 102.87ms   71.55%
    Req/Sec    12.77      2.43    19.00     64.17%
  2620 requests in 10.01s, 276.33KB read
Requests/sec:    261.86
Transfer/sec:     27.62KB

Adjusted

Adjusted to have agent options:

{
    "maxSockets": 50,
    "ciphers": "AES256-GCM-SHA384"
}

v0.10.22

Running 10s test @ http://localhost:3000/
  20 threads and 20 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    59.85ms    6.77ms  95.71ms   77.29%
    Req/Sec    16.39      2.36    22.00     61.97%
  3339 requests in 10.00s, 368.46KB read
Requests/sec:    333.79
Transfer/sec:     36.83KB

v0.11.10-pre (build from master)

Running 10s test @ http://localhost:3000/
  20 threads and 20 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    38.99ms    5.96ms  71.87ms   86.22%
    Req/Sec    25.43      5.70    35.00     63.36%
  5160 requests in 10.00s, 569.41KB read
Requests/sec:    515.80
Transfer/sec:     56.92KB

WOW FEDOR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment