How Benchmark Lap Calculates F1 Analytics
How Benchmark Lap calculates Formula 1 qualifying pace gap (%), paired same-lap clean race pace, Supertime relative car performance, Absolute vs. Relative driver form, and auto-detected season splits.
Qualifying Pace Gap (%)
Measures pure one-lap speed between two drivers using their fastest lap in the highest shared knockout session (Q3 > Q2 > Q1), aggregated by season median.
Per-Round Qualifying Delta (%)
Delta (%) = ((LapTime_A - LapTime_B) / LapTime_B) × 100Negative values mean Driver A was faster. Expressing the gap as a percentage normalizes across short (~65s) and long (~105s) circuits.
Season Aggregation
Season Gap = median(Round_1_Delta, ..., Round_N_Delta)Median is the primary headline figure so wet sessions, red flags, or traffic-compromised laps do not skew the season gap. Arithmetic mean is tracked alongside for reference.
- Highest shared session rule: if both drivers set a time in Q3, Q3 is used; if one is knocked out in Q2, both drivers’ Q2 times are compared; otherwise Q1 is used. Comparing Q3 vs Q1 would distort the delta due to track evolution.
- Percentage-to-seconds rule of thumb: on a typical 90-second F1 lap, 0.10% ≈ 0.09s.
- Qualifying Head-to-Head (H2H) separately counts who qualified higher on the official qualifying sheet (before grid penalties).
| Range | Tier | Approx. Scale | Meaning |
|---|---|---|---|
| < 0.05% | Razor-Thin | < 0.05s / 90s lap | Practically dead even over one lap. |
| 0.05% – 0.15% | Close Battle | ~0.05 – 0.14s | Typical tight F1 teammate qualifying gap. |
| 0.15% – 0.30% | Clear Edge | ~0.14 – 0.27s | Decisive one-lap advantage on Saturdays. |
| 0.30% – 0.50% | Dominant | ~0.27 – 0.45s | Clearly a tier above over a single lap. |
| 0.50%+ | Commanding | > 0.45s | Rare, lopsided one-lap gap in equal machinery. |
Clean Race Pace & Lap Telemetry
Compares Sunday speed using OpenF1 lap-by-lap telemetry via paired same-lap clean deltas (s/lap), stripping out Lap 1, pit stops, Safety Cars, and per-stint outliers.
Paired Same-Lap Delta (Head-to-Head)
LapDelta_k = LapDuration_A(k) - LapDuration_B(k) [only when both drivers are clean on lap k]Comparing lap k to lap k automatically cancels out fuel burn (~0.06s/lap lighter each lap) and track evolution. Negative = Driver A faster.
Per-Stint Outlier Guard
isOutlier = LapDuration > 1.15 × StintMedianEligibleLapEach stint uses its own median (rather than a single whole-race median) so mixed wet/dry races (e.g., Intermediates + Softs) never falsely reject wet stints.
Multi-Race Season Aggregation
SeasonRacePace = median(Race_1_MedianDelta, ..., Race_M_MedianDelta)Multi-race samples require at least 8 paired clean laps per Grand Prix (≥ 3 for a single race) so tiny micro-stints cannot hijack the season median.
- A lap is marked CLEAN only if all of the following hold: lap number > 1 (excludes standing start), valid positive duration, not a pit-in lap, not a pit-out lap (is_pit_out_lap or immediately following a pit stop), not under Safety Car / VSC (matched via OpenF1 race_control timestamps & lap numbers), and within 1.15× of that stint’s eligible median.
- Same-Tyre Filter (optional toggle): further restricts paired laps to identical known tyre compounds (Soft/Medium/Hard/Inter/Wet) where the tyre age difference between the two drivers is ≤ 5 laps.
- Cumulative gap on the Race Lap Inspector is computed from lap finish timestamps (finishMs_A - finishMs_B) / 1000.
| Range | Tier | Approx. Scale | Meaning |
|---|---|---|---|
| < 0.08 s/lap | Matched Pace | < 5s / GP | Virtually identical Sunday speed on shared clean laps. |
| 0.08 – 0.20 s/lap | Slight Edge | ~5 – 11s / GP | Consistent Sunday execution advantage. |
| 0.20 – 0.40 s/lap | Clear Race Pace | ~12 – 24s / GP | Unmistakable long-run pace superiority. |
| 0.40+ s/lap | Dominant Pace | 24s+ / GP | Decisive Sunday speed gap independent of strategy. |
Race H2H, Classification & Sunday Execution
Defines how finished vs. lapped vs. DNF/DNS/DSQ results are classified, how Sunday H2H battles are scored, and how pit lane starts affect Net Grid Delta.
Net Grid Delta (Sunday Execution)
NetGridDelta = mean(EffectiveGrid - FinishPosition) [across finished GPs]Positive = gained places on Sunday. Pit lane starts (grid = 0, displayed as PL) use that race’s actual starter count (e.g., 20 or 22) as EffectiveGrid.
Median Sunday Finish Gap
FinishGap = median((FinishTimeMs_A - FinishTimeMs_B) / 1000) [same-lap finishes only]Only computed when both drivers finish on the exact same lap count. Lapped differences are tracked separately as +NL so they never corrupt the seconds median.
- Status classification: "Finished", "Lapped", and "+N Lap(s)" all count as FINISHED (FIN) — lapped cars are never misclassified as DNFs. "Did not start" / position "W" = DNS; "Disqualified" / position "D" = DSQ; all other non-finishes = DNF.
- Sunday H2H defaults to "Both Finished Only" (excludes DNFs, DSQs, and DNSs so mechanical failures do not skew racecraft). Toggling "All Starts" awards the round to the classified finisher when the other driver retires (DNS is still excluded).
- Primary teammate pairings are auto-detected by the highest shared constructor round count, preventing 1-race cameo/reserve appearances from displacing the main pairing.
- Points totals include both Grand Prix and Sprint points; FIA tie-breaking uses finish countback (P1, P2, P3, ...).
| Range | Tier | Approx. Scale | Meaning |
|---|---|---|---|
| < 3.0s | Nose-to-Tail | 1 pit undercut | Separated by a single undercut or traffic over ~305 km. |
| 3.0 – 10.0s | Tactical Gap | ~0.05 – 0.15 s/lap | Typical margin decided by strategy & tyre degradation. |
| 10.0 – 25.0s | Clear Race Pace | ~0.20 – 0.40 s/lap | Clear Sunday pace advantage over a GP distance. |
| 25.0s+ | Commanding Margin | Free pit stop | Equivalent to a full pit stop ahead at the flag. |
Relative Car Pace ("Supertime") & Development
Estimates each constructor’s true machinery ceiling in both Qualifying ("Supertime") and Race Trim, plus mid-season upgrade gains across the summer break.
Qualifying Car Ceiling (Supertime)
TeamGapToFastest (%) = ((TeamBestLapMs - WeekendFastestMs) / WeekendFastestMs) × 100Takes the single fastest qualifying lap set by either driver of a constructor across Q1/Q2/Q3 to approximate the car’s peak potential.
Pre- to Post-Summer Break Dev Gain
DevDelta (%) = PreBreakMedianGap (%) - PostBreakMedianGap (%)Positive values mean the team closed the gap to the fastest car after the summer shutdown (e.g., +0.25% = ~0.23s/lap closer on a 90s track).
Race-Trim Clean Car Pace
TeamRaceGap (s/lap) = FasterCarCleanMedianSec - FastestTeamCleanMedianSecBuilt from full-grid OpenF1 telemetry (requiring ≥ 8 clean laps per driver). Using the faster car’s clean median filters out a compromised second car.
- Each round also computes % vs Grid Median ((TeamBestMs - GridMedianMs) / GridMedianMs × 100) to show whether a car sits above or below midfield parity.
- Season rankings sort constructors by median qualifying gap to the fastest car (or median clean race pace gap when viewing Race Trim).
- 90-second lap equivalents are displayed as (GapPct / 100) × 90 for intuitive reading.
Absolute vs. Relative Form & Momentum Scores
Two complementary lenses over rolling windows (Last 3, Last 5) or season splits: Absolute Form rewards top-of-grid scoring; Relative Form isolates who is surging versus their own baseline and teammate.
Absolute Driver Momentum (5 – 100)
Score = clamp(PointsFactor [0..50] + FinishFactor [0..35] + GridGainFactor [-15..+15], 5, 100)PointsFactor = min(recentPts / (N × 25), 1) × 50; FinishFactor = ((maxGrid + 1 - avgFinish) / maxGrid) × 35; GridGainFactor = clamp(netPosGained × 2, -15, +15).
Relative Driver Form (5 – 100, centered at 50)
Score = 50 + vsPrior(×4.5, ±22) + vsSeason(×3.5, ±15) + vsTeammate(×3.0, ±15) + gridDelta(×1.5, ±8)50 = Holding Steady. Compares recent effective finish average against (1) immediately preceding N rounds, (2) earlier season baseline, (3) teammate in those exact rounds, and (4) starting grid trend. Zero classified finishes caps the score at 32.
Absolute Constructor Momentum (5 – 100)
Score = clamp(PointsFactor [0..50] + TeamFinishFactor [0..35] + ExecFactor [-15..+15], 5, 100)Max GP weekend points baseline is 43 pts (1–2 finish). ExecFactor = clamp(netPosGained × 1.2 + doublePoints × 2, -15, +15).
Relative Constructor Form (5 – 100, centered at 50)
Score = 50 + finVsPrior(×4.5, ±20) + finVsSeason(×3.5, ±15) + qualiVsPrior(×20, ±15) + qualiVsSeason(×15, ±12)Blends 2-car Sunday finish trajectory with Supertime qualifying pace improvement vs. the team’s own prior window and earlier season baseline.
- Effective Finish Position: classified finishes use their finish position (P1–P22); DNFs and DSQs are scored as maxGridSize (20 in 2024–2025, 22 in 2026); DNSs are excluded.
- Rolling Standings tie-breaking: GP + Sprint points in the window, then in-window FIA finish countback (P1, P2, ...). This guarantees a driver who actually finished races on 0 points always ranks above an all-DNF/DNS stretch.
- Part-time / 1-race cameo drivers are filtered out of Rolling Standings by default (with a toggle to include them).
Auto-Detected Season Splits
Automatically segments every F1 calendar into natural phases (Opening, Pre/Post Summer Break, Final Stretch) directly from race dates without hardcoding round numbers.
Summer Shutdown Detection
summerBreak = argmax(date[i+1] - date[i]) where gap ≥ 18 days and month(date[i]) ∈ {Jun, Jul, Aug}Automatically adapts to calendar reshuffles across 2024, 2025, and 2026.
- Opening Stretch & Final Stretch dynamically scale to min(5, max(3, floor(rounds / 3))) rounds once at least 6 races are completed.
- Pre-Summer Break covers Round 1 through the last race before the detected shutdown; Post-Summer Break covers all subsequent rounds.
Data Sources, Caching & Live Sync
Combines official classification data from Jolpica with granular lap telemetry from OpenF1, backed by multi-tier browser caching and offline resilience.
- Jolpica F1 API (Ergast-compatible): supplies 2024–2026 Grand Prix results, Q1/Q2/Q3 qualifying splits, Sprint results, and season calendars. Paginated automatically and merged by round so 22-car grids are never truncated.
- OpenF1 API: supplies lap-by-lap timing, tyre stints & compounds, pit stop durations, race control (SC/VSC) events, and driver headshots/branding.
- Browser caching: season results are cached locally with a 6-hour TTL for the active season and 30-day TTL for completed seasons. Per-session OpenF1 telemetry is stored in IndexedDB so each race is fetched only once.
- Calendar sync & fallback: when a race finishes on the calendar before Jolpica publishes classification, Benchmark Lap polls every 5 minutes. A bundled 2024 dataset provides instant offline fallback.