YottaDB vs. Redis performance comparison

123 views
Skip to first unread message

K.S. Bhaskar

unread,
Oct 20, 2023, 3:47:31 PM10/20/23
to Hardhats
At All Things Open 2023 this week, we demonstrated a Docker container where visitors to our table could compare JavaScript access to YottaDB and Redis in the same container. You can find the container at https://gitlab.com/YottaDB/Demo/performance-comparisons/ if you would like to try it yourself. Please let us know what you think, if you do. Thank you.

Regards
– Bhaskar

--
YottaDB - Rock solid. Lightning fast. Secure. Pick any three. 

rtweed

unread,
Oct 25, 2023, 10:17:40 AM10/25/23
to Hardhats
Thanks for publishing this, Bhaskar

We've spent a lot of R&D time working on the mg-dbx-napi interface for Node.js and Bun.js, and as you'll see if you try out the container, we're now achieving close to the "holy grail" of native M levels of global access from JavaScript runtimes.

Indeed it's safe to say that the combination of mg-dbx-napi and YottaDB now provides database access from JavaScript that significantly outperforms every other database, even those that have a reputation as ultra-fast.

Performance will vary depending on the hardware you run it on, but on my standard M1 Mac Mini, I can get in excess of 1.6 million global sets/sec and over 2 million reads/second, which is really quite extraordinary!

rrichards

unread,
Nov 9, 2023, 10:12:37 AM11/9/23
to Hardhats
My results on Macbook Air laptop with M1 processor:


mg-dbx-napi performance test Insert and read back 500,000 key/value pairs Global name used is ^ydbtest Please wait... 
----- finished 500,000 inserts in 0 seconds rate: 1,412,429 /sec 
------ finished 500,000 gets in 0 seconds rate: 1,677,852 /sec 

Redis performance test: pipelined Insert and read back 500,000 key/value pairs using HSET and HGET Please wait... 
----- finished 500,000 inserts in 2 seconds rate: 205,254 /sec 
------ finished 500,000 gets in 2 seconds rate: 192,455 /sec

Redis performance test Insert and read back 100,000 key/value pairs using HSET and HGET Please wait... 
----- finished 100,000 inserts in 7 seconds rate: 13,498 /sec 
------ finished 100,000 gets in 6 seconds rate: 14,615 /sec

Node.js Adaptor for YottaDB: Version: 0.20.4 (ABI=108) [FWS]; YottaDB Version: 1.38 Nodem performance test Insert and read back 500,000 key/value pairs Global name used is ^ydbtest Please wait... 
----- finished 500,000 inserts in 1 seconds rate: 484,966 /sec 
------ finished 500,000 gets in 1 seconds rate: 375,375 /sec

mg-dbx-napi performance test Insert and read back 100,000 key/value pairs Global name used is ^ydbtest Please wait... 
----- finished 100,000 inserts in 3 seconds rate: 31,133 /sec 
------ finished 100,000 gets in 5 seconds rate: 17,274 /sec

Any tests for the Bun.js adapter?
Reply all
Reply to author
Forward
0 new messages