node-vs-php-vs-go
node-vs-php-vs-go copied to clipboard
Limited Redis client instance creation to main module
Noticed the creation of a new redis client per every request has a significant bottleneck. Since you aren't creating a client per request in the nodejs version, this seems a bit more fair -- after the change, I found golang now beats out nodejs even at a concurrency of 1 when running apache bench (from 1.266 ms prechange to 0.588 ms postchange).
Awesome! Ill pull it in as soon as I can re-run the same tests to update the README.me with new results.