Benchmarking RedisGraph 1.0: Update

Introduction

After we published our recent RedisGraph benchmarking results, the folks at TigerGraph replied with some thoughts. While we appreciate hearing our competition’s perspective, we’d like to address their accusation of fake news.

In our blog post, we introduced a parallel requests benchmark. This test is the same K-hop neighborhood count query test created by TigerGraph, but for our test, we had 22 clients execute the queries against RedisGraph concurrently. We introduced the concurrent requests test because we believe it is representative of almost any real-time, real-world scenario.

The results we published measured the overall benchmark time of 300 seeds for RedisGraph. This is the time it took from submitting the first query until the last query returned. For TigerGraph however, we extrapolated the overall benchmark time instead of executing the benchmark. We wrongly assumed that in this concurrent test it could be seen as if the requests were executed sequentially in TigerGraph, since we observed that certain queries in TigerGraph consumed all 32 cores of the machine. The overall benchmark time results that we first published for TigerGraph were based on the average query time that TigerGraph had published multiplied by the total number of seeds.

We acknowledge this was an unfair assumption, so we decided to execute the full benchmark against TigerGraph.

Overall Benchmark Time for Parallel Requests

Published Results: November 2018

For your convenience, below are the results we originally published.  The times presented below are overall benchmark times (for RedisGraph these were measured, for TigerGraph they were extrapolated as described above).

 One-hopTwo-hopThree-hopSix-hop
Data SetMeasureRedisGraphTigerRedisGraphTigerRedisGraphTigerRedisGraphTiger
graph500time (msec)291,89077221,0005,554123,00024,388534,000
normalized165.2127.2122.1121.9
Twittertime (msec)1177,20012,923138,000286,0182,019,0003,117,96418,900,000
normalized161.5110.717.116.1
Benchmark blog image extrapolated

Newly Measured Results: January 2019

The numbers below represent the overall benchmark time we recently measured for TigerGraph.

 One-hopTwo-hopThree-hopSix-hop
Data SetMeasureRedisGraphTigerRedisGraphTigerRedisGraphTigerRedisGraphTiger
graph500time (msec)2915377212,0385,55478,43624,388323,262
normalized15.3115.6114.1113.3
Twittertime (msec)11797912,92372,460286,0181,556,4253,117,96414,864,898
normalized18.415.615.414.8
Benchmark blog image measured

While we found that RedisGraph is still faster than TigerGraph, this new data finds that we are 5-15 times faster (as opposed to the 6-65x estimate we originally published). The biggest change was in the 1-hop queries, whereas for longer path queries the times decreased slightly. This is due to the fact that 1-hop queries are far less computationally expensive than multiple hop queries, allowing for more concurrency. But to quote TigerGraph: “In the real world, if you only need to do one hop, a key-value database or RDBMS is sufficient enough; you don’t need a graph product.”

Average Query Time for Parallel Requests

In addition to the overall benchmark time, we would also like to publish the average query time from our parallel request benchmark, since overall benchmark time is in fact not the best metric for this test. This is because the population of seeds (300) was too small for 22 parallel requests. If, for example, the longest running query was submitted as the last query, then the other 21 clients would be idle, which  would influence overall benchmark time negatively.

A more correct metric is average query time, which averages the individual response times of all 300 seeds. Ideally, we would not include the first 22 and last 22 response times in this average, but since the population of seeds is already so small, we chose to leave them in. Below are the average query times we measured for both RedisGraph and TigerGraph. These are new results that weren’t included in our first benchmark publication, and we used no extrapolation to determine the time results below.

 One-hopTwo-hopThree-hopSix-hop
Data SetMeasureRedisGraphTigerRedisGraphTigerRedisGraphTigerRedisGraphTiger
graph500time (msec)0.610438613495,5501,61423,143
normalized116.1120.2115.9114.3
Twittertime (msec)8537114,83420,269107,704224,5391,069,360
normalized16.916.815.314.8
Benchmark blog image average

This shows that RedisGraph’s average query times are 5-20 times faster than TigerGraph under parallel load. We believe this is what really matters for our RedisGraph users — a database that enables the highest throughput at the lowest latency.

Furthermore, we’re making our modifications to the benchmarking code originally created by TigerGraph available to everyone and documenting a known issue about our variable length path query behaviour. We would also like to confirm that any results published in our original blog post that were not for TigerGraph or RedisGraph were the results that TigerGraph originally published — no boosters were given. And yes, in addition to RedisGraph, TigerGraph was another solution that never timed out in any test.