You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @matsumotory, I've been spending some time benchmarking OpenResty's lua-resty-redis library vs. mruby-redis and have come across a specific and noticeable difference with one particular setting. The keep alive connection pool.
First, the data: when benchmarking a very simple single get call:
Hi @matsumotory, I've been spending some time benchmarking OpenResty's
lua-resty-redis
library vs.mruby-redis
and have come across a specific and noticeable difference with one particular setting. The keep alive connection pool.First, the data: when benchmarking a very simple single get call:
Yields the following results:
Not bad. Let's look at Lua with a single connection (this is what I assume we're doing in mruby with the above code):
Results:
Ok, so far mruby is handling its business.
Now let's increase the Lua connection pool to 100:
And check the results:
Wowsa, that's quite the difference! Almost 25,000 rps.
So I have some obvious questions.
mruby-redis
?Thanks for taking the time to read through this, and if I'm doing something obviously wrong, make sure to let me know. 😄
The text was updated successfully, but these errors were encountered: