Package com.helix.experiments.benchmarks
Class AuditHashingBenchmark
java.lang.Object
com.helix.experiments.benchmarks.AuditHashingBenchmark
- Direct Known Subclasses:
AuditHashingBenchmark_jmhType_B1
JMH Microbenchmark suite measuring single-core cryptographic SHA-256 event JSON hashing throughput
and Merkle leaf computation/chaining speed for audit trails.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Measures Merkle leaf computation and chaining speed: SHA-256(prev_hash || event_hash).byte[]Measures SHA-256 hashing throughput of canonical audit event JSON.voidsetup()
-
Constructor Details
-
AuditHashingBenchmark
public AuditHashingBenchmark()
-
-
Method Details
-
setup
- Throws:
NoSuchAlgorithmException
-
benchmarkSha256EventHashing
public byte[] benchmarkSha256EventHashing()Measures SHA-256 hashing throughput of canonical audit event JSON. Acceptance criterion: > 1,000,000 events/sec. -
benchmarkMerkleLeafChaining
public byte[] benchmarkMerkleLeafChaining()Measures Merkle leaf computation and chaining speed: SHA-256(prev_hash || event_hash).
-