-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Revisit performance bottlenecks in hot code paths using Lettuce through the reactive Template #2110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
There are some odd things in the code posted here. First, creating a new We're happy to review profiler findings if you can share some of these with us. |
I create one RedisClient. then make 500_000 calls. This is the actual test. @RepeatedTest is ignoring the first run for warming up and consider subsequent runs. You can ignore RepeatedTest if it is confusing or make it as instance level variable. The point here is - the result is still same.
I see better performance with Lettuce. Not with Spring Redis Template. Thats the question. Feel free to close! |
I recorded a profiling session and there are a few areas that we can optimize. A benchmark reports about 30% of performance difference between plain Lettuce and Spring Data Redis usage (6443 ms vs. 4044 ms) |
With a proper benchmark we get:
Baseline -> Spring Data overhead concatMap ~ 14%, flatMap 38% |
I was trying to run this simple performance test with Spring Data Redis vs lettuce.
Spring Data Redis seems to be significantly slow with default configuration compared to lettuce. (The throughput is 50% less with Spring Data Redis). Is this much difference expected?
You can check yourself wit this code.
The text was updated successfully, but these errors were encountered: