Docs / KraftBench
KraftBench
KraftBench is Kraftverk’s measurement engine. It runs real deterministic workloads. Scores come from wall-clock timing of completed work, with checksums where practical — not synthetic marketing meters.
Why it exists
Optimization without measurement is theater. KraftBench gives the optimizer (and you) a repeatable suite so “better” means higher category scores under documented conditions, not vibes.
Categories
| Category | Benches | Notes |
|---|---|---|
| CPU | Integer single/multi, float, hashing, compression | Multi uses configured worker/rayon pool |
| Memory | Sequential R/W proxy, random chase, allocation | Proxies — not JEDEC bandwidth certs |
| Storage | Seq/rand read/write | Only under Kraftverk scratch dir |
| System | Thread create, barrier sync, wake latency | Scheduler proxies |
| Realtime | File pipeline, parallel reduce, parse | In-memory “real world” stand-ins |
| GPU | — | Unsupported in current milestones (architecture reserved) |
Methodology
- Optional warm-up iterations (discarded)
- N timed suite samples
- Per-measurement higher-is-better orientation
- Kraft Index from category geometric means + documented weights
- Baseline normalizes mean raw composite → 10,000
kraftverk baseline
kraftverk benchmark
kraftverk benchmark --sustained 10m
KraftBench v2 also includes CPU scaling, compile proxy, responsiveness, and sustained windows.
Storage safety
Storage benches write only under the platform data directory’s /bench_scratch path, marked with .kraftverk_bench_scratch. Kraftverk refuses obvious user content roots (Documents / Desktop / Downloads).
Reproducibility
- Seeded PRNGs (
ChaCha8) for data generation - Workload sizes fixed in code for Milestone 1 baselines
- Parallelism controlled via
bench.worker_threads/bench.rayon_threads
What we do not claim
- Absolute FLOPS or STREAM bandwidth equivalence
- Cross-machine ranking without identical suite versions
- GPU performance (no backend yet)
Honesty over hype: proxies are labeled as proxies. If a sensor or backend is missing, Kraftverk says so instead of inventing numbers.