UKB chr1 Dense Store — Array Query API Benchmark

chr1 × 100 UKB analyses · sparse flat array return contract

Published

July 3, 2026

Dataset

Field Value
Variants (hg38) 762,080
Analyses 100
Store size 290.0 MB
Build time 388.5s
Liftover failures 0
Store path docs/benchmark-output/vcf_ukb_chr1_dense.opengwasdb

Query API

All five query methods return dict[str, np.ndarray] with four parallel sparse flat arrays (variant_index, analysis_index, z, se), matching the format of the internal top-hit index. AssociationResult Python object materialisation is completely eliminated.

Timings

Each pattern ran 10 repetitions after one warm-up call. Row API column shows the previous AssociationResult baseline for comparison. besdq column is the besdq zarr zstd_bitshuffle baseline.

Query Median ms p95 ms Result count Row API ms Speedup besdq ms vs besdq
regional 97.6 130.4 324,048 2800.805 28.7× 4.988 19.6× ⚠
phewas 2.6 3.0 100 5.556 2.1× 0.906 2.9× ⚠
tophits 1.3 1.4 14,557 161.364 124.1× 0.688 1.9×
bulk 1764.2 2802.6 762,080 13671.501 7.8× 490.517 3.6× ⚠
random_lookup 224.2 298.4 598 375.622 1.7× 30.424 7.4× ⚠

Interpretation

  • regional: 28.7× faster than row API (2800.8 ms → 97.6 ms)
  • WARNING: 19.6× slower than besdq zstd_bitshuffle baseline.
  • phewas: 2.1× faster than row API (5.6 ms → 2.6 ms)
  • WARNING: 2.9× slower than besdq zstd_bitshuffle baseline.
  • tophits: 124.1× faster than row API (161.4 ms → 1.3 ms)
  • bulk: 7.8× faster than row API (13671.5 ms → 1764.2 ms)
  • WARNING: 3.6× slower than besdq zstd_bitshuffle baseline.
  • random_lookup: 1.7× faster than row API (375.6 ms → 224.2 ms)
  • WARNING: 7.4× slower than besdq zstd_bitshuffle baseline.

Provenance

  • JSON results: opengwasdb_vcf_ukb_chr1_array_benchmark.json
  • Row-API baseline: /home/gh13047/repo/opengwasdb/docs/benchmark-output/vcf_ukb_chr1_dense.opengwasdb
  • besdq baseline: ukb-chr1_zarr_benchmark.json