node-vs-php-vs-go icon indicating copy to clipboard operation
node-vs-php-vs-go copied to clipboard

Limited Redis client instance creation to main module

Open johnrjj opened this issue 9 years ago • 1 comments

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).

johnrjj avatar Mar 05 '16 23:03 johnrjj

Awesome! Ill pull it in as soon as I can re-run the same tests to update the README.me with new results.

mreschke avatar Mar 07 '16 03:03 mreschke