Benchmarks
This document tracks the DuckDB Scale Benchmark Harness (benchmarks/bench_scale.py), the historical v2.0 12-table DuckDB baseline, and historical v1.x in-memory pipeline baselines.
v2.1.0 DuckDB Scale Benchmarks (Streaming + .vpp.db)
VulnParse-Pin v2.1.0 replaces full-DOM XML/JSON loading, in-memory ScanResult duplication, and ProcessPoolExecutor pickling with:
- Streaming ingestion (
iter_batches): Hardenedlxml.etree.iterparse(XML), C-backed chunkedjson.JSONDecoder.raw_decodestreaming (with boundedijsonsniffing) for SARIF 2.1.0, and line-streaming JSONL/CSV feedingVppDatabase.ingest_normalized_batches()via DuckDBappender. - Matched-CVE snapshot hydration (
populate_enrichment_snapshots): Queries distinct matched CVEs/PURLs in.vpp.dband hydrates only scan-relevant records from NVD, EPSS v5, CISA KEV, Exploit-DB, GHSA, and OSV (plus EPSS velocity and optionalPreKEVModelscoring). - DuckDB Pass DAG (
run_v2_duckdb_pipeline):NmapAdapter@1.0→ACI@2.0→Scoring@3.0→Triage@2.0→Remediation@1.0→TopN@2.0→Summary@2.0, using memoized scoring/ACI, greedy set-cover remediation planning, and columnarappenderwrites across the 14-table DuckDB schema. - Parameterized UI & Summary Queries:
query_findings_page(..., priority_tier="P1", limit=100)+get_run_summary_counts()+get_shadow_assets().
Reproducible Harness (benchmarks/bench_scale.py)
benchmarks/bench_scale.py generates realistic multi-scanner synthetic datasets (mixed Nessus .nessus XML + Trivy .sarif + Nuclei .jsonl + Semgrep .sarif + Nmap .xml + pattern assets.yaml + decisions.yaml + miniature EPSS v5 / KEV / NVD / Exploit-DB snapshots) and executes all four DuckDB pipeline stages end-to-end in isolated per-scale processes so ru_maxrss is measured cleanly for each target size.
Run the full 500k–700k scale benchmark:
python benchmarks/bench_scale.py --findings 500000 --findings 700000 --json-out bench_v2_results.json
Quick developer smoke test (5,000 or 10,000 findings):
python benchmarks/bench_scale.py --findings 10000
Empirical Historical v2.0 Results (12-Table Baseline)
NOTE
The2026-11-24measurements below are a historicalv2.012-table DuckDB baseline captured beforev2.1.0added theRemediation@1.0(RemediationPass) stage, theremediation_actionsandremediation_action_findingstables (14 tables total), andv2.1.0ML shadow columns/models.
- Measured on:
2026-11-24T14:34:55Z(v2.0baseline) · Python3.12.3·Linux-6.18.58.1-microsoft-standard-WSL2-x86_64-with-glibc2.39(32CPUs) · profilebod-26-04· streamingbatch_size=10000(cold cache, subprocess-isolated per scale).
| Raw Findings | Unique Findings | Assets (Shadow) | Parse+Ingest (s) | Enrich (s) | Pipeline DAG (s) | UI+Summary (s) | Total (s) | Throughput (raw/s) | Peak RSS (MiB) | .vpp.db (MiB) |
|---|---|---|---|---|---|---|---|---|---|---|
| 500,000 | 335,758 | 1,170 (178) | 39.215 | 8.572 | 38.705 | 0.8695 | 87.362 | 5,723.3 | 2364.70 | 278.76 |
| 700,000 | 420,846 | 1,170 (178) | 162.117 | 6.631 | 41.830 | 0.9523 | 211.531 | 3,309.2 | 2633.21 | 351.26 |
500,000breakdown (v2.0baseline):56,327cross-scanner deduplicated findings merged into335,758canonical rows;107,669P1 (bod-26-04) findings;11,601KEV-matched findings (3,843.3 unique/s, UI+Summary<0.87s).700,000breakdown (v2.0baseline):102,225cross-scanner deduplicated findings merged into420,846canonical rows;139,501P1 (bod-26-04) findings;14,423KEV-matched findings (1,989.5 unique/s, UI+Summary<0.96s) — matching the legacyv1.0.0rc1700k single-scanner wall time (210.65s) while executing 4 scanners + Nmap + cold EPSS v5/KEV/Exploit-DB/NVD hydration + 12-tablev2.0DuckDB +ACI@2.0+Scoring@3.0+Triage@2.0(bod-26-04) + paged TUI queries.
Historical v1.x Baselines (In-Memory Pipeline, v1.0.0rc1–v1.2.2)
IMPORTANT
All measurements below are legacyv1.xin-memoryScanResultbaselines captured prior to the v2.0.0 DuckDB, streaminglxml/SARIF/Nuclei, EPSS v5, andTriage@2.0overhaul. They are preserved for historical comparison only.
Public benchmark update (April 22, 2026 — v1.x)
This section summarizes legacy v1.x end-to-end runs with a consistent output set (JSON, CSV, executive Markdown, technical Markdown, and runmanifest).
Consolidated v1.x benchmark table
| Scenario | Input | Assets | Findings | Scored findings | Scoring coverage | Enriched findings | Enrichment coverage | Runtime | Throughput |
|---|---|---|---|---|---|---|---|---|---|
| Baseline lab (101) | Nessus | 2 | 101 | 5 | 4.95% | 4 | 3.96% | 3.333s | 30.30 findings/s |
| Lab scaled 5k | Nessus | 10 | 5,000 | 5,000 | 100.00% | 2,236 | 44.72% | 11.663s | 428.69 findings/s |
| OpenVAS stress 20k | OpenVAS | 20 | 20,000 | 140 | 0.70% | 20,000 | 100.00% | 24.796s | 806.57 findings/s |
Source artifact: tests_output/public_benchmark_comparison_apr22_2026.csv
What this showed (v1.x)
- Throughput scaled across larger workloads while producing full output artifacts.
- Coverage behavior is dataset-sensitive, which is expected and useful for explaining risk context quality. The Lab 5k benchmark showed complete scoring coverage by construction, while OpenVAS 20k showed complete enrichment coverage with selective scoring coverage.
- Exposure-inference signals remained available at scale (rule-hit summaries and confidence buckets), enabling explainable prioritization rather than raw finding count reporting.
Feature value versus a regular scanner output
| Feature area | VulnParse-Pin evidence from benchmark runs | Typical regular scanner output | Public-facing implication/value |
|---|---|---|---|
| Cross-finding prioritization | Produces scored findings and ranked assets/findings across all runs; 5k run scored 5,000/5,000 findings | Usually reports per-finding severity and plugin output with limited cross-finding ranking logic | Teams can prioritize remediation by risk concentration and asset context, not just severity labels |
| Exposure inference traceability | Decision trace summaries include exposure confidence and rule-hit counts (for example, private_ip, public_service_port_hit, critical_asset_hint) |
Often provides host/open-port facts but not a transparent, countable inference trace for prioritization rules | Stakeholders can audit why an asset/finding moved up in priority and defend triage decisions |
| Multi-artifact decision consistency | Same run emits JSON, CSV, executive and technical reports, plus runmanifest with aligned totals validated in this benchmark cycle | Output formats may exist, but consistency validation is commonly left to downstream tooling | Reduces reporting drift between technical and executive views and improves governance confidence |
| Actionable risk shaping | Risk-band distributions and TopN-derived context are surfaced in summary artifacts (critical/high/medium/low/info + top assets) | Regular scanner views frequently center on scanner-native severity bins without policy-aware context | Provides clearer, operations-oriented remediation sequencing and communication to leadership |
| Reproducible benchmark evidence | Public table and raw comparison CSV included from actual e2e runs | Benchmark narratives are often anecdotal or not tied to reusable artifacts | Improves trust in performance/value claims during customer or leadership review |
Legacy v1.x Test Environment (March 2026)
- Date baseline: March 2026 (
v1.0.0rc1) - Platform: Windows Server 2025
- Python: 3.14
- CPU profile: 8-core class system
Legacy v1.x Nessus Scale Benchmark (NVD Optimization Focus)
- Baseline file:
nessus_expanded_200.xml(400 findings) →~20s(~20 findings/sec) - Synthetic demo-derived file:
Lab_test_scaled_5k.nessus(5,000 findings across 10 assets) →~7.91s(~632 findings/sec) - Large-scale file:
nessus_benchmark_50k.xml(50,000 findings, 338 unique CVEs) →~194.59s(~257 findings/sec)
Legacy v1.x OpenVAS High-Volume Stress Benchmark
Mode used: offline with large-input allowance and low log verbosity (v1.0.0rc1).
openvas_real_stress_20k.xml— 20,000 findings (~10.48 MB):~48.49swall clockopenvas_real_stress_100k.xml— 100,000 findings (~52.41 MB):~42.86swall clockopenvas_real_stress_700k.xml— 700,000 findings (~367.10 MB):~210.65swall clock (3m 30.65s)
Benchmarking Best Practices
- Benchmark with realistic multi-scanner CVE diversity and non-CVE exposure findings
- Isolate cold-cache vs warm-cache runs and per-scale RSS measurements (via subprocess isolation)
- Record per-stage timing (
Parse+Ingest,Enrich,Pipeline DAG,UI+Summary), not only total time - Flush DuckDB WAL cleanly (
.close()) before measuring.vpp.dbdisk footprint - Keep configuration and feed metadata snapshots for reproducibility