All measurements taken on a single core. No parallelism, no warm-up, cold-start only.
| Operation | Scale | Latency | Throughput |
|---|---|---|---|
| Receipt Generation | 10K nodes | 2.49 µs/node | 401K/sec |
| DAG Insertion | 10K nodes | — | 243,727 nodes/sec |
| DAG Insertion | 50K nodes | — | 237,923 nodes/sec |
| DAG Insertion | 100K nodes | — | 237,777 nodes/sec |
| Replay | 10K-node DAG | 2.50 ms avg | 400 replays/sec |
| Root Hash | 100 nodes | 42.15 µs | — |
| Root Hash | 1K nodes | 334.91 µs | — |
| Root Hash | 10K nodes | 5.36 ms | — |
| Root Hash | 100K nodes | 45.70 ms | — |
| Subgraph Extraction | 10K DAG, 10 sessions | 392.33 µs avg | — |
| Integrity Verification | 1K nodes | 1.31 ms | — |
| Integrity Verification | 10K nodes | 15.90 ms | — |
| Integrity Verification | 100K nodes | 166.51 ms | — |
| Session Lifecycle | 1K sessions | 28.95 µs/session | 34.5K/sec |
Thread count swept from 1 to 192. All operations measured under sustained load.
| Operation | 1 Thread | 4 | 16 | 64 | 192 | Scaling |
|---|---|---|---|---|---|---|
| Receipt gen | 399K/s | 1.57M/s | 6.29M/s | 23.90M/s | 24.79M/s | 62x |
| Sessions | 33.7K/s | 133K/s | 514K/s | 1.61M/s | 2.12M/s | 63x |
| Replays | 42.9K/s | 100K/s | 149K/s | 174K/s | — | 4x |
| Verification | 440K/s | 1.31M/s | 2.36M/s | 2.37M/s | — | 5.4x |
Replay and verification scaling is bounded by shared DAG reads. Independent DAG operations (receipts, sessions) scale near-linearly.
Replay determinism verified across timestamps, concurrency, DAG growth, and insertion ordering.
Full adversarial test suite covering DAG tampering, replay attacks, session exploitation, and identity forgery.
| Category | Tests | Attack Vectors |
|---|---|---|
| DAG Tampering | 19 | Forged receipts, payload mutation, deleted/inserted/reordered nodes, circular dependencies, cross-session injection, 1000-node stress, cascade corruption |
| Replay Attacks | 13 | 1000-iteration determinism, 8-thread concurrent, fork divergence, timestamp sensitivity, growth stability |
| Session Attacks | 12 | Expired session, wrong agent, scope violations, race conditions, delegation depth, chain breaks |
| Identity Attacks | 10 | Forged ID, revoked key, impersonation, 100-agent stress, collision resistance |
No warm-up. No cherry-picking. Cold-start measurements. Full methodology published and reproducible.
H33_AGENT_V1 domain separatorstd::time::Instant (monotonic clock)cargo run --example agent_bench --releaseexamples/agent_bench.rs in scif-backendClone, build, run. No configuration required.
# Clone the repository
git clone https://github.com/H33ai-postquantum/scif-backend
cd scif-backend
# Run the benchmark (release profile)
cargo run --example agent_bench --release