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 22 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.0.16

OpenBenchmarking.org metrics for this test profile configuration based on 575 public results since 28 September 2020 with the latest data as of 12 July 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)
100th
12
1014449 +/- 22961
99th
4
897159 +/- 17977
98th
11
860672 +/- 12576
93rd
27
821169 +/- 25834
93rd
3
817693 +/- 12805
92nd
5
813733 +/- 63059
89th
6
767243 +/- 6646
88th
10
760654 +/- 30119
88th
8
755659 +/- 53580
85th
7
700395 +/- 46745
85th
8
651743 +/- 51005
84th
3
650372 +/- 2870
84th
5
639233 +/- 19473
84th
5
633406 +/- 84068
84th
3
632519 +/- 3653
83rd
3
627531 +/- 3637
80th
5
614898 +/- 11113
78th
7
608259 +/- 4832
76th
3
595357 +/- 507
Mid-Tier
75th
< 588348
75th
6
579582 +/- 34749
75th
3
571893 +/- 3858
74th
3
565853 +/- 8863
74th
7
552306 +/- 42032
72nd
4
528475 +/- 6500
71st
3
521183 +/- 12873
68th
4
511691 +/- 410
67th
4
507741 +/- 1713
66th
10
505037 +/- 18505
65th
10
498022 +/- 61376
64th
3
496744 +/- 7550
62nd
3
474080 +/- 3066
61st
3
460870 +/- 5392
61st
3
459859 +/- 6135
61st
4
458850 +/- 652
58th
3
452996 +/- 1554
57th
4
451268 +/- 761
56th
3
449901 +/- 2753
56th
5
449619 +/- 5074
55th
3
433948 +/- 1435
53rd
3
431212 +/- 2627
51st
3
428283 +/- 8769
51st
11
426856 +/- 3962
Median
50th
425600
50th
3
424821 +/- 4427
50th
13
424688 +/- 4878
48th
14
423219 +/- 7088
46th
3
419514 +/- 2630
45th
5
414642 +/- 4641
42nd
5
410939 +/- 6519
41st
7
409181 +/- 2851
39th
7
405583 +/- 6832
38th
3
405240 +/- 2121
38th
7
403236 +/- 11674
38th
15
403124 +/- 27452
36th
6
398372 +/- 44332
36th
6
397060 +/- 21919
36th
9
396520 +/- 5842
35th
7
395805 +/- 5812
34th
7
394672 +/- 3032
30th
3
390694 +/- 2257
30th
5
390621 +/- 9650
30th
7
390150 +/- 3067
26th
3
384147 +/- 8388
26th
7
383141 +/- 2516
Low-Tier
25th
< 382973
23rd
7
377582 +/- 916
21st
9
373792 +/- 2501
21st
5
371786 +/- 48414
19th
3
345235 +/- 669
16th
3
297317 +/- 4899
16th
17
296583 +/- 10548
16th
3
294715 +/- 1034
15th
3
291161 +/- 704
13th
3
278622 +/- 8079
12th
3
275950 +/- 2356
12th
7
275100 +/- 8342
12th
3
271423 +/- 2024
10th
3
264921 +/- 159
9th
3
256138 +/- 1530
8th
3
250249 +/- 4649
8th
3
242934 +/- 1898
7th
3
236852 +/- 5845
7th
3
224352 +/- 23678
6th
3
198265 +/- 1248
5th
3
176995 +/- 2082
5th
3
175475 +/- 554
4th
3
146475 +/- 984
4th
3
139736 +/- 299
3rd
3
122278 +/- 521
3rd
3
100805 +/- 424
2nd
3
99284 +/- 1947
OpenBenchmarking.orgDistribution Of Public Results575 Results Range From 54076 To 1060172 Ops/sec5407674198943201144421345641546861748081949302150522351742552962754182955403156623357843559063760283961504162724363944565164766384967605168825370045571265772485973706174926376146577366778586979807181027382247583467784687985908187128388348589568790788992009193229394449595669796889998101019932104005410601761632486480

Based on OpenBenchmarking.org data, the selected test / test configuration (KeyDB 6.0.16) has an average run-time of 4 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-Time48121620Min: 4 / Avg: 4.27 / Max: 14

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

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

Does It Scale Well With Increasing Cores?

Yes, based on the automated analysis of the collected public benchmark data, this test / test settings does 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.

AMDIntelOpenBenchmarking.orgRelative Core Scaling To BaseKeyDB CPU Core Scaling4681216243248640.83111.66222.49333.32444.1555

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)