4 ms·
"If you plan to compare Redis to something else, then it is important to evaluate the functional and technical differences, and take them in account. - Redis i
by reitzensteinm 10y ago
"If you plan to compare Redis to something else, then it is important to evaluate the functional and technical differences, and take them in account.
- Redis is a server: all commands involve network or IPC round trips. It is meaningless to compare it to embedded data stores such as SQLite, Berkeley DB, Tokyo/Kyoto Cabinet, etc ... because the cost of most operations is primarily in network/protocol management."
https://redis.io/topics/benchmarks https://redis.io/topics/benchmarks
- marknadal 10y agoAbsolutely! I mention this in one of my other comments, thanks for highlighting it. The performance difference is really a matter of the cache being closer (embedded in-memory into your app), not any magical algorithms. But this is still an optimization that many people miss! And it can significantly speed up your web app.
- theseoafs 10y agoSo why did you make an HN post to share a result that you admit doesn't mean anything?
- marknadal 10y agoI think it means a lot, it is a brilliant optimization that more databases should take advantage of and more web developers should exploit. There are a lot of valuable insights like this that I go over in my JS perf talk (since JS perf is so bad and full of so much pulpit-preaching versus fact-checking) https://www.youtube.com/watch?v=BEqH-oZ4UXI https://www.youtube.com/watch?v=BEqH-oZ4UXI .
- brudgers 10y agoIt's not meaningless to compare X to Redis for a particular app in terms of performance. The choice is an architectural decision and often architectural decisions are made by non-architects based on defaults. That's not to say that the comparison here is bad or good. But it is valid given the diversity of use cases, the complexities of the technical differences you mention, and the pressure that blogs and other media place to adopt large scale solutions for small scale applications.
- deleted 10y ago[deleted]
- reitzensteinm 10y agoThe old title claimed it was 50x faster than Redis with no analysis or discussion of tradeoffs. You had to read the fine print to even see the comparison was apples to oranges. If the comparison were well handled, delving into the architecture tradeoffs, it could be fascinating. But this was just a cheap ploy to get clicks. Now the title has changed, my acidic tone is no longer justified.
- brudgers 10y agoThe former title was in place when I wrote my comment. For what it's worth, according to the guidelines for 'Show HN' an acidic tone is inappropriate. People expose themselves to significant psychological/social risk when posting their own work online as their own work. Show HN is intended to provide a safe productive space. In general, an acidic tone is a bit at odds with HN's general guideline of civility.
- frozenport 10y agoexpose themselves to significant psychological/social risk Sounds too extreme. Criticism like "you are comparing apples to oranges", isn't the same being a political dissident or losing a loved one.