KeyDB

A benchmark of KeyDB as an open-source, multi-threaded fork of the Redis server now developed by Snapchat. The developers self-describe the KeyDB in-memory data structure store as a "faster drop in alternative to Redis".

To run this test with the Phoronix Test Suite, the basic command is: phoronix-test-suite benchmark keydb.

Project Site

keydb.dev

Source Repository

github.com

Test Created

7 October 2019

Last Updated

22 January 2023

Test Maintainer

Michael Larabel 

Test Type

System

Average Install Time

1 Minute, 11 Seconds

Average Run Time

7 Minutes, 35 Seconds

Test Dependencies

C/C++ Compiler Toolchain + Libevent + Perl Compatible Regular Expressions + OpenSSL + Libtool + Curl + UUID + Snappy Compression + Tool Command Language + Nasm Assembler

Accolades

50k+ Downloads

Supported Platforms


Public Result Uploads *Reported Installs **Reported Test Completions **Test Profile Page Views ***OpenBenchmarking.orgEventsKeyDB Popularity Statisticspts/keydb2019.102020.012020.032020.052020.072020.092020.112021.012021.032021.052021.072021.092021.112022.012022.032022.052022.072022.092022.112023.012023.032023.052023.072023.092023.112024.012024.032K4K6K8K10K
* Uploading of benchmark result data to OpenBenchmarking.org is always optional (opt-in) via the Phoronix Test Suite for users wishing to share their results publicly.
** Data based on those opting to upload their test results to OpenBenchmarking.org and users enabling the opt-in anonymous statistics reporting while running benchmarks from an Internet-connected platform.
*** Test profile page view reporting began March 2021.
Data updated weekly as of 14 April 2024.
HMSET16.0%LPUSH16.0%SET18.6%GET17.4%LPOP16.0%SADD16.0%Test Option PopularityOpenBenchmarking.org
50018.6%90018.6%10028.9%5033.9%Parallel Connections Option PopularityOpenBenchmarking.org

Revision History

pts/keydb-1.4.0   [View Source]   Sun, 22 Jan 2023 19:04:16 GMT
Update against KeyDB 6.3.2 upstream.

pts/keydb-1.3.1   [View Source]   Wed, 11 Aug 2021 19:37:26 GMT
Adjust checksums for KeyDB-6.2.0 that seemed to have been re-tagged on GitHub.

pts/keydb-1.3.0   [View Source]   Wed, 11 Aug 2021 18:45:19 GMT
Update against KeyDB 6.2.0 upstream.

pts/keydb-1.2.0   [View Source]   Mon, 28 Sep 2020 17:34:54 GMT
Update against KeyDB 6.0.16 upstream.

pts/keydb-1.1.0   [View Source]   Thu, 27 Feb 2020 10:46:34 GMT
Pull in https://github.com/phoronix-test-suite/test-profiles/pull/130 plus update KeyDB from v5.0 to v5.3.1 upstream.

pts/keydb-1.0.1   [View Source]   Mon, 07 Oct 2019 20:05:52 GMT
Limit server thread to 4 per recommendation, add uuid as external dependency.

pts/keydb-1.0.0   [View Source]   Mon, 07 Oct 2019 19:43:48 GMT
Initial commit of KeyDB test profile.

Suites Using This Test

Database Test Suite

C/C++ Compiler Tests

Server


Performance Metrics

Analyze Test Configuration:

KeyDB 6.2.0

OpenBenchmarking.org metrics for this test profile configuration based on 264 public results since 11 August 2021 with the latest data as of 18 January 2023.

Below is an overview of the generalized performance for components where there is sufficient statistically significant data based upon user-uploaded results. It is important to keep in mind particularly in the Linux/open-source space there can be vastly different OS configurations, with this overview intended to offer just general guidance as to the performance expectations.

Component
Percentile Rank
# Compatible Public Results
Ops/sec (Average)
98th
3
998063 +/- 1072
96th
4
919974 +/- 7077
94th
6
858079 +/- 18210
89th
3
810024 +/- 76760
86th
10
770137 +/- 32987
83rd
3
755468 +/- 5756
80th
3
626011 +/- 10158
80th
4
623717 +/- 5515
Mid-Tier
75th
< 602742
74th
4
600112 +/- 3521
72nd
5
572992 +/- 60076
69th
3
537373 +/- 6238
67th
3
526918 +/- 4942
66th
3
520147 +/- 38284
59th
9
489662 +/- 49037
57th
3
484171 +/- 6300
52nd
4
455978 +/- 14915
Median
50th
448900
50th
3
446055 +/- 2967
47th
3
427103 +/- 5693
45th
4
407266 +/- 12181
42nd
4
368891 +/- 42895
37th
4
348877 +/- 39241
30th
5
312542 +/- 31756
29th
3
297188 +/- 2362
Low-Tier
25th
< 261751
25th
5
258419 +/- 2070
23rd
3
254568 +/- 10337
18th
6
223679 +/- 5318
13th
3
185300 +/- 5767
12th
3
184692 +/- 1278
OpenBenchmarking.orgDistribution Of Public Results264 Results Range From 44052 To 1518639 Ops/sec4405273544103036132528162020191512221004250496279988309480338972368464397956427448456940486432515924545416574908604400633892663384692876722368751860781352810844840336869828899320928812958304987796101728810467801076272110576411352561164748119424012237321253224128271613122081341700137119214006841430176145966814891601518652510152025

