Versions: v5.28.0
Generated: 2026-10-09
| Field | Value |
| Date | 2026-10-07 23:46:16 UTC |
| HSM backend | SoftHSM2 |
| Command | mise run bench:hsm --delegated --hsm-model softhsm2 |
| Build | release / non-fips |
| HTTP workers (Actix-web) | 32 |
| Database | SQLite (temporary, single benchmark run) |
| CPU | Intel(R) Core(TM) i9-14900T @ 5,100 MHz |
| CPU cores | 24 physical / 32 logical (HT) |
| RAM | 31.1 GB |
| OS | Ubuntu 24.04.5 LTS |
| Kernel | 6.8.0-146-generic |
| Parameter | Value |
| Mode | all |
| Protocols | all |
| Measurement window | 20 s per concurrency level |
| Concurrency levels | 1,2,4,8,16 |
| Warm-up | 5 s |
| Cooldown between levels | 2 s |
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: 29%
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
graph TB
subgraph cli["Local: ckms CLI"]
ckms["<b>ckms bench --hsm</b>"]
end
subgraph srv["Local KMS Server"]
kmip["KMIP 2.1<br/>(HTTP)"]
oracle["CryptoOracle<br/>(HSM Router)"]
end
subgraph hsm["SoftHSM2"]
pkcs11["PKCS#11 Slot"]
hsm_keys["RSA<br/>ECDSA<br/>EdDSA<br/>AES<br/>(HSM-resident)"]
end
ckms -->|HTTP| kmip
kmip --> oracle
oracle -->|C_Sign/C_Encrypt/C_GenerateKey| pkcs11
pkcs11 --> hsm_keys
style ckms fill:#4A90E2
style kmip fill:#7ED321
style oracle fill:#FF6B6B
style pkcs11 fill:#BD10E0
Components:
- ckms: Concurrent load generator (
mise run bench:hsm --delegated --hsm-model softhsm2)
- KMIP Endpoint: HTTP protocol handler
- CryptoOracle: Routes crypto ops directly to SoftHSM2 (no software fallback)
- PKCS#11 Slot: SoftHSM2 engine for C_Sign/C_Encrypt/C_GenerateKey operations
- HSM-Resident Keys: Keys generated on and never leave hardware
This report benchmarks cryptographic operations delegated to an HSM (SoftHSM2) via the KMS CryptoOracle, exercised over a single wire protocol: ttlv-json.
| Protocol | Transport | Encoding | Endpoint | Description |
| ttlv-json | HTTP/1.1 | KMIP 2.1 JSON-TTLV | POST /kmip/2_1 | Primary interoperability protocol — any KMIP 2.1 compliant client can use it |
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.
ttlv-bytes is not benchmarked here. Measuring it would require running it either against the same HSM-resident key/token as the ttlv-json sweep (strictly after it completes) or on a fresh token started specifically for that purpose. The former was tried first and rejected: cumulative SoftHSM2 token load from the preceding ttlv-json sweep contaminated every ttlv-bytes measurement, making ttlv-json appear faster than ttlv-bytes in every single operation — the opposite of the software baseline (where ttlv-bytes is consistently faster, as expected, since it skips JSON parsing). Rather than publish numbers that are measurement artefacts of test ordering, ttlv-bytes is omitted from this report until the harness can measure both protocols under equivalent conditions (e.g. independent tokens per protocol).
JOSE is not benchmarked here. The JOSE REST key-creation endpoint (POST /v1/crypto/keys) has no parameter to request a caller-chosen kid, and HSM-resident key delegation requires the client to choose the hsm::<slot>::<uuid> unique identifier up front (the HSM has no server-assigned ID scheme) — so an HSM-resident key cannot be created through the JOSE endpoints at all.
Every operation in this report is executed against an hsm::<slot>::<uuid> unique identifier. The KMS server routes both key generation (Create/CreateKeyPair) and cryptographic operations (Encrypt/Sign) for such keys to the HSM's CryptoOracle (PKCS#11) on SoftHSM2 instead of executing them in KMS software — the benchmarked latency/throughput is therefore dominated by the PKCS#11 round-trip to the HSM, not by in-process OpenSSL.
HSM Backend: SoftHSM2 (software PKCS#11 simulator). A hardware HSM will exhibit different absolute numbers bound by hardware crypto acceleration and transport latency.
Operations benchmarked in this scenario:
| Category | Algorithms covered | Notes |
| Encrypt | AES-GCM, AES-CBC, RSA-OAEP, RSA-PKCS1v15 | 2048-bit RSA, 256-bit AES |
| Sign | RSA-PSS, RSA-PKCS1v15 (SHA1/256/384/512) | 2048-bit RSA |
| Sign | ECDSA P-256 | Prehashed message digest |
| Sign | EdDSA Ed25519 / Ed448 | Non-FIPS pure un-hashed CKM_EDDSA |
| Key creation | AES-256, RSA-2048 | Dynamic unique identifiers per iteration |
All encrypt benchmarks use a 64-byte fixed-size random payload (128 bytes for AES-CBC/PKCS1v15, which pad to a whole block); all sign benchmarks use a 32-byte fixed-size message (or, for prehashed ECDSA, a 32-byte SHA-256 digest of that same message).
Concurrent/cumulative key generation against a single SoftHSM2 token progressively degrades that token in simulators. Key-creation concurrency is capped and mode isolation is applied.
An earlier version of this report benchmarked both ttlv-json and ttlv-bytes for every HSM-delegated operation, sharing one HSM-resident key between the two protocol variants and measuring ttlv-json's full concurrency sweep before ttlv-bytes's. Every single result inverted the expected direction — ttlv-json appeared faster than ttlv-bytes, the opposite of the software baseline (where binary TTLV is consistently faster, since it skips JSON parsing). This report therefore benchmarks ttlv-json only, until the harness can measure both protocols under equivalent conditions.
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 (and HSM-side) 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 (Rust, v0.5) measures the round-trip latency of a single request from the ckms client library through the KMS server (and onward to the HSM) and back over a loopback TCP connection.
The reported value is the mean ± 95 % confidence interval over a configurable number of samples.
Infrastructure note: The load test and criterion benchmarks both use a local SQLite backend (temporary, discarded after the run) for the KMS server metadata store — key material resides on SoftHSM2.
| Concurrency | ttlv-json (req/s) |
| 1 | 52 |
| 2 | 39 |
| 4 | 27 |

| Concurrency | ttlv-json (req/s) |
| 1 | 4 |
| 2 | 7 |
| 4 | 7 |

| Concurrency | ttlv-json (req/s) |
| 1 | 2,884 |
| 2 | 5,027 |
| 4 | 8,090 |
| 8 | 11,183 |
| 16 | 15,367 |

| Concurrency | ttlv-json (req/s) |
| 1 | 11,700 |
| 2 | 18,975 |
| 4 | 27,420 |
| 8 | 35,552 |
| 16 | 41,365 |

| Concurrency | ttlv-json (req/s) |
| 1 | 9,567 |
| 2 | 15,680 |
| 4 | 23,744 |
| 8 | 33,058 |
| 16 | 39,172 |

| Concurrency | ttlv-json (req/s) |
| 1 | 7,157 |
| 2 | 12,633 |
| 4 | 18,195 |
| 8 | 23,990 |
| 16 | 24,487 |

| Concurrency | ttlv-json (req/s) |
| 1 | 2,267 |
| 2 | 4,266 |
| 4 | 6,689 |
| 8 | 9,376 |
| 16 | 13,995 |

| Concurrency | ttlv-json (req/s) |
| 1 | 1,179 |
| 2 | 2,516 |
| 4 | 3,862 |
| 8 | 5,825 |
| 16 | 7,167 |

| Concurrency | ttlv-json (req/s) |
| 1 | 1,466 |
| 2 | 2,570 |
| 4 | 4,092 |
| 8 | 5,934 |
| 16 | 7,137 |

| Concurrency | ttlv-json (req/s) |
| 1 | 1,447 |
| 2 | 2,560 |
| 4 | 3,938 |
| 8 | 5,647 |
| 16 | 7,189 |

| Concurrency | ttlv-json (req/s) |
| 1 | 1,435 |
| 2 | 2,357 |
| 4 | 4,099 |
| 8 | 5,814 |
| 16 | 7,150 |

| Concurrency | ttlv-json (req/s) |
| 1 | 1,451 |
| 2 | 2,548 |
| 4 | 3,986 |
| 8 | 5,834 |
| 16 | 7,182 |

| Concurrency | ttlv-json (req/s) |
| 1 | 9,675 |
| 2 | 15,183 |
| 4 | 24,738 |
| 8 | 27,712 |
| 16 | 26,177 |

| Concurrency | ttlv-json (req/s) |
| 1 | 7,907 |
| 2 | 11,608 |
| 4 | 20,267 |
| 8 | 25,155 |
| 16 | 17,193 |

| Concurrency | ttlv-json (req/s) |
| 1 | 3,100 |
| 2 | 5,191 |
| 4 | 8,925 |
| 8 | 12,208 |
| 16 | 16,277 |

| Benchmark | ttlv-json |
| hsm-aes-cbc/encrypt/256 | 126.9 µs |
| hsm-aes-gcm/encrypt/256 | 101.9 µs |
| Benchmark | ttlv-json |
| hsm-rsa-oaep-sha1/encrypt/2048 | 173.6 µs |
| hsm-rsa-oaep/encrypt/2048 | 98.3 µs |
| hsm-rsa-pkcs1v15/encrypt/2048 | 189.0 µs |
| Benchmark | ttlv-json |
| hsm-aes-256/create | 71.22 ms |
| hsm-ec-p256/create | 207.55 ms |
| hsm-ed25519/create | 208.09 ms |
| hsm-ed448/create | 207.59 ms |
| hsm-rsa-2048/create | 273.44 ms |
| Benchmark | ttlv-json |
| hsm-ecdsa-p256/sign | 183.9 µs |
| hsm-ecdsa-p384/sign | 750.1 µs |
| hsm-eddsa-ed25519/sign | 142.9 µs |
| hsm-eddsa-ed448/sign | 377.2 µs |
| hsm-rsa-pkcs1v15-sha1/sign/2048 | 805.4 µs |
| hsm-rsa-pkcs1v15-sha256/sign/2048 | 797.5 µs |
| hsm-rsa-pkcs1v15-sha384/sign/2048 | 768.5 µs |
| hsm-rsa-pkcs1v15-sha512/sign/2048 | 735.7 µs |
| hsm-rsa-pss/sign/2048 | 800.4 µs |