Skip to content

docs: add Flat and DiskANN benchmarks with index selection - #90

Merged
zhenghaoz merged 3 commits into
mainfrom
docs/flat-hnsw-benchmarks
Sep 26, 2026
Merged

zhenghaoz merged 3 commits into
mainfrom
docs/flat-hnsw-benchmarks

Conversation

@zhenghaoz

@zhenghaoz zhenghaoz commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

The benchmark dashboard now compares HNSW, Flat, and DiskANN through an Index selector between Dataset and Test configuration, with HNSW selected by default. Switching the index updates all six charts, configuration labels, page titles, and SVG exports. Memory chart axes display MB/GB units.

Add measured xvec/zvec Flat results for INT4, INT8, FP16, and unquantized FP32, the missing HNSW FP32 pair, and four DiskANN runs covering only FP16 and FP32. Flat INT4/INT8 use a local zvec-go v0.7.0 modification to enable native rotation, recorded as v0.7.0+rotate. DiskANN uses the unmodified v0.7.0 backend, with degree 100, construction list 50, PQ chunks 64, query list 300, and rotation/refinement disabled. FP32 means no scalar quantization; DiskANN still uses internal PQ for traversal.

The parser validates index-specific parameters and keeps incompatible configurations separate. DiskANN results match the original JSON reports and process resource measurements. In this workload, concurrent QPS is 318.86/375.52 for xvec FP16/FP32 and 8.03/8.03 for zvec; Recall@100 ranges from 87.281% to 87.491%.

Validation: 18 tests pass; Astro/TypeScript reports no diagnostics; production build succeeds. Chromium checks cover the HNSW default, all three index choices, FP16/FP32-only DiskANN categories, six charts, SVG exports, MB/GB axes, switching back to other indexes, and mobile layout. Earlier checks also cover configuration deep links. No browser runtime errors were observed.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Deploying xvec with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2a0e593
Status: ✅  Deploy successful!
Preview URL: https://580d6330.xvec.pages.dev
Branch Preview URL: https://docs-flat-hnsw-benchmarks.xvec.pages.dev

View logs

@codecov

codecov Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.36%. Comparing base (8f85972) to head (2a0e593).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #90      +/-   ##
==========================================
- Coverage   81.68%   81.36%   -0.32%     
==========================================
  Files         148      148              
  Lines       30253    30253              
==========================================
- Hits        24711    24616      -95     
- Misses       5540     5635      +95     
  Partials        2        2              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@zhenghaoz zhenghaoz changed the title docs: add Flat benchmarks and index selection docs: add Flat and DiskANN benchmarks with index selection Sep 26, 2026
@zhenghaoz
zhenghaoz merged commit b1cc63b into main Sep 26, 2026
8 of 9 checks passed
@zhenghaoz
zhenghaoz deleted the docs/flat-hnsw-benchmarks branch September 26, 2026 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant