How much faster is Redis than mongoDB?

前端 未结 7 1139
既然无缘
既然无缘 2020-12-07 06:34

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 simila

7条回答
  •  一个人的身影
    2020-12-07 07:15

    Here is an excellent article about session performance in the Tornado framework about 1 year old. It has a comparison between a few different implementations, of which Redis and MongoDB are included. The graph in the article states that Redis is behind MongoDB by about 10% in this specific use case.

    Redis comes with a built in benchmark that will analyze the performance of the machine you are on. There is a ton of raw data from it at the Benchmark wiki for Redis. But you might have to look around a bit for Mongo. Like here, here, and some random polish numbers (but it gives you a starting point for running some MongoDB benchmarks yourself).

    I believe the best solution to this problem is to perform the tests yourself in the types of situations you expect.

提交回复
热议问题