Skip to main content

Benchmark Study

This page is the benchmark dossier for gitquarry search. It is not just a run log. The goal is to answer the product questions that matter in practice:
  • how much latency each option adds
  • what that extra cost actually buys
  • which modes preserve the native baseline versus deliberately breaking away from it
  • when optional knobs such as README enrichment, weighted blends, recency, and language filters are worth using
The current live study uses two intentionally different benchmark queries:
  • api gateway
  • terminal ui
Those two queries are useful because they stress different failure modes. api gateway is noisy and infra-heavy. terminal ui is lexically cleaner and exposes whether a mode is adding useful semantic breadth or just drifting.

Executive Summary

  • Native is still the only sub-second path. In this run it stayed around ~0.5s to ~1.1s.
  • Quick discover adds ~15.7s to ~18.3s over native.
  • Balanced discover adds ~26.8s to ~30.1s over native.
  • Deep discover adds ~52.5s to ~59.8s over native.
  • README enrichment added another ~2.9s to ~4.6s on top of balanced discover and did not improve top-10 Jaccard overlap in either benchmark query.
  • For baseline preservation, quality is the best default non-native rank mode.
  • For api gateway, the strongest upgrade from native was discover-balanced-blended-quality-heavy.
  • For terminal ui, the strongest upgrade from native was discover-balanced-quality.
  • For maximum semantic expansion, query still introduces the most novelty, but it sheds much more of the native core.

Recommendation Matrix

Cost Ladder

Benchmark latency profile Depth overhead versus the native path README enrichment tax The latency pattern is stable enough to drive product guidance:
  • Native is the only low-latency mode.
  • Quick discover is already a substantial tax. Treat it as a deliberate opt-in, not a near-native fallback.
  • Balanced discover is the practical analysis tier. It is slow enough to matter, but still much cheaper than deep.
  • Deep discover is expensive enough that it should be reserved for deliberate heavy-recall workflows.
  • README enrichment is not free. In this study it added ~11% to ~15% on top of balanced discover while leaving top-10 overlap unchanged.
Concrete overhead from this run:

Balanced Decision Zone

Balanced discover is where the real product tradeoffs live. It is the family most likely to be exposed as the default advanced mode, so it deserves deeper inspection than the raw run table. Balanced-mode tradeoff map Balanced frontier map Baseline core retention Balanced-mode surface attribution mix These charts are rendered directly from the benchmark CSV artifacts for the docs site. The exact audit trail for values and scenario comparisons still lives in report.md, paired-effects.csv, and scenario-analysis.csv. What these views show:
  • quality and quality-heavy preserve the native core far better than query.
  • blended is often the cheapest balanced choice, but its top-10 fidelity is materially lower than quality.
  • query is not the best frontier choice in this run. It is dominated by cheaper alternatives with equal or better novelty tradeoffs in key cases.
  • quality-heavy is especially strong on api gateway, where it preserves the native core while improving repository quality signals.
  • The surface-mix chart explains why: quality leans less on repository names and more on description and topic evidence.
Balanced-family frontier takeaways:
  • On api gateway, the balanced frontier includes native, activity, quality, blended, and quality-heavy.
  • On terminal ui, the balanced frontier includes native, quality, blended, and query-heavy.
  • discover-balanced-query is not on the balanced frontier for either benchmark query.
  • README variants are off the frontier in this run because they add cost without improving top-10 fidelity.

Ranking Mode Guidance

The rank mode is the real behavior selector. Depth mostly controls cost. Rank controls what sort of repositories survive the cut.

Knob Guidance

Query-Specific Findings

api gateway

  • discover-balanced-blended-quality-heavy was the best non-native compromise.
  • It kept 8/10 of the native top 10 and 5/5 of the native top five.
  • discover-balanced-quality also retained the full native top five, but with less baseline overlap than quality-heavy.
  • discover-balanced-query and discover-balanced-blended both delivered 6 novel results, but each kept only 1/5 of the native top five.
  • README enrichment added +3.5s to +4.6s and did not improve top-10 Jaccard.

terminal ui

  • discover-balanced-quality was the best non-native default.
  • It kept 4/5 of the native top five with 0.4286 Jaccard and remained cheaper than quality-heavy.
  • discover-balanced-blended sat on the frontier because it was cheaper and still delivered 5 novel results.
  • discover-balanced-blended-query-heavy also sat on the frontier and dominated plain discover-balanced-query in this run.
  • README enrichment added +2.9s to +3.9s and again did not improve top-10 Jaccard.

Churn And Stable Leaders

Scenario churn versus the native baseline Most persistent repositories across the study These two views help with interpretation:
  • The churn chart tells you which options are still “about the same search” versus which ones are effectively different products.
  • The persistence chart shows which repositories survive almost every mode and filter change.
  • Persistent leaders are especially useful for screenshots, demo flows, and explanation examples because they are less likely to disappear when the ranking strategy changes.

How To Run The Study

The benchmark harness lives at: Build the binary first if needed:
Run the full live study:
Rebuild derived analysis from existing raw outputs:
Refresh all chart assets:
If GITQUARRY_TOKEN is not set, the runner will try to use GitHub CLI auth before failing.

Operator Playbook

If the goal is to help an operator choose a mode quickly, use these presets instead of re-reading the full study every time: Default recommendation for most operators:
Escalation rule:
  1. Start with native if latency matters most.
  2. Move to balanced quality if you need a smarter curated set.
  3. Move to balanced query only when you explicitly want more novel repositories.
  4. Add --readme, --updated-within, or --language only when the task requires that specific constraint.

Output Files

The study writes raw and derived artifacts to target/benchmark-study/. Most useful outputs:
  • run-summaries.csv
  • comparisons.csv
  • scenario-analysis.csv
  • paired-effects.csv
  • balanced-frontier.csv
  • repo-rows.csv
  • report.md
  • raw/<query>/<scenario>.json
The docs visuals are published from docs/images/benchmark-study/ as direct Altair and Vega-Lite renders in both SVG and high-resolution PNG form. The CSV and markdown artifacts remain the exact source of truth for benchmark values.

How To Read The Data

Use the artifacts in this order:
  1. Start with report.md for the headline summary.
  2. Use paired-effects.csv for the cleanest latency-tax and delta analysis.
  3. Use scenario-analysis.csv for decision metrics such as core retention, surface shares, and frontier flags.
  4. Use repo-rows.csv when you need exact repository-level evidence, scores, and matched surfaces.

Confidence Limits

This is a strong directional benchmark, not a universal law.
  • It uses two live queries, not a full benchmark corpus.
  • It is a single-run live benchmark against GitHub data that changes over time.
  • Latency is affected by network and GitHub response conditions.
  • The top-10 overlap metrics are decision-useful, but they do not capture every ranking-quality dimension.
  • README enrichment may pay off more on other query classes even though it did not change top-10 overlap here.
The right way to use this study is as a decision support artifact. It is precise enough to compare mode families and tune defaults, but it should be rerun when the ranking model, GitHub corpus, or product goals materially change.