Linux-Server-Side-Swift-Benchmarking icon indicating copy to clipboard operation
Linux-Server-Side-Swift-Benchmarking copied to clipboard

2x Performance optimization for NodeJSON

Open chrisDeFouRire opened this issue 8 years ago • 0 comments

Hi!

I've fixed a few things:

  • Etags were automatically created by express, but SHA hashing comes at a cost, that's a large gain
  • static middleware must be moved after /json route, that's an even larger gain
  • added cluster module, but then you added it too

With everything running on my MBP (2 server processes (cluster) and wrk on the same machine, on OSX, node v6.7), I'm getting about 15k requests/sec... I wonder how many you'll get on your machines (as I started lower than your numbers...)

chrisDeFouRire avatar Oct 09 '16 12:10 chrisDeFouRire