VarDictRust Benchmark Suite & Evidence Ledger¶
This directory houses the performance evidence, execution logs, benchmark drivers, and environment specifications for VarDictRust v1.2.0 (certified in docs/release/v1.2.0-pr.md).
Every benchmark claim is backed by a verifiable, machine-readable evidence artifact in benchmarks/evidence/ (evaluating default --compat=vardictjava parity execution), bound to the certified release engine fingerprint 729cf0f46bd30c4b. For complete statistical analyses, biological cohort descriptions, and methodology, see the Omnibus Empirical Validation Report and the Master Test Matrix.
1. Pinned Hardware & Host Environment¶
All release benchmarks were executed under standardized host constraints (below).
Every performance number in this directory is measured on the stated host
against VarDictJava as the baseline — paper figures are never quoted as ours.
- CPU/host: Isolated GCP n2-standard-32 (Intel Xeon @ 2.80 GHz, Linux x86_64, 8 worker threads / $P = 4$ pinned physical cores 0-7 for scale.json, Ubuntu LTS).
- Concurrency: Normalized to 8 CPU threads (-th 8) as a standard multi-tenant cluster baseline (not an engine scaling ceiling).
- Storage: Local NVMe SSD.
- Toolchain: Rust 1.96.0 (x86_64-unknown-linux-musl and x86_64-unknown-linux-gnu), OpenJDK 25.0.2 / OpenJDK 8 for oracle (vardict-oracle).
2. Five-Target Performance Budget¶
Evaluated via harness/perf_budget.py, comparing vardictrust against the VarDictJava v1.8.3 pipeline (Java + R + Perl). Requirement: Rust wall time \(\le\) Java wall time AND Rust peak RSS \(\le\) Java peak RSS. For the 5th target (hg008-cram-twin), CRAM-to-BAM wall time ratio must remain \(\le 2.50\times\) with 100% bitwise VCF identity.
| Workload / Target | Modality | Java Wall | Cpp Wall¹ | Rust Wall | Speedup (vs Java) | Java Peak RSS | Cpp Peak RSS¹ | Rust Peak RSS | Memory Scaling (vs Java) | Cpp vs Java Parity¹ | Evidence File |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Targeted Amplicon Panel | AmpliconMode (-a 10:0.95) |
0:02.05 |
0:03.75 |
0:00.04 |
51.2× faster | 118.9 MiB |
88.9 MiB |
11.6 MiB |
10.3× less | SKIP (CPP-3) |
amplicon-tier2.json |
| GIAB HG002 (chr20:10M–30M, 30×) | SimpleMode (-f 0.01) |
1:31.72 |
0:18.87 |
0:09.69 |
9.5× faster | 4.02 GiB |
853.1 MiB |
196.1 MiB |
21.0× less | MISMATCH (CPP-9) · CPP-1 |
hg002-tier2.json |
| SEQC2 HCC1395 Somatic Exome | SomaticMode (tumor\|normal, -th 4²) |
51:10.05 |
7:11.99 |
3:18.35 |
15.5× faster | 3.70 GiB |
2.15 GiB |
438.1 MiB |
8.6× less | MISMATCH (CPP-9) |
seqc2-exome-tier2.json |
| GIAB HG008 Somatic PDAC | SomaticMode (tumor\|normal, -th 4²) |
1:19.70 |
0:21.96 |
0:12.86 |
6.2× faster | 3.34 GiB |
303.6 MiB |
181.0 MiB |
18.9× less | MISMATCH (CPP-9) |
hg008-tier2.json |
| GIAB HG008 CRAM-vs-BAM Twin | SomaticMode CRAM vs BAM (-th 4²) |
0:11.60 (Rust BAM) |
— | 0:27.33 (Rust CRAM) |
2.36× CRAM/BAM | 190.7 MiB (BAM) |
— | 1.05 GiB (CRAM) |
Bounded 512 MiB cache |
MATCH (18,426 Rust; 18,425 Cpp CRAM==BAM) |
hg008-cram-twin.json |
¹ Cpp (pinned vardictcpp 3 hc52dbad_0 bioconda, same vardict-oracle env) runs beside each gate arm via harness/perf_budget.py. The budget verdict stays Rust-vs-Java only. Per-cell cpp wall/RSS above are transcribed from the linked evidence extra (cpp_wall_s, cpp_maxrss_kb, ratios). Known cpp divergences are normalized in docs/upstream-bugs.md. A missing cpp_time records a loud SKIP, never a silent pass.
² hg008/seqc2-exome at -th 4: Java -th 8 is OOM-killed on 31G hosts (bisected 1✓/4✓/8✗); exact cmds in evidence.
Reproduction Command:¶
python3 harness/perf_budget.py hg008-tier2 seqc2-exome-tier2 hg002-tier2 amplicon-tier2 hg008-cram-twin
3. Master Evidence Ledger (16 Release Artifacts)¶
| Workload / Target | Evidence Artifact | Verification Tier | Scope / Modality | Output Metric | Result |
|---|---|---|---|---|---|
| GIAB HG002 Germline | hg002-tier2.json |
Tier-2 Differential | chr20 (10–30 Mbp, 30×) | 227,562 variants | MATCH (0 diffs) |
| GIAB HG002 Truth | hg002-truth.json |
Tier-3 Concordance | NIST v4.2.1 High-Confidence | \(F_1 = 0.9699\) | EQUAL |
| SEQC2 Somatic Exome | seqc2-exome-tier2.json |
Tier-2 Differential | HCC1395 / HCC1395BL Somatic | 623,444 variants | MATCH (0 diffs) |
| SEQC2 Somatic Truth | seqc2-truth.json |
Tier-3 Concordance | SEQC2 v1.2.1 Somatic Truth | \(F_1 = 0.1555\) | EQUAL (0 site diffs) |
| SEQC2 Somatic Slices | seqc2-slices-tier2.json |
Tier-2 Differential | Multi-Chr Slices (chr1–21) | 4,151 variants | MATCH (0 diffs) |
| GIAB HG008 Somatic PDAC | hg008-tier2.json |
Tier-2 Differential | Tumor/Normal WGS 60×/40× | 18,426 variants | MATCH (0 diffs) |
| GIAB HG008 CRAM Twin | hg008-cram-twin.json |
Tier-2 Differential | CRAM vs BAM Reference Decode | Bitwise identity | MATCH (0 diffs) |
| GIAB HG008 Truth | hg008-truth.json |
Tier-3 Concordance | NIST Draft v0.3 Somatic Truth | \(F_1 = 0.3856\) | EQUAL |
| Targeted Amplicon Panel | amplicon-tier2.json |
Tier-2 Differential | Primer-trimmed panel (-a) |
2 variants | MATCH (0 diffs) |
| GIAB HG005 Truth | hg005-truth.json |
Tier-3 Concordance | NIST v4.2.1 Han Chinese WGS | \(F_1 = 0.9667\) | EQUAL |
| GIAB NA24385 b37 Truth | na24385-b37-truth.json |
Tier-3 Concordance | NIST v4.2.1 Ashkenazi Son b37 | \(F_1 = 1.0000\) | EQUAL |
| Extended Modalities | extended-coverage-tier2.json |
Tier-2 Differential | 17 Modes (RNA -i, SVs, flags) |
4,993 variants | MATCH (0 diffs) |
| Multi-Modal Slices | multimodal-slices-tier2.json |
Tier-2 Differential | 18 Slices across 6 Cohorts | 1,129 variants | MATCH (0 diffs) |
| Chromosome 1 Scaling | scale.json |
Tier-2 Scaling | Full chr1 Span (249 Mbp) | \(S_8 = 3.04\times\), RSS 1.27× | PASS |
| Performance Budget | perf-budget.json |
Regression Gate | 5 Target Workload Regression | Wall/RAM gates | PASS |
| Musl CI Packaging | musl-ci.json |
Release Gate | Static PIE Linux Packaging | Bitwise identity | PASS |
- 92-Chromosome Per-Contig Parity Suite (
v1.0.7): Full per-chromosome breakdowns acrossHG008_WGS_Somatic(21chrs),SEQC2_Paired_Somatic(24chrs),SEQC2_Single_Sample_Scale(24chrs),HG002_chr20_Full_VCF(1chr), andHG002_Full_WGS_GIAB_v4.2.1(22autosomeschr1..chr22,8,111,171variants,5/5rtg vcfevalfiles byte-identical toVarDictJava v1.8.3) are recorded inchr-parity-v107.jsonanddocs/validation/chr-parity-v107.md(92 / 92 MATCH).
4. Whole Chromosome 1 Scaling & Flat Memory Footprint¶
Evaluated via harness/scale_bench.sh on HCC1395 across all 248,956,422 bp of chromosome 1. Values below are the 3-run median certified evidence recorded in scale.json (perf_fingerprint: f9c16b67b237e9c6).
Multi-Thread Parallel Speedup (chr1 full span, 3-run medians):¶
Threads (-th) |
Wall Clock Time | Speedup Ratio |
|---|---|---|
| 1 core | 4m 21s (261.06 s) | 1.00× (baseline) |
| 2 cores | 2m 20s (140.13 s) | 1.86× |
| 4 cores | 1m 28s (87.50 s) | 2.98× |
| 8 threads | 1m 26s (85.94 s) | 3.04× parallel |
Bounded Resident Memory vs Genomic Span (at -th 8, 3-run medians):¶
| Genomic Span | Peak RSS |
|---|---|
| 1 Mbp | 410.2 MiB (420,080 KB) |
| 10 Mbp | 1.10 GiB (1,155,908 KB) |
| 100 Mbp | 1.10 GiB (1,151,352 KB) |
| 249 Mbp (Full chr1) | 1.39 GiB (1,462,384 KB) |
Observed RSS Ratio (249 Mbp vs 10 Mbp): 1.27× (1.265×) (Passing pre-registered threshold \(\le 1.5\times\)). Memory remains bounded across deep genomic spans via tiled execution with boundary halo deduplication (SplitVarDeduper 200 kbp cross-tile .var ownership window and SpillableVcfAccumulator 8 MiB disk-backed whole-stream VCF spill bound).
Pinned vardictcpp 3 hc52dbad_0 runs beside each loop above (harness/scale_bench.sh via harness/run_cpp.sh, advisory only): per-thread cpp wall (cpp_wall_s, exome BED workload) and per-span cpp RSS (cpp_maxrss_kb, -R full-span workload at -th 8) land separately in scale.json extra — at -th 8 BED wall 182.80 s, full-span (249 Mbp) unchunked -R RSS 24.34 GiB (25,521,616 KB per CPP-5).
Reproduction Command:¶
DATA_DIR="${DATA_DIR:-scratch/g4}"
bash harness/scale_bench.sh \
"${DATA_DIR}/ref/d1vd1/GRCh38.d1.vd1.fa" \
"${DATA_DIR}/seqc2/HCC1395.bam" \
"${DATA_DIR}/seqc2/exome.engine.bed" \
HCC1395 \
"${DATA_DIR}/scale"
5. Multi-Thread Determinism¶
Guarantees bitwise-identical VCF records across varying worker thread allocations (1, 2, 4, 8 threads).
6. Micro-Benchmarks (Criterion)¶
In-memory pileup and realignment micro-benchmarks (crates/vardictrust-core/benches/engine.rs).
| Benchmark | Target Function | Fixture Profile | Baseline Latency |
|---|---|---|---|
parse_cigar/100_reads_mixed_cigars |
vardictrust_core::cigar::parse::pileup |
100 sorted 150 bp reads over 20 kb synthetic ACGT ref; mixed M/S/D/I | \(\approx 21.6\,\mu\text{s}\) / read |
find_bp/60bp_consensus_indel40 |
vardictrust_core::realign::find_bp |
60 bp synthetic consensus (~10% mismatches), indel size 40 | \(\approx 5.48\,\mu\text{s}\) |
7. Dataset Provenance & End-to-End Cold-Start Bootstrap¶
All external genomic benchmark assets are tracked with cryptographic SHA-256 (and legacy MD5) checksums in harness/assets.tsv and recorded upon download in benchmarks/MANIFEST. A bare repository clone can reproduce every reference genome, BAM/CRAM slice, truth VCF/BED, and all 16 release evidence artifacts end-to-end with the commands below:
# 1. Provision pinned oracle + C++ conda environments (vardict-oracle, vardict-cpp, g4-tools)
bash harness/setup_oracle.sh
conda env create -f harness/env/g4-tools.yml
# 2. Fetch, SHA-256-verify, unpack, index, and stage all references & biological cohorts into scratch/g4/
# (or run individual targets: refs | amplicon | hg002 | hg008 | seqc2 | multimodal)
bash harness/stage_g4.sh all
# 3. Run full live certification (populates scratch/golden-store/ on first run and stamps benchmarks/evidence/*.json)
bash harness/recertify.sh
Individual cohort staging scripts invoked by harness/stage_g4.sh:
- Public assets + SHA-256 check: bash harness/fetch_data.sh refs hg002 hg008 seqc2
- Targeted amplicon panel (scratch/g4/amplicon/): bash harness/get_amplicon_fixture.sh
- GIAB HG002 chr20 slice (scratch/g4/hg002/): bash harness/get_hg002_slice.sh
- GIAB HG008 paired PDAC slices + CRAM twins (scratch/g4/hg008/): bash harness/get_hg008_slice.sh
- SEQC2 WES alignment + BED derivation (scratch/g4/seqc2/): bash harness/stage_g4.sh seqc2 (calls harness/seqc2_align.sh and harness/select_slice_regions.py)
- 18 Multi-modal slices (scratch/g4/multimodal/): bash harness/get_multimodal_slices.sh
7.1 Deterministic v1.1.0 --compat=off & Clinical Preset Study Bundle¶
In addition to the 16 default-parity release evidence artifacts in benchmarks/evidence/ and the 60-cell cloud performance study in benchmarks/gcp-study-v106/, benchmarks/v110-compat-study/ archives the host-independent deterministic callset, validator, and truth-set evaluation for VarDictRust v1.1.0 opt-in --compat=off (32 CompatProfile switches) and --preset (wgs, wes, amplicon, ctdna) modes (pinned v1.1.0 study fingerprint b18477ae0a7b07c1, performance fingerprint 5c41be8047133842; zero host-dependent wall-clock or RSS measurements mixed across hosts):
v110_compat_metrics.json&v110_compat_arms.tsv: Machine-readable summary across all 6 evaluation domains (19callsets targetedCompatProfileVCFv4.2/v4.3 schema/canonicalization/accounting audit &bcftools norm --check-ref ereference concordance, diploidSEQC2rtg vcfevalsubclonal somatic recovery without--squash-ploidy,5-pair multi-allelic somatic continuation + MUC19 paralog depth reconciliation, patient BRCA2--adaptorchimera suppression,4clinical workflow presets + wet-labQIAseq V3-sp+0.5%VAFctDNAspike-in, and multi-BGZF-block--csispanning<DEL>/<DUP>/<INV>retrieval +-phomopolymer pileup tiling) plus the35-entryCompatProfileand CLI capability catalog feedingFigure 9,Table 9, andSupplementary Table S7.SHA256SUMS.tsv: Cryptographic SHA-256 manifest verified offline bypaper/collect_v110_compat_metrics.py.