spdy-http2 / node-spdy

SPDY server on Node.js
2.81k stars 196 forks source link

Poor performance compared to Node's `https` module #304

Open borisovg opened 7 years ago

borisovg commented 7 years ago

Not sure if this is expected but the performance is much worse than Node's https module.

TLS Protocol: TLSv1.2
Cipher: ECDHE-RSA-AES128-GCM-SHA256
Server Temp Key: ECDH P-256 256 bits
Application protocol: http/1.1
...
finished in 12.50s, 8003.10 req/s, 7.33MB/s

vs

TLS Protocol: TLSv1.2
Cipher: ECDHE-RSA-AES128-GCM-SHA256
Server Temp Key: ECDH P-256 256 bits
Application protocol: h2
...
finished in 27.31s, 3661.89 req/s, 2.95MB/s

Benchmark code is here: https://github.com/borisovg/node-spdy-performance

daviddias commented 7 years ago

Interesting, there are several reasons why this might be happening. Would you mind if those benchmarks become available within this module. I want to have a set of benchmarks that can be expanded over time that will help those who are more focused on performance to have things to compare against.

borisovg commented 7 years ago

Sure, go ahead.