Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (47.6k points)

It's widely mentioned that Redis is "Blazing Fast" and MongoDB is fast too. But, I'm having trouble finding actual numbers comparing the results of the two. Given similar configurations, features and operations (and maybe showing how the factor changes with different configurations and operations), etc, is Redis 10x faster? 2x faster? 5x faster?

I'm ONLY speaking of performance. I understand that MongoDB is a different tool and has a richer feature set. This is not the "Is MongoDB better than Redis" debate. I'm asking, by what margin does Redis outperform MongoDB?

At this point, even cheap benchmarks are better than no benchmarks.

1 Answer

0 votes
by (106k points)

You can use the below-mentioned way:-

Completed mongo_set: 100000 ops in 5.23 seconds : 19134.6 ops/sec 

Completed mongo_get: 100000 ops in 36.98 seconds : 2703.9 ops/sec 

Completed redis_set: 100000 ops in 6.50 seconds : 15389.4 ops/sec 

Completed redis_get: 100000 ops in 5.59 seconds : 17896.3 ops/sec

Related questions

0 votes
1 answer
asked Oct 18, 2019 in Web Technology by Sammy (47.6k points)
0 votes
1 answer
asked Feb 17, 2020 in SQL by anmolj (9k points)
0 votes
1 answer
asked Aug 1, 2020 in Python by ashely (50.2k points)
0 votes
1 answer
0 votes
1 answer
asked Feb 2, 2020 in Web Technology by ashely (50.2k points)

Browse Categories

...