Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

KMS Performance Comparison

Versions: v5.24.0 Generated: 2026-07-09


Benchmark Environment

FieldValue
Date2026-07-09 13:28:17 UTC
Buildrelease / non-fips
DatabaseSQLite (temporary, single benchmark run)
CPUIntel(R) Core(TM) i9-14900T @ 3,302 MHz
CPU cores24 physical / 32 logical (HT)
RAM31.1 GB
OSUbuntu 24.04.4 LTS
Kernel6.8.0-134-generic

Load test parameters

ParameterValue
Modeall
Protocolsall
Measurement window20 s per concurrency level
Concurrency levels1,2,4,8,16
Warm-up5 s
Cooldown between levels2 s

CPU detail (lscpu)

Architecture:                            x86_64
CPU op-mode(s):                          32-bit, 64-bit
Address sizes:                           46 bits physical, 48 bits virtual
Byte Order:                              Little Endian
CPU(s):                                  32
On-line CPU(s) list:                     0-31
Vendor ID:                               GenuineIntel
Model name:                              Intel(R) Core(TM) i9-14900T
CPU family:                              6
Model:                                   183
Thread(s) per core:                      2
Core(s) per socket:                      24
Socket(s):                               1
Stepping:                                1
CPU(s) scaling MHz:                      33%
CPU max MHz:                             5500,0000
CPU min MHz:                             800,0000
BogoMIPS:                                2227,20
Flags:                                   fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect user_shstk avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi vnmi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr ibt flush_l1d arch_capabilities ibpb_exit_to_user
Virtualization:                          VT-x
L1d cache:                               896 KiB (24 instances)
L1i cache:                               1,3 MiB (24 instances)
L2 cache:                                32 MiB (12 instances)
L3 cache:                                36 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-31
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Mitigation; Clear Register File
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; Enhanced / Automatic IBRS; IBPB conditional; PBRSB-eIBRS SW sequence; BHI BHI_DIS_S
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Mitigation; IBPB before exit to userspace

Protocols

The KMS server was exercised over three distinct wire protocols. Each benchmark column is labelled with the protocol name it used.

ProtocolTransportEncodingEndpointDescription
ttlv-jsonHTTP/1.1KMIP 2.1 JSON-TTLVPOST /kmip/2_1Primary interoperability protocol — any KMIP 2.1 compliant client can use it
ttlv-bytesHTTP/1.1KMIP 2.1 binary TTLVPOST /kmipBinary wire format; eliminates JSON parsing overhead — typically 10–30 % faster
joseHTTP/1.1JWE / JWS (JOSE)POST /v1/crypto/REST API for OAuth2/OIDC workloads that prefer JWA algorithm identifiers over KMIP

KMIP TTLV (Tag-Type-Length-Value) is the native encoding of the KMIP 2.1 standard (OASIS KMIP Spec v2.1, §9.1). The JSON variant wraps every field in a {"tag": …, "type": …, "value": …} JSON object and base64-encodes binary values. The binary variant uses a compact 8-byte fixed header (3-byte tag, 1-byte type, 4-byte length) per value, removing JSON tokenisation, base64, and UTF-8 overhead entirely.

JOSE (JSON Object Signing and Encryption, RFC 7516 / RFC 7515) exposes KMS key material through /v1/crypto/ REST endpoints. It is used by cloud integrations (Google CSE, Microsoft DKE, Azure EKM) and any workload that speaks JWA algorithm identifiers (A256GCM, RS256, ES384 …) rather than KMIP semantics.


Benchmark Methodology

Plaintext / payload sizes

All encrypt/decrypt benchmarks use a fixed-size random payload. Sizes represent a realistic key-wrapping or small-message encryption workload without introducing significant data-transfer overhead on a loopback connection.

Algorithm / categoryPlaintext sizeNotes
AES-GCM (128 / 192 / 256-bit key)64 bytesFIPS 140-3
AES-GCM-SIV (128 / 256-bit key)64 bytesNon-FIPS
AES-XTS (128 / 256-bit AES = 256 / 512-bit key)64 bytesFIPS 140-3; requires 16-byte IV
ChaCha20-Poly1305 (256-bit key)64 bytesNon-FIPS
ECIES — P-256 / P-384 / P-52164 bytesNon-FIPS; EC public-key encryption
Salsa Sealed Box (X25519)64 bytesNon-FIPS
Covercrypt (attribute-based encryption)64 bytesNon-FIPS
JOSE JWE — dir + AES-GCM (A128GCM / A192GCM / A256GCM)64 bytesSymmetric (direct key agreement)
JOSE JWE — RSA-OAEP + AES-GCM (2048 / 4096-bit)64 bytesAsymmetric (RSA-OAEP CEK wrapping)
RSA-OAEP (2048 / 3072 / 4096-bit)32 bytesLimited by RSA block size
RSA-PKCS#1 v1.5 (2048 / 3072 / 4096-bit)32 bytesNon-FIPS
RSA-AES Key Wrap — KWP (2048 / 3072 / 4096-bit)32 bytesFIPS 140-3
Sign / Verify — all algorithms32 bytesMessage is hashed internally
JOSE JWS / MAC32 bytes

Load test (ckms bench --load)

The load test sweeps a configurable list of concurrency levels. At each level N concurrent async tasks send pre-serialised requests in tight loops for a fixed measurement window (default: 20 s), preceded by a warm-up phase (default: 5 s) that is excluded from measurements. Pre-serialisation happens once at setup time and the same bytes are reused on every iteration, isolating server-side KMS latency from client-side encoding overhead. Recorded metrics per (protocol, operation, concurrency) triple:

  • Throughput — requests per second (req/s)
  • p50 / p95 / p99 — round-trip latency percentiles (ms)

Criterion micro-benchmarks (ckms bench)

Criterion (Rust, v0.5) measures the round-trip latency of a single request from the ckms client library through the KMS server and back over a loopback TCP connection. The server is started once and kept alive across all benchmarks in the suite. The reported value is the mean ± 95 % confidence interval over a configurable number of samples (preset quick: 3 s warm-up + 5 s measurement per benchmark).

Infrastructure note: Both test types use a local SQLite backend (temporary, discarded after the run). This isolates pure cryptographic and KMIP serialisation overhead from database I/O. Throughput figures will differ on a production deployment backed by PostgreSQL or Redis-Findex.


Load Tests

encrypt/aes-gcm

Concurrencyttlv-json (req/s)ttlv-bytes (req/s)jose (req/s)
11,65516,03635,238
28,73628,30362,117
415,91942,09790,314
824,44752,235105,688
1632,66158,49289,942

Throughput — encrypt/aes-gcm


sign-verify/ecdsa-p256

Concurrencyttlv-json (req/s)ttlv-bytes (req/s)jose (req/s)
11,9024,6014,840
23,5798,4218,899
47,21413,68314,240
812,59819,26020,329
1618,64626,44328,094

Throughput — sign-verify/ecdsa-p256


key-creation/aes-sym

Concurrencyttlv-json (req/s)
12,292
23,743
43,199
83,462
163,487

Throughput — key-creation/aes-sym


batch/aes-gcm-10

Concurrencyttlv-json (req/s)
11,631
22,924
44,767
86,072
167,932

Throughput — batch/aes-gcm-10


Criterion Benchmarks

Symmetric Encryption

Benchmarkttlv-jsonttlv-bytesjose
aes-gcm-siv/decrypt/12846.3 µs47.1 µs
aes-gcm-siv/decrypt/25645.1 µs38.1 µs
aes-gcm-siv/encrypt/12849.8 µs59.8 µs
aes-gcm-siv/encrypt/25642.6 µs45.6 µs
aes-gcm/decrypt/12875.3 µs47.8 µs32.5 µs
aes-gcm/decrypt/19241.4 µs53.1 µs31.6 µs
aes-gcm/decrypt/25646.2 µs61.4 µs30.6 µs
aes-gcm/encrypt/12838.5 µs47.4 µs37.3 µs
aes-gcm/encrypt/19251.9 µs56.2 µs32.4 µs
aes-gcm/encrypt/25658.3 µs49.8 µs32.2 µs
aes-xts/decrypt/12847.8 µs47.6 µs
aes-xts/decrypt/25646.2 µs53.8 µs
aes-xts/encrypt/12844.5 µs44.9 µs
aes-xts/encrypt/25645.9 µs46.5 µs
chacha20-poly1305/decrypt/25645.2 µs42.4 µs
chacha20-poly1305/encrypt/25646.5 µs39.1 µs
salsa-sealed-box/decrypt116.9 µs100.7 µs
salsa-sealed-box/encrypt167.5 µs458.73 ms

Asymmetric Encryption

Benchmarkttlv-jsonttlv-bytesjose
covercrypt/decrypt253.6 µs232.8 µs
covercrypt/encrypt287.7 µs536.10 ms
ecies/decrypt/P-256126.5 µs109.5 µs
ecies/decrypt/P-3841.03 ms947.9 µs
ecies/decrypt/P-5212.29 ms
ecies/encrypt/P-256194.6 µs467.52 ms
ecies/encrypt/P-3841.09 ms536.21 ms
ecies/encrypt/P-5212.40 ms477.34 ms
rsa-aes-kwp/decrypt/4096174.76 ms168.30 ms
rsa-aes-kwp/encrypt/4096177.2 µs531.17 ms
rsa-oaep/decrypt/204823.02 ms
rsa-oaep/decrypt/4096178.91 ms167.20 ms167.28 ms
rsa-oaep/encrypt/204893.5 µs
rsa-oaep/encrypt/4096164.6 µs531.28 ms143.7 µs
rsa-pkcs1v15/decrypt/4096177.32 ms167.42 ms
rsa-pkcs1v15/encrypt/4096155.7 µs492.94 ms

