Exercises in benchmarking and evals, part 7: DeepSWE, Senior SWE-Bench, napkin math, and winter tires

· Source: danluu.com - danluu.com · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering, Data Science & Analytics · Depth: Advanced, extended

Summary

This analysis critically examines three distinct benchmarking scenarios, revealing common pitfalls in performance measurement and evaluation. The popular "sirupsen/napkin-math" GitHub repository, providing computer performance estimates, contains inaccuracies, including an understated 20ns random memory R/W latency (expected ~100ns) and flawed SSD read benchmarks that inadvertently read from cache or use unaligned accesses. Its sequential SSD read claim of 8 GiB/s exceeds documented cloud instance limits. AI coding agent benchmarks like DeepSWE and Senior SWE-Bench are also scrutinized for presenting implausible results, such as GPT-5.5 outperforming Opus 4.8, which contradicts user experience. These AI benchmarks employ subjective grading criteria, arbitrary length cutoffs for "tasteful solves," and exhibit significant LLM grading variance. Finally, the widespread belief that all-season tires become too hard below 7°C (45°F) is challenged by empirical tire performance tests, which demonstrate that all-season tires often outperform winter tires in dry or wet conditions above 0°C.

Key takeaway

For software engineers and AI scientists evaluating system performance or model capabilities, you should critically examine benchmark methodologies. Do not rely solely on headline scores from popular "napkin math" repositories or AI agent leaderboards like DeepSWE and Senior SWE-Bench. Instead, scrutinize the underlying code for caching issues, assess task representativeness, and be wary of subjective, discontinuous scoring. Your decisions on system design or model selection should be informed by benchmarks that reflect real-world workloads and employ robust, continuous evaluation metrics.

Key insights

Flawed methodology, unrepresentative tasks, and subjective scoring undermine benchmark validity and generalizability.

Principles

Method

To accurately measure memory latency, introduce data dependencies between loads to prevent parallel execution. For disk performance, account for read size, queue depth, and job count.

In practice

Topics

Code references

Best for: AI Engineer, NLP Engineer, Research Scientist, AI Scientist, Machine Learning Engineer, Software Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by danluu.com - danluu.com.