Based on OpenBenchmarking.org data, the selected test / test configuration (KeyDB 6.2.0) has an average run-time of 8 minutes. By default this test profile is set to run at least 3 times but may increase if the standard deviation exceeds pre-defined defaults or other calculations deem additional runs necessary for greater statistical accuracy of the result.

OpenBenchmarking.orgMinutesTime Required To Complete BenchmarkRun-Time612182430Min: 5 / Avg: 7.9 / Max: 26

Based on public OpenBenchmarking.org results, the selected test / test configuration has an average standard deviation of 0.4%.

OpenBenchmarking.orgPercent, Fewer Is BetterAverage Deviation Between RunsDeviation246810Min: 0 / Avg: 0.37 / Max: 4

Does It Scale Well With Increasing Cores?

No, based on the automated analysis of the collected public benchmark data, this test / test settings does not generally scale well with increasing CPU core counts. Data based on publicly available results for this test / test settings, separated by vendor, result divided by the reference CPU clock speed, grouped by matching physical CPU core count, and normalized against the smallest core count tested from each vendor for each CPU having a sufficient number of test samples and statistically significant data.

IntelAMDOpenBenchmarking.orgRelative Core Scaling To BaseKeyDB CPU Core Scaling468320.69581.39162.08742.78323.479

Notable Instruction Set Usage

Notable instruction set extensions supported by this test, based on an automatic analysis by the Phoronix Test Suite / OpenBenchmarking.org analytics engine.

Instruction Set
Support
Instructions Detected
SSE2 (SSE2)
Used by default on supported hardware.
 
MOVDQU MOVAPD DIVSD CVTSS2SD CVTSD2SS CVTSI2SD MULSD COMISD ADDSD MOVDQA MOVD PUNPCKLQDQ PSHUFD UCOMISD SUBSD CVTTSD2SI MINSD
Requires passing a supported compiler/build flag (verified with targets: sandybridge, skylake, tigerlake, cascadelake, sapphirerapids, alderlake, znver2, znver3).
Found on Intel processors since Sandy Bridge (2011).
Found on AMD processors since Bulldozer (2011).

 
VZEROUPPER VINSERTF128 VEXTRACTF128 VBROADCASTSD
Requires passing a supported compiler/build flag (verified with targets: skylake, tigerlake, cascadelake, sapphirerapids, alderlake, znver2, znver3).
Found on Intel processors since Haswell (2013).
Found on AMD processors since Excavator (2016).

 
VINSERTI128 VPBROADCASTQ VPERMQ VPERMD VPBLENDD VPERM2I128 VPGATHERQQ VPGATHERDQ VPBROADCASTD VEXTRACTI128
FMA (FMA)
Requires passing a supported compiler/build flag (verified with targets: skylake, tigerlake, cascadelake, sapphirerapids, alderlake, znver2, znver3).
Found on Intel processors since Haswell (2013).
Found on AMD processors since Bulldozer (2011).

 
VFMADD213SD VFMADD231SD
Advanced Vector Extensions 512 (AVX512)
Requires passing a supported compiler/build flag (verified with targets: cascadelake, sapphirerapids).
 
(ZMM REGISTER USE)
The test / benchmark does honor compiler flag changes.
Last automated analysis: 6 February 2023

This test profile binary relies on the shared libraries libssl.so.3, libcrypto.so.3, libm.so.6, libc.so.6.

Tested CPU Architectures

This benchmark has been successfully tested on the below mentioned architectures. The CPU architectures listed is where successful OpenBenchmarking.org result uploads occurred, namely for helping to determine if a given test is compatible with various alternative CPU architectures.

CPU Architecture
Kernel Identifier
Verified On
Intel / AMD x86 64-bit
x86_64
(Many Processors)
Loongson LoongArch 64-bit
loongarch64
Loongson-3A5000LL
ARMv8 64-bit
aarch64
Ampere Altra ARMv8 Neoverse-N1 160-Core