Skip to content

Performance degradation from 3.1.2 to 4.2.0 #2207

Open
@jspitzig-cribl

Description

@jspitzig-cribl

We are attempting to upgrade from redis 3.1.2 to 4.2.0, but in our testing, we observed a throughput degradation with the upgraded version. As I was investigating, I found the benchmarks in this project, but it appears that the tests favor 4.x, as they take advantage of automatic pipelining, while the v3 tests were not executing as a pipeline. When I corrected for this, I was able to reproduce the performance reduction. I also created a separate project to run a number of performance tests, which suffered similar results.

Forked branch containing the changes to the node-redis benchmarks:
https://github.com/jspitzig-cribl/node-redis/tree/benchmark-pipelining

Performance test project:
https://github.com/jspitzig-cribl/redis-perf-comparison

Perhaps there is a mistake or misunderstanding in my tests. If this is the case, please let me know.

Environment:

  • Node.js Version: v14.18.3
  • Redis Server Version: 6.2.5
  • Node Redis Version: 4.2.0
  • Platform: Ubuntu 22.04, MacOS 12.3.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions