Linux-Server-Side-Swift-Benchmarking
Linux-Server-Side-Swift-Benchmarking copied to clipboard
2x Performance optimization for NodeJSON
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...)