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

Sovereign, high-performance data protection

JOSE CEK Cache Benchmark — cache OFF

Versions: v5.29.0 Generated: 2026-11-10

Benchmark architecture


Benchmark Environment

FieldValue
Date2026-11-10 13:42:02 UTC
HSM backendNone (Software)
Commandmise run bench:jose-cache (unwrapped cache off)
Buildrelease / non-fips
DatabaseSQLite (temporary, single benchmark run)
CPUIntel(R) Core(TM) i9-14900T @ 800 MHz
CPU cores24 physical / 32 logical (HT)
RAM31.1 GB
OSUbuntu 24.04.5 LTS
Kernel6.8.0-147-generic

Load test parameters

ParameterValue
Modeencrypt
Protocolsjose
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:                      85%
CPU max MHz:                             1100.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 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

Architecture

  • ckms: concurrent load driver sending JWE requests to the JOSE endpoints
  • JOSE REST API: POST /v1/crypto/encrypt and POST /v1/crypto/decrypt
  • UnwrappedCache: holds unwrapped CEKs keyed by SHA-256(private key uid || 0x00 || encrypted_key); disabled in this run (disable_unwrapped_cache = true): every lookup misses and nothing is stored
  • RSA-OAEP-256 unwrap: private-key operation run only on a cache miss
  • Key storage: temporary SQLite database, discarded after the run

Protocols

Only the jose protocol is exercised; KMIP is not used by this benchmark.

ProtocolTransportEncodingEndpoints
joseHTTP/1.1 (plain, loopback)JWE JSON (RFC 7516)POST /v1/crypto/encrypt, POST /v1/crypto/decrypt

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

Operations and payload sizes

Every request carries a 4,096-byte plaintext (ckms bench --load-plaintext-size 4096).

OperationJWE constructionPlaintextWhat it measures
encrypt/aes-gcmdir + A256GCM, 256-bit AES key held by the KMS4,096 bytesServer-side JWE encryption; does not use the CEK cache
decrypt/rsa-oaep-cachedRSA-OAEP-256 + A256GCM, RSA-2048 key pair; one JWE built once by the client and replayed4,096 bytesRepeated decryption of the same token: a CEK cache hit after the first request when the cache is on
decrypt/rsa-oaep-freshSame algorithms; a new JWE (new CEK, new encrypted_key) built client-side for every request4,096 bytesAlways a CEK cache miss: full RSA private-key unwrap; latency includes the client-side JWE build (RSA public wrap + AES-GCM)

The decrypt requests set kid to the RSA public key id; the server resolves the private key through its PrivateKeyLink.

Cache state in this run

disable_unwrapped_cache = true: the cache is bypassed, so decrypt/rsa-oaep-cached and decrypt/rsa-oaep-fresh do the same server-side work.

Compare with the cache ON and cache OFF reports.

Load test (mise run bench:jose-cache (unwrapped cache off))

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. Exception: decrypt/rsa-oaep-fresh builds its request on every iteration (see above). Recorded metrics per (protocol, operation, concurrency) triple:

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

Infrastructure note: each cache state runs against its own freshly started server with a temporary SQLite database; both runs use the same binaries, machine and sweep parameters.


Load Tests

encrypt/aes-gcm

Concurrencyjose (req/s)
15,994
211,328
421,483
831,352
1646,977

Throughput — encrypt/aes-gcm


decrypt/rsa-oaep-cached

Concurrencyjose (req/s)
19
218
436
868
1692

Throughput — decrypt/rsa-oaep-cached


decrypt/rsa-oaep-fresh

Concurrencyjose (req/s)
19
218
436
870
1692

Throughput — decrypt/rsa-oaep-fresh