Running on an Aleutia R50 Mini-server with an Intel i3 1.7 Ghz, 16 GB and SSD.
Running 10s test @ http://node-js-sample.kuju0.carbonfive.com/
2 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 6.57ms 2.04ms 26.01ms 81.91%
Req/Sec 798.54 132.61 1.10k 72.46%
15433 requests in 10.00s, 3.16MB read
Requests/sec: 1543.32
Transfer/sec: 323.96KB
Running 10s test @ http://kuju0:5000
2 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 4.23ms 1.66ms 27.46ms 86.13%
Req/Sec 1.23k 229.90 1.82k 64.22%
23564 requests in 10.00s, 4.36MB read
Requests/sec: 2356.40
Transfer/sec: 446.43KB
I'm impressed that dokku doesn't add more overhead. Also, I suspect much of the overhead is the result of fronting node with ngnix. nginx is fast, but for such a simple app, the tinsy bit of added latency becomes significant. In a real-world app, it would be neglicable compared to servicing the request.