Key Encapsulation (KEM)

Benchmarkttlv-jsonttlv-bytes
configurable/decapsulate/ML-KEM-51269.1 µs57.9 µs
configurable/decapsulate/ML-KEM-512/P-25663.4 µs
configurable/decapsulate/ML-KEM-76872.4 µs66.4 µs
configurable/decapsulate/ML-KEM-768/P-25677.8 µs
configurable/encapsulate/ML-KEM-512147.9 µs469.28 ms
configurable/encapsulate/ML-KEM-512/P-256308.0 µs527.73 ms
configurable/encapsulate/ML-KEM-768167.7 µs462.83 ms
configurable/encapsulate/ML-KEM-768/P-256370.7 µs
pqc/decapsulate/ML-KEM-1024129.6 µs
pqc/decapsulate/ML-KEM-51294.5 µs88.0 µs
pqc/decapsulate/ML-KEM-768108.6 µs91.9 µs
pqc/decapsulate/X25519MLKEM768182.9 µs
pqc/encapsulate/ML-KEM-1024194.5 µs480.22 ms
pqc/encapsulate/ML-KEM-512196.6 µs453.94 ms
pqc/encapsulate/ML-KEM-768230.6 µs531.89 ms
pqc/encapsulate/X25519MLKEM768244.3 µs

Key Creation

Benchmarkttlv-json
EC/ES256
EC/ES384
RSA/2048
aes-gcm/oct/128
aes-gcm/oct/256
covercrypt/master-keypair706.9 µs
ec/ed25519368.5 µs
ec/ed448490.0 µs
ec/p256352.0 µs
ec/p384822.5 µs
ec/p5211.64 ms
ec/secp256k1574.3 µs
kem/ML-KEM-512371.8 µs
kem/ML-KEM-512/P-256499.2 µs
kem/ML-KEM-512/X25519338.1 µs
kem/ML-KEM-768425.3 µs
kem/ML-KEM-768/P-256465.5 µs
kem/ML-KEM-768/X25519378.7 µs
pqc/ML-DSA-44500.6 µs
pqc/ML-DSA-65532.0 µs
pqc/ML-DSA-87581.3 µs
pqc/ML-KEM-1024418.3 µs
pqc/ML-KEM-512385.9 µs
pqc/ML-KEM-768410.1 µs
pqc/X25519MLKEM768300.2 µs
pqc/X448MLKEM1024436.4 µs
rsa/rsa-4096515.10 ms
symmetric/aes-128237.3 µs
symmetric/aes-192224.6 µs
symmetric/aes-256269.6 µs
symmetric/chacha20-256242.2 µs

Sign / Verify

Benchmarkttlv-jsonttlv-bytesjose
ecdsa-p256/sign263.6 µs234.9 µs231.5 µs
ecdsa-p256/verify557.86 ms1.01 s1.18 s
ecdsa-p384/sign1.17 ms966.6 µs998.1 µs
ecdsa-p384/verify554.38 ms1.12 s1.17 s
ecdsa-p521/sign2.50 ms2.62 ms
ecdsa-p521/verify548.90 ms1.10 s
ecdsa-secp256k1/sign351.7 µs356.5 µs
ecdsa-secp256k1/verify474.97 ms1.02 s
eddsa-ed25519/sign87.0 µs92.0 µs87.3 µs
eddsa-ed25519/verify466.31 ms1.03 s1.03 s
eddsa-ed448/sign303.4 µs290.9 µs
eddsa-ed448/verify530.69 ms1.17 s
ml-dsa/sign/44511.8 µs458.9 µs
ml-dsa/sign/65814.0 µs766.5 µs
ml-dsa/sign/871.00 ms
ml-dsa/verify/44536.02 ms1.16 s
ml-dsa/verify/65470.30 ms1.03 s
ml-dsa/verify/87480.09 ms
rsa-pkcs1v15/sign23.42 ms
rsa-pkcs1v15/verify1.16 s
rsa-pss/sign24.11 ms
rsa-pss/sign/4096181.90 ms172.64 ms
rsa-pss/verify1.02 s
rsa-pss/verify/4096532.30 ms1.18 s
slh-dsa/sign/SHA2-128f10.41 ms9.52 ms
slh-dsa/sign/SHA2-256f37.66 ms34.76 ms
slh-dsa/sign/SHAKE-128f26.75 ms
slh-dsa/verify/SHA2-128f543.67 ms1.02 s
slh-dsa/verify/SHA2-256f487.30 ms1.18 s
slh-dsa/verify/SHAKE-128f477.53 ms