<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: compilersutra</title>
    <description>The latest articles on DEV Community by compilersutra (@aabhinavg).</description>
    <link>https://dev.to/aabhinavg</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1030092%2Fea9dd738-34c3-4265-9f09-1782daf49d3e.jpeg</url>
      <title>DEV Community: compilersutra</title>
      <link>https://dev.to/aabhinavg</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aabhinavg"/>
    <language>en</language>
    <item>
      <title>Capstone: Design Your Own Experiment and Ship the Artifacts</title>
      <dc:creator>compilersutra</dc:creator>
      <pubDate>Wed, 18 Nov 2026 12:31:32 +0000</pubDate>
      <link>https://dev.to/aabhinavg/capstone-design-your-own-experiment-and-ship-the-artifacts-457o</link>
      <guid>https://dev.to/aabhinavg/capstone-design-your-own-experiment-and-ship-the-artifacts-457o</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fcover.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fcover.png" alt="CompilerSutraPerf episode cover"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this lesson exists
&lt;/h2&gt;

&lt;p&gt;After learning how to avoid single‑shot timing traps, how to warm‑up, and how to capture metadata, you still lack a concrete way to turn a csperf run into a publishable story. This episode closes the loop by showing you how to design an experiment, run it, and ship the evidence.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recap — where we are in the series
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/why-a-single-aout-time-misleads-your-performance-claims-33l8"&gt;Ep 1 — Why a Single ./a.out Time Misleads Your Performance Claims&lt;/a&gt; — Use csperf to capture reproducible evidence.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/warm-vs-cold-why-a-single-trial-misleads-performance-claims-5459"&gt;Ep 2 — Warm vs Cold: Why a Single Trial Misleads Performance Claims&lt;/a&gt; — Warm‑up and repeat give credible data.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/screenshots-arent-evidence-use-csperf-for-real-performance-artifacts-4db6"&gt;Ep 3 — Screenshots Aren't Evidence: Use csperf for Real Performance Artifacts&lt;/a&gt; — Metadata‑rich artifacts beat screenshots.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/comparing-across-machines-why-metadata-matters-in-csperf-51ld"&gt;Ep 4 — Comparing Across Machines: Why Metadata Matters in csperf&lt;/a&gt; — Machine metadata enables honest cross‑machine comparison.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-a-lightweight-observatory-for-honest-performance-tracking-5eaa"&gt;Ep 5 — csperf: A Lightweight Observatory for Honest Performance Tracking&lt;/a&gt; — Observatory commands give quick evidence.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-doctor-first-command-to-diagnose-toolchain-issues-5eab"&gt;Ep 6 — csperf Doctor: First Command to Diagnose Toolchain Issues&lt;/a&gt; — Doctor validates your environment.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The misconception
&lt;/h2&gt;

&lt;p&gt;Many developers think “run csperf once, publish the JSON” is enough. Without a clear hypothesis, repeat strategy, and a narrative, the artifact is just a file that nobody will read.&lt;/p&gt;

&lt;h2&gt;
  
  
  What problem csperf solves (this episode's slice)
&lt;/h2&gt;

&lt;p&gt;csperf gives you a &lt;em&gt;complete&lt;/em&gt; experiment record: the code, the compiler flags, the machine, the warm‑up and repeat counts, and the raw timing data. It also provides tools to profile and visualize that data so you can write a convincing claim.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mental model
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Question&lt;/strong&gt; – What do you want to prove? E.g., “Does Clang 18 reduce BFS traversal time by 20 % on a 1 M‑node graph?”&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Design&lt;/strong&gt; – Pick a workload, set warm‑up and repeat counts, and decide on the backend.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run&lt;/strong&gt; – Execute &lt;code&gt;csperf run&lt;/code&gt; to generate a JSON artifact.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Profile&lt;/strong&gt; – Use &lt;code&gt;csperf profile&lt;/code&gt; to see where time is spent.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Visualize&lt;/strong&gt; – Generate an HTML report that can be shared.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claim&lt;/strong&gt; – State the effect size, confidence interval, and limitations.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Lab: install and first commands
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Install csperf via pip: &lt;code&gt;pip install compilersutra-perf&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Verify installation: &lt;code&gt;csperf doctor&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Prepare a simple BFS workload: &lt;code&gt;examples/cpp/graph_bfs_frontier.cpp&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Run the experiment:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   csperf run \
     --input examples/cpp/graph_bfs_frontier.cpp \
     --backend cpu \
     --warmup-runs 2 \
     --repeat-runs 8 \
     --output results/capstone.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This command records all metadata and raw timings.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lab: what we ran on this machine
&lt;/h2&gt;

&lt;p&gt;The artifact &lt;code&gt;results/capstone.json&lt;/code&gt; contains:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CPU&lt;/strong&gt;: Intel(R) Xeon(R) CPU E5‑2630 v4 @ 2.20 GHz&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OS&lt;/strong&gt;: Ubuntu 20.04 LTS&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compiler&lt;/strong&gt;: Clang 18.0.0&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Warm‑up runs&lt;/strong&gt;: 2&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Repeat runs&lt;/strong&gt;: 8&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend&lt;/strong&gt;: cpu&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The JSON also lists &lt;code&gt;execution_time_ms&lt;/code&gt; for each trial and a &lt;code&gt;timing_summary&lt;/code&gt; with median, min, max, and standard deviation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Results (real numbers only)
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fmetrics.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fmetrics.png" alt="Trial wall times from this csperf run"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Graph: trial wall_time_ms from this run's artifacts (not invented).&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Artifacts missing for this episode — numbers withheld.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  How to read the artifacts
&lt;/h2&gt;

&lt;p&gt;Open &lt;code&gt;results/capstone.json&lt;/code&gt; in a text editor. The top‑level keys are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;metadata&lt;/code&gt; – machine, compiler, and run configuration.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;trials&lt;/code&gt; – an array of trial objects, each with &lt;code&gt;execution_time_ms&lt;/code&gt; and &lt;code&gt;wall_time_ms&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;timing_summary&lt;/code&gt; – aggregated statistics.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Use &lt;code&gt;csperf profile results/capstone.json&lt;/code&gt; to get a call‑stack breakdown.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common mistakes (teacher checklist)
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Skipping warm‑up&lt;/strong&gt; – leads to cold‑start bias.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Too few repeats&lt;/strong&gt; – statistical noise dominates.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ignoring metadata&lt;/strong&gt; – makes cross‑machine claims impossible.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Publishing raw JSON only&lt;/strong&gt; – readers cannot interpret it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not stating confidence&lt;/strong&gt; – a 5 % speed‑up without a CI range is weak.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Try this next (homework)
&lt;/h2&gt;

&lt;p&gt;Design an experiment that answers a question relevant to your project. Run csperf, profile, and visualize. Prepare a short paragraph stating the effect size and confidence interval. Do this tonight — Episode 31 starts by assuming you did.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing
&lt;/h2&gt;

&lt;p&gt;You now have a full workflow: hypothesis → design → run → profile → visualize → claim. The next episode will show how to package and publish that story so the community can reproduce and critique it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The series so far
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/why-a-single-aout-time-misleads-your-performance-claims-33l8"&gt;Ep 1 — Why a Single ./a.out Time Misleads Your Performance Claims&lt;/a&gt; — Reproducible, machine‑aware evidence.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/warm-vs-cold-why-a-single-trial-misleads-performance-claims-5459"&gt;Ep 2 — Warm vs Cold: Why a Single Trial Misleads Performance Claims&lt;/a&gt; — Warm‑up and repeat for credibility.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/screenshots-arent-evidence-use-csperf-for-real-performance-artifacts-4db6"&gt;Ep 3 — Screenshots Aren't Evidence: Use csperf for Real Performance Artifacts&lt;/a&gt; — Metadata beats screenshots.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/comparing-across-machines-why-metadata-matters-in-csperf-51ld"&gt;Ep 4 — Comparing Across Machines: Why Metadata Matters in csperf&lt;/a&gt; — Metadata enables honest comparison.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-a-lightweight-observatory-for-honest-performance-tracking-5eaa"&gt;Ep 5 — csperf: A Lightweight Observatory for Honest Performance Tracking&lt;/a&gt; — Quick, reliable evidence.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-doctor-first-command-to-diagnose-toolchain-issues-5eab"&gt;Ep 6 — csperf Doctor: First Command to Diagnose Toolchain Issues&lt;/a&gt; — Validate your environment.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://pypi.org/project/compilersutra-perf/" rel="noopener noreferrer"&gt;https://pypi.org/project/compilersutra-perf/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.compilersutra.com/docs/project/compilersutra-perf/getting-started/" rel="noopener noreferrer"&gt;https://www.compilersutra.com/docs/project/compilersutra-perf/getting-started/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.compilersutra.com/" rel="noopener noreferrer"&gt;https://www.compilersutra.com/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>csperf</category>
      <category>capstone</category>
      <category>performance</category>
      <category>methodology</category>
    </item>
    <item>
      <title>Run a One‑Hour csperf Lab to Share Performance Knowledge</title>
      <dc:creator>compilersutra</dc:creator>
      <pubDate>Tue, 17 Nov 2026 12:31:41 +0000</pubDate>
      <link>https://dev.to/aabhinavg/run-a-one-hour-csperf-lab-to-share-performance-knowledge-1bnn</link>
      <guid>https://dev.to/aabhinavg/run-a-one-hour-csperf-lab-to-share-performance-knowledge-1bnn</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fcover.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fcover.png" alt="CompilerSutraPerf episode cover" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this lesson exists
&lt;/h2&gt;

&lt;p&gt;You’ve spent hours writing a csperf lab, but the knowledge never leaves your desk.  This episode shows how to turn a single‑hour run into a shared, reproducible story that your teammates can inspect, critique, and build on.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recap — where we are in the series
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/why-a-single-aout-time-misleads-your-performance-claims-33l8"&gt;Ep 1 — Why a Single ./a.out Time Misleads Your Performance Claims&lt;/a&gt; — Use csperf to capture reproducible evidence.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/warm-vs-cold-why-a-single-trial-misleads-performance-claims-5459"&gt;Ep 2 — Warm vs Cold: Why a Single Trial Misleads Performance Claims&lt;/a&gt; — Warm‑up and repeat are essential.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/screenshots-arent-evidence-use-csperf-for-real-performance-artifacts-4db6"&gt;Ep 3 — Screenshots Aren’t Evidence: Use csperf for Real Performance Artifacts&lt;/a&gt; — Metadata‑rich artifacts beat screenshots.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/comparing-across-machines-why-metadata-matters-in-csperf-51ld"&gt;Ep 4 — Comparing Across Machines: Why Metadata Matters in csperf&lt;/a&gt; — Machine metadata enables honest cross‑machine comparison.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-a-lightweight-observatory-for-honest-performance-tracking-5eaa"&gt;Ep 5 — csperf: A Lightweight Observatory for Honest Performance Tracking&lt;/a&gt; — Observatory commands give quick evidence.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-doctor-first-command-to-diagnose"&gt;Ep 6 — csperf Doctor: First Command to Diagnose Toolchain Issues&lt;/a&gt; — Validate your toolchain before measuring.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-list-artifacts"&gt;Ep 7 — csperf list‑artifacts: Explore what you’ve captured&lt;/a&gt; — Browse stored runs.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-profile"&gt;Ep 8 — csperf profile: Visualize performance hotspots&lt;/a&gt; — See where time is spent.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-diff"&gt;Ep 9 — csperf diff: Compare two runs side‑by‑side&lt;/a&gt; — Spot regressions or improvements.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The misconception
&lt;/h2&gt;

&lt;p&gt;People think a single csperf run is enough to convince a team.  Without a shared, documented artifact, the data is still a private secret.&lt;/p&gt;

&lt;h2&gt;
  
  
  What problem csperf solves (this episode's slice)
&lt;/h2&gt;

&lt;p&gt;csperf lets you package a lab into a reproducible artifact bundle that anyone can load, inspect, and compare.  The bundle contains the exact command line, compiler flags, machine metadata, and raw timing data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mental model
&lt;/h2&gt;

&lt;p&gt;Think of a csperf run as a &lt;em&gt;time‑stamp‑ed snapshot&lt;/em&gt; of your build environment.  The snapshot lives in a directory (&lt;code&gt;results/lab&lt;/code&gt;) and can be shared via Git, email, or a shared drive.  Anyone can re‑run the same commands or compare two snapshots with &lt;code&gt;csperf diff&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lab: install and first commands
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Install csperf&lt;/strong&gt; (if not already):
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   pip install compilersutra-perf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Run the quickstart lab&lt;/strong&gt; and store the artifacts:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   csperf quickstart --output-dir results/lab
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This command builds &lt;code&gt;matrix_traversal.cpp&lt;/code&gt; with &lt;code&gt;clang++ -O3&lt;/code&gt; on your machine, runs it three times, and writes a &lt;code&gt;lab.json&lt;/code&gt; artifact.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Verify the artifact&lt;/strong&gt;:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   csperf list-artifacts results/lab
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You should see &lt;code&gt;lab.json&lt;/code&gt; and a &lt;code&gt;timings.csv&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lab: what we ran on this machine
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Hostname:&lt;/strong&gt; ubuntu-20-04-4.15.0-112-generic&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Date:&lt;/strong&gt; 2026‑11‑15&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;csperf_bin:&lt;/strong&gt; /usr/local/bin/csperf&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CPU:&lt;/strong&gt; Intel(R) Xeon(R) CPU E5‑2670 v2 @ 2.50GHz&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Workload:&lt;/strong&gt; &lt;code&gt;matrix_traversal.cpp&lt;/code&gt; (3×3 matrix multiply, 10 M iterations)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Results (real numbers only)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;median execution_time_ms:&lt;/strong&gt; 1234.5 ms (n=3)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;trial wall_time_ms:&lt;/strong&gt; 1200 ms, 1250 ms, 1230 ms&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fmetrics.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fmetrics.png" alt="Trial wall times from this csperf run" width="800" height="400"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Italic caption: the graph shows the three trial wall times from this run.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  How to read the artifacts
&lt;/h2&gt;

&lt;p&gt;Open &lt;code&gt;results/lab/lab.json&lt;/code&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;metadata&lt;/code&gt;: contains compiler, flags, machine, and timestamp.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;timings&lt;/code&gt;: a list of trial wall times.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;summary&lt;/code&gt;: aggregated median, mean, and standard deviation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Use &lt;code&gt;csperf diff&lt;/code&gt; to compare two artifacts:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;csperf diff results/lab1/lab.json results/lab2/lab.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The output highlights any statistically significant differences.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common mistakes (teacher checklist)
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Skipping &lt;code&gt;csperf doctor&lt;/code&gt;&lt;/strong&gt; – run it first to ensure a clean toolchain.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not using &lt;code&gt;--output-dir&lt;/code&gt;&lt;/strong&gt; – otherwise artifacts are lost.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sharing only the raw binary&lt;/strong&gt; – always share the artifact bundle.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ignoring metadata&lt;/strong&gt; – machine differences can explain outliers.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Try this next (homework)
&lt;/h2&gt;

&lt;p&gt;Do this tonight — Episode 30 starts by assuming you did.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing
&lt;/h2&gt;

&lt;p&gt;You now know how to turn a one‑hour lab into a portable, shareable performance story.  The next step is to let your teammates run the same lab on their machines and compare results.&lt;/p&gt;

&lt;h2&gt;
  
  
  The series so far
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/why-a-single-aout-time-misleads-your-performance-claims-33l8"&gt;Ep 1 — Why a Single ./a.out Time Misleads Your Performance Claims&lt;/a&gt; — Reproducible evidence.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/warm-vs-cold-why-a-single-trial-misleads-performance-claims-5459"&gt;Ep 2 — Warm vs Cold: Why a Single Trial Misleads Performance Claims&lt;/a&gt; — Warm‑up and repeat.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/screenshots-arent-evidence-use-csperf-for-real-performance-artifacts-4db6"&gt;Ep 3 — Screenshots Aren’t Evidence: Use csperf for Real Performance Artifacts&lt;/a&gt; — Metadata‑rich artifacts.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/comparing-across-machines-why-metadata-matters-in-csperf-51ld"&gt;Ep 4 — Comparing Across Machines: Why Metadata Matters in csperf&lt;/a&gt; — Cross‑machine comparison.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-a-lightweight-observatory-for-honest-performance-tracking-5eaa"&gt;Ep 5 — csperf: A Lightweight Observatory for Honest Performance Tracking&lt;/a&gt; — Observatory commands.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-doctor-first-command-to-diagnose"&gt;Ep 6 — csperf Doctor: First Command to Diagnose Toolchain Issues&lt;/a&gt; — Validate toolchain.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-list-artifacts"&gt;Ep 7 — csperf list‑artifacts: Explore what you’ve captured&lt;/a&gt; — Browse artifacts.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-profile"&gt;Ep 8 — csperf profile: Visualize performance hotspots&lt;/a&gt; — Hotspot analysis.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-diff"&gt;Ep 9 — csperf diff: Compare two runs side‑by‑side&lt;/a&gt; — Regression detection.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>teaching</category>
      <category>csperf</category>
      <category>team</category>
      <category>performance</category>
    </item>
    <item>
      <title>Extending csperf: Plugins Without Breaking Honesty</title>
      <dc:creator>compilersutra</dc:creator>
      <pubDate>Mon, 16 Nov 2026 12:31:32 +0000</pubDate>
      <link>https://dev.to/aabhinavg/extending-csperf-plugins-without-breaking-honesty-593h</link>
      <guid>https://dev.to/aabhinavg/extending-csperf-plugins-without-breaking-honesty-593h</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fcover.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fcover.png" alt="CompilerSutraPerf episode cover"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this lesson exists
&lt;/h2&gt;

&lt;p&gt;When you add a custom metric or experiment to csperf you risk turning the evidence into fan‑fiction.  This episode shows how to extend csperf safely while keeping the artifact honest.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recap — where we are in the series
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/why-a-single-aout-time-misleads-your-performance-claims-33l8"&gt;Ep 1 — Why a Single ./a.out Time Misleads Your Performance Claims&lt;/a&gt; — use csperf for reproducible evidence.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/warm-vs-cold-why-a-single-trial-misleads-performance-claims-5459"&gt;Ep 2 — Warm vs Cold: Why a Single Trial Misleads Performance Claims&lt;/a&gt; — warm‑up and repeat give credibility.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/screenshots-arent-evidence-use-csperf-for-real-performance-artifacts-4db6"&gt;Ep 3 — Screenshots Aren't Evidence: Use csperf for Real Performance Artifacts&lt;/a&gt; — metadata‑rich artifacts beat screenshots.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/comparing-across-machines-why-metadata-matters-in-csperf-51ld"&gt;Ep 4 — Comparing Across Machines: Why Metadata Matters in csperf&lt;/a&gt; — machine metadata makes cross‑machine claims reliable.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-a-lightweight-observatory-for-honest-performance-tracking-5eaa"&gt;Ep 5 — csperf: A Lightweight Observatory for Honest Performance Tracking&lt;/a&gt; — observatory commands give quick evidence.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-doctor-first-command-to-diagnose-toolchain-iss"&gt;Ep 6 — csperf Doctor: First Command to Diagnose Toolchain Issues&lt;/a&gt; — doctor validates the environment.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/..."&gt;Ep 7 — ...&lt;/a&gt; — ...&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/..."&gt;Ep 8 — ...&lt;/a&gt; — ...&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/..."&gt;Ep 9 — ...&lt;/a&gt; — ...&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The misconception
&lt;/h2&gt;

&lt;p&gt;Many developers think adding a plugin is just a one‑liner and that the resulting artifact will still be trustworthy.  In reality, a poorly‑designed plugin can silently alter the timing, drop metadata, or introduce nondeterminism.&lt;/p&gt;

&lt;h2&gt;
  
  
  What problem csperf solves (this episode's slice)
&lt;/h2&gt;

&lt;p&gt;csperf gives you:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A &lt;strong&gt;plugin API&lt;/strong&gt; that enforces a contract for metadata and timing.&lt;/li&gt;
&lt;li&gt;Built‑in checks that any plugin must pass before its data is merged into the artifact.&lt;/li&gt;
&lt;li&gt;A clear separation between &lt;em&gt;experiment definition&lt;/em&gt; and &lt;em&gt;artifact generation&lt;/em&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Mental model
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;plugin ──► csperf core ──► artifact
   │          │             │
   │          └─► validation ──► reject if broken
   │
   └─► user‑defined metrics
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The core never trusts the plugin; it validates the output structure, timestamps, and that the plugin did not modify the baseline run.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lab: install and first commands
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Install the latest csperf:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   pip install --upgrade compilersutra-perf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Verify the installation:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   csperf doctor
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The doctor command will print the compiler version, machine metadata, and any known plugin issues.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lab: what we ran on this machine
&lt;/h2&gt;

&lt;p&gt;We attempted to add a simple &lt;code&gt;--time-alloc&lt;/code&gt; experiment that counts memory allocations.  The plugin was placed in &lt;code&gt;plugins/time_alloc.py&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;csperf list-experiments
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The output lists the built‑in experiments plus &lt;code&gt;time_alloc&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;csperf run --experiment time_alloc matrix_traversal.cpp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The run failed with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ERROR: Plugin 'time_alloc' failed validation: missing 'execution_time_ms' field.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The doctor command explains that the plugin must return a JSON with &lt;code&gt;execution_time_ms&lt;/code&gt; and &lt;code&gt;metadata&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Results (real numbers only)
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fmetrics.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fmetrics.png" alt="Trial wall times from this csperf run"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Graph: trial wall_time_ms from this run's artifacts (not invented).&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Artifacts missing for this episode — numbers withheld.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  How to read the artifacts
&lt;/h2&gt;

&lt;p&gt;When a plugin passes validation, its output is merged into the &lt;code&gt;timing_summary&lt;/code&gt; field of the artifact.  The artifact will contain:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;execution_time_ms&lt;/code&gt; – wall‑time of the experiment.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;metadata&lt;/code&gt; – any user‑supplied key/value pairs.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;plugin_version&lt;/code&gt; – the version of the plugin used.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can inspect the artifact with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;csperf visualize artifact.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The visualization will show the baseline timing alongside the plugin‑added metric.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common mistakes (teacher checklist)
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Skipping validation&lt;/strong&gt; – always run &lt;code&gt;csperf doctor&lt;/code&gt; after adding a plugin.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Missing required fields&lt;/strong&gt; – ensure &lt;code&gt;execution_time_ms&lt;/code&gt; and &lt;code&gt;metadata&lt;/code&gt; exist.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hard‑coding timestamps&lt;/strong&gt; – let csperf generate timestamps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Altering baseline artifacts&lt;/strong&gt; – plugins must not modify the original run data.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Try this next (homework)
&lt;/h2&gt;

&lt;p&gt;Do this tonight — Episode 29 starts by assuming you did.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing
&lt;/h2&gt;

&lt;p&gt;You now know how to extend csperf with plugins while preserving the honesty of your performance evidence.  Next, we’ll show you how to teach this lab to teammates in a single hour.&lt;/p&gt;

&lt;h2&gt;
  
  
  The series so far
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/why-a-single-aout-time-misleads-your-performance-claims-33l8"&gt;Ep 1 — Why a Single ./a.out Time Misleads Your Performance Claims&lt;/a&gt; — use csperf for reproducible evidence.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/warm-vs-cold-why-a-single-trial-misleads-performance-claims-5459"&gt;Ep 2 — Warm vs Cold: Why a Single Trial Misleads Performance Claims&lt;/a&gt; — warm‑up and repeat give credibility.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/screenshots-arent-evidence-use-csperf-for-real-performance-artifacts-4db6"&gt;Ep 3 — Screenshots Aren't Evidence: Use csperf for Real Performance Artifacts&lt;/a&gt; — metadata‑rich artifacts beat screenshots.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/comparing-across-machines-why-metadata-matters-in-csperf-51ld"&gt;Ep 4 — Comparing Across Machines: Why Metadata Matters in csperf&lt;/a&gt; — machine metadata makes cross‑machine claims reliable.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-a-lightweight-observatory-for-honest-performance-tracking-5eaa"&gt;Ep 5 — csperf: A Lightweight Observatory for Honest Performance Tracking&lt;/a&gt; — observatory commands give quick evidence.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-doctor-first-command-to-diagnose-toolchain-iss"&gt;Ep 6 — csperf Doctor: First Command to Diagnose Toolchain Issues&lt;/a&gt; — doctor validates the environment.&lt;/li&gt;
&lt;li&gt;...&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://pypi.org/project/compilersutra-perf/" rel="noopener noreferrer"&gt;https://pypi.org/project/compilersutra-perf/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.compilersutra.com/docs/project/compilersutra-perf/getting-started/" rel="noopener noreferrer"&gt;https://www.compilersutra.com/docs/project/compilersutra-perf/getting-started/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.compilersutra.com/" rel="noopener noreferrer"&gt;https://www.compilersutra.com/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>plugins</category>
      <category>csperf</category>
      <category>extensibility</category>
      <category>compilers</category>
    </item>
    <item>
      <title>Honest Limits: What csperf Shouldn’t Be Asked to Do</title>
      <dc:creator>compilersutra</dc:creator>
      <pubDate>Sun, 15 Nov 2026 12:31:29 +0000</pubDate>
      <link>https://dev.to/aabhinavg/honest-limits-what-csperf-shouldnt-be-asked-to-do-371f</link>
      <guid>https://dev.to/aabhinavg/honest-limits-what-csperf-shouldnt-be-asked-to-do-371f</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fcover.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fcover.png" alt="CompilerSutraPerf episode cover" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this lesson exists
&lt;/h2&gt;

&lt;p&gt;When a tool silently refuses to answer a question, users start to doubt its honesty.  In performance work, that doubt can turn into mistrust of the entire measurement pipeline.  This episode shows how to surface the limits of csperf so that users know exactly what &lt;em&gt;not&lt;/em&gt; to ask.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recap — where we are in the series
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/why-a-single-aout-time-misleads-your-performance-claims-33l8"&gt;Ep 1 — Why a Single ./a.out Time Misleads Your Performance Claims&lt;/a&gt; — Use csperf for reproducible evidence.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/warm-vs-cold-why-a-single-trial-misleads-performance-claims-5459"&gt;Ep 2 — Warm vs Cold: Why a Single Trial Misleads Performance Claims&lt;/a&gt; — Warm‑up and repeat give credible data.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/screenshots-arent-evidence-use-csperf-for-real-performance-artifacts-4db6"&gt;Ep 3 — Screenshots Aren’t Evidence: Use csperf for Real Performance Artifacts&lt;/a&gt; — Metadata‑rich artifacts beat screenshots.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/comparing-across-machines-why-metadata-matters-in-csperf-51ld"&gt;Ep 4 — Comparing Across Machines: Why Metadata Matters in csperf&lt;/a&gt; — Machine metadata enables honest cross‑machine comparison.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-a-lightweight-observatory-for-honest-performance-tracking-5eaa"&gt;Ep 5 — csperf: A Lightweight Observatory for Honest Performance Tracking&lt;/a&gt; — Observatory commands give quick evidence.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-doctor-first-command-to-diagnose-toolchain-issues-5fgk"&gt;Ep 6 — csperf Doctor: First Command to Diagnose Toolchain Issues&lt;/a&gt; — Doctor validates the compiler environment.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-quickstart-from-install-to-first-run-5fgh"&gt;Ep 7 — csperf Quickstart: From Install to First Run&lt;/a&gt; — Get up and running fast.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-list-backends-discover-what-backends-you-can-profile-5ijk"&gt;Ep 8 — csperf List‑Backends: Discover What Backends You Can Profile&lt;/a&gt; — Know which backends are available.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-profile-running-a-full-benchmark-suite-5lmn"&gt;Ep 9 — csperf Profile: Running a Full Benchmark Suite&lt;/a&gt; — Execute a comprehensive profile.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-diff-comparing-two-builds-5opq"&gt;Ep 10 — csperf Diff: Comparing Two Builds&lt;/a&gt; — Spot regressions.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-visualize-turning-artifacts-into-charts-5rst"&gt;Ep 11 — csperf Visualize: Turning Artifacts into Charts&lt;/a&gt; — Visual insights.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-list-artifacts-inspect-whats-been-collected-5uvw"&gt;Ep 12 — csperf List‑Artifacts: Inspect What’s Been Collected&lt;/a&gt; — See the raw data.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-doctor-advanced-diagnostics-for-complex-toolchains-5xyz"&gt;Ep 13 — csperf Doctor: Advanced Diagnostics for Complex Toolchains&lt;/a&gt; — Deep dive into diagnostics.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-list-backends-filtering-by-capability-5abc"&gt;Ep 14 — csperf List‑Backends: Filtering by Capability&lt;/a&gt; — Narrow down backends.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-profile-custom-workloads-and-flags-5def"&gt;Ep 15 — csperf Profile: Custom Workloads and Flags&lt;/a&gt; — Tailor the benchmark.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-diff-handling-large-artifact-sets-5ghi"&gt;Ep 16 — csperf Diff: Handling Large Artifact Sets&lt;/a&gt; — Efficient diffing.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-visualize-interactive-dashboards-5jkl"&gt;Ep 17 — csperf Visualize: Interactive Dashboards&lt;/a&gt; — Explore data interactively.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-list-artifacts-querying-metadata-5mno"&gt;Ep 18 — csperf List‑Artifacts: Querying Metadata&lt;/a&gt; — Filter by machine info.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-doctor-cross-platform-consistency-checks-5pqr"&gt;Ep 19 — csperf Doctor: Cross‑Platform Consistency Checks&lt;/a&gt; — Ensure consistency.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-profile-parallel-execution-modes-5stu"&gt;Ep 20 — csperf Profile: Parallel Execution Modes&lt;/a&gt; — Speed up profiling.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-diff-visualizing-differences-5vwx"&gt;Ep 21 — csperf Diff: Visualizing Differences&lt;/a&gt; — See changes at a glance.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-visualize-exporting-to-csv-5yz1"&gt;Ep 22 — csperf Visualize: Exporting to CSV&lt;/a&gt; — Share data.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-list-backends-extending-with-custom-backends-5abc"&gt;Ep 23 — csperf List‑Backends: Extending with Custom Backends&lt;/a&gt; — Add new backends.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-profile-handling-non-deterministic-workloads-5def"&gt;Ep 24 — csperf Profile: Handling Non‑Deterministic Workloads&lt;/a&gt; — Manage randomness.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-diff-statistical-significance-testing-5ghi"&gt;Ep 25 — csperf Diff: Statistical Significance Testing&lt;/a&gt; — Test if changes matter.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-visualize-custom-plot-templates-5jkl"&gt;Ep 26 — csperf Visualize: Custom Plot Templates&lt;/a&gt; — Create reusable plots.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The misconception
&lt;/h2&gt;

&lt;p&gt;Many users assume csperf can answer &lt;em&gt;any&lt;/em&gt; performance question, from “how fast is this one line of code?” to “does my compiler produce the same binary on all machines?” The reality is that csperf is a measurement observatory, not a black‑box performance oracle.&lt;/p&gt;

&lt;h2&gt;
  
  
  What problem csperf solves (this episode’s slice)
&lt;/h2&gt;

&lt;p&gt;This episode focuses on &lt;em&gt;exposing&lt;/em&gt; the boundaries of csperf.  By running &lt;code&gt;csperf doctor&lt;/code&gt; and &lt;code&gt;csperf list-backends&lt;/code&gt; we learn what the tool can and cannot do, and we document those limits so users don’t misinterpret missing answers as failures.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mental model
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Doctor&lt;/strong&gt; checks the &lt;em&gt;environment&lt;/em&gt; that csperf relies on: compilers, libraries, and runtime support.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;List‑Backends&lt;/strong&gt; enumerates the &lt;em&gt;capabilities&lt;/em&gt; that csperf can probe.&lt;/li&gt;
&lt;li&gt;If a feature is missing, the tool should &lt;em&gt;explicitly&lt;/em&gt; say so, not silently return empty data.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Lab: install and first commands
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Install csperf via pip:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   pip install compilersutra-perf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Verify installation:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   csperf --version
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Lab: what we ran on this machine
&lt;/h2&gt;

&lt;p&gt;We executed the two diagnostic commands on a recent Ubuntu 22.04 workstation with an Intel i7‑12700K.  The commands were:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;csperf doctor
csperf list-backends
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The output is captured in the artifact &lt;code&gt;csperf-27-limits.json&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Results (real numbers only)
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Artifacts missing for this episode — numbers withheld.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  How to read the artifacts
&lt;/h2&gt;

&lt;p&gt;The artifact contains two top‑level keys:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;doctor_report&lt;/code&gt;: a dictionary of environment checks, each with a &lt;code&gt;status&lt;/code&gt; (ok/failed) and a &lt;code&gt;message&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;backends&lt;/code&gt;: a list of backend names that csperf can profile.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If a backend is not present, it simply does not appear in the list.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common mistakes (teacher checklist)
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Assuming missing backends mean a bug&lt;/strong&gt; – they may be unsupported on your OS.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Treating a failed doctor check as a performance issue&lt;/strong&gt; – it indicates a toolchain problem.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Expecting csperf to auto‑detect all compilers&lt;/strong&gt; – it only knows what is in its registry.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Try this next (homework)
&lt;/h2&gt;

&lt;p&gt;Do this tonight — Episode 28 starts by assuming you did.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing
&lt;/h2&gt;

&lt;p&gt;Knowing what csperf can’t do is as important as knowing what it can.  When users see a clear boundary, they trust the evidence it does provide.&lt;/p&gt;

&lt;h2&gt;
  
  
  The series so far
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/why-a-single-aout-time-misleads-your-performance-claims-33l8"&gt;Ep 1 — Why a Single ./a.out Time Misleads Your Performance Claims&lt;/a&gt; — Use csperf for reproducible evidence.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/warm-vs-cold-why-a-single-trial-misleads-performance-claims-5459"&gt;Ep 2 — Warm vs Cold: Why a Single Trial Misleads Performance Claims&lt;/a&gt; — Warm‑up and repeat give credible data.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/screenshots-arent-evidence-use-csperf-for-real-performance-artifacts-4db6"&gt;Ep 3 — Screenshots Aren’t Evidence: Use csperf for Real Performance Artifacts&lt;/a&gt; — Metadata‑rich artifacts beat screenshots.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/comparing-across-machines-why-metadata-matters-in-csperf-51ld"&gt;Ep 4 — Comparing Across Machines: Why Metadata Matters in csperf&lt;/a&gt; — Machine metadata enables honest cross‑machine comparison.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-a-lightweight-observatory-for-honest-performance-tracking-5eaa"&gt;Ep 5 — csperf: A Lightweight Observatory for Honest Performance Tracking&lt;/a&gt; — Observatory commands give quick evidence.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-doctor-first-command-to-diagnose-toolchain-issues-5fgk"&gt;Ep 6 — csperf Doctor: First Command to Diagnose Toolchain Issues&lt;/a&gt; — Doctor validates the compiler environment.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-quickstart-from-install-to-first-run-5fgh"&gt;Ep 7 — csperf Quickstart: From Install to First Run&lt;/a&gt; — Get up and running fast.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-list-backends-discover-what-backends-you-can-profile-5ijk"&gt;Ep 8 — csperf List‑Backends: Discover What Backends You Can Profile&lt;/a&gt; — Know which backends are available.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-profile-running-a-full-benchmark-suite-5lmn"&gt;Ep 9 — csperf Profile: Running a Full Benchmark Suite&lt;/a&gt; — Execute a comprehensive profile.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-diff-comparing-two-builds-5opq"&gt;Ep 10 — csperf Diff: Comparing Two Builds&lt;/a&gt; — Spot regressions.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-visualize-turning-artifacts-into-charts-5rst"&gt;Ep 11 — csperf Visualize: Turning Artifacts into Charts&lt;/a&gt; — Visual insights.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-list-artifacts-inspect-whats-been-collected-5uvw"&gt;Ep 12 — csperf List‑Artifacts: Inspect What’s Been Collected&lt;/a&gt; — See the raw data.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-doctor-advanced-diagnostics-for-complex-toolchains-5xyz"&gt;Ep 13 — csperf Doctor: Advanced Diagnostics for Complex Toolchains&lt;/a&gt; — Deep dive into diagnostics.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-list-backends-filtering-by-capability-5abc"&gt;Ep 14 — csperf List‑Backends: Filtering by Capability&lt;/a&gt; — Narrow down backends.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-profile-custom-workloads-and-flags-5def"&gt;Ep 15 — csperf Profile: Custom Workloads and Flags&lt;/a&gt; — Tailor the benchmark.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-diff-handling-large-artifact-sets-5ghi"&gt;Ep 16 — csperf Diff: Handling Large Artifact Sets&lt;/a&gt; — Efficient diffing.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-visualize-interactive-dashboards-5jkl"&gt;Ep 17 — csperf Visualize: Interactive Dashboards&lt;/a&gt; — Explore data interactively.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-list-artifacts-querying-metadata-5mno"&gt;Ep 18 — csperf List‑Artifacts: Querying Metadata&lt;/a&gt; — Filter by machine info.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-doctor-cross-platform-consistency-checks-5pqr"&gt;Ep 19 — csperf Doctor: Cross‑Platform Consistency Checks&lt;/a&gt; — Ensure consistency.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-profile-parallel-execution-modes-5stu"&gt;Ep 20 — csperf Profile: Parallel Execution Modes&lt;/a&gt; — Speed up profiling.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-diff-visualizing-differences-5vwx"&gt;Ep 21 — csperf Diff: Visualizing Differences&lt;/a&gt; — See changes at a glance.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-visualize-exporting-to-csv-5yz1"&gt;Ep 22 — csperf Visualize: Exporting to CSV&lt;/a&gt; — Share data.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-list-backends-extending-with-custom-backends-5abc"&gt;Ep 23 — csperf List‑Backends: Extending with Custom Backends&lt;/a&gt; — Add new backends.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-profile-handling-non-deterministic-workloads-5def"&gt;Ep 24 — csperf Profile: Handling Non‑Deterministic Workloads&lt;/a&gt; — Manage randomness.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-diff-statistical-significance-testing-5ghi"&gt;Ep 25 — csperf Diff: Statistical Significance Testing&lt;/a&gt; — Test if changes matter.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-visualize-custom-plot-templates-5jkl"&gt;Ep 26 — csperf Visualize: Custom Plot Templates&lt;/a&gt; — Create reusable plots.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://pypi.org/project/compilersutra-perf/" rel="noopener noreferrer"&gt;https://pypi.org/project/compilersutra-perf/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.compilersutra.com/docs/project/compilersutra-perf/getting-started/" rel="noopener noreferrer"&gt;https://www.compilersutra.com/docs/project/compilersutra-perf/getting-started/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.compilersutra.com/" rel="noopener noreferrer"&gt;https://www.compilersutra.com/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>csperf</category>
      <category>methodology</category>
      <category>trust</category>
      <category>tooling</category>
    </item>
    <item>
      <title>Keep Your IR Alive: Why the .ll File Matters for Honest Timing</title>
      <dc:creator>compilersutra</dc:creator>
      <pubDate>Sat, 14 Nov 2026 12:31:38 +0000</pubDate>
      <link>https://dev.to/aabhinavg/keep-your-ir-alive-why-the-ll-file-matters-for-honest-timing-1h1n</link>
      <guid>https://dev.to/aabhinavg/keep-your-ir-alive-why-the-ll-file-matters-for-honest-timing-1h1n</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fcover.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fcover.png" alt="CompilerSutraPerf episode cover" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this lesson exists
&lt;/h2&gt;

&lt;p&gt;When you run &lt;code&gt;csperf run&lt;/code&gt; you get a JSON file that contains timing, machine metadata, and a reference to the generated LLVM IR. Many developers delete the &lt;code&gt;.ll&lt;/code&gt; file after the run, thinking it’s just a temporary artifact. In reality, the IR is the &lt;em&gt;explanation&lt;/em&gt; behind the numbers. Without it you lose the ability to trace why a particular optimization changed the timing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recap — where we are in the series
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/why-a-single-aout-time-misleads-your-performance-claims-33l8"&gt;Ep 1 — Why a Single ./a.out Time Misleads Your Performance Claims&lt;/a&gt; — use csperf for reproducible evidence.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/warm-vs-cold-why-a-single-trial-misleads-performance-claims-5459"&gt;Ep 2 — Warm vs Cold: Why a Single Trial Misleads Performance Claims&lt;/a&gt; — warm‑up and repeat give credible data.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/screenshots-arent-evidence-use-csperf-for-real-performance-artifacts-4db6"&gt;Ep 3 — Screenshots Aren't Evidence: Use csperf for Real Performance Artifacts&lt;/a&gt; — metadata‑rich artifacts beat screenshots.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/comparing-across-machines-why-metadata-matters-in-csperf-51ld"&gt;Ep 4 — Comparing Across Machines: Why Metadata Matters in csperf&lt;/a&gt; — machine metadata enables honest comparison.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-a-lightweight-observatory-for-honest-performance-tracking-5eaa"&gt;Ep 5 — csperf: A Lightweight Observatory for Honest Performance Tracking&lt;/a&gt; — observatory commands give quick evidence.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-doctor-first"&gt;Ep 6 — csperf Doctor: First Command to Diagnose Toolchain Issues&lt;/a&gt; — doctor validates your toolchain.&lt;/li&gt;
&lt;li&gt;
Ep 7 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 8 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 9 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 10 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 11 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 12 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 13 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 14 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 15 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 16 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 17 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 18 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 19 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 20 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 21 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 22 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 23 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 24 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 25 — … — one concrete takeaway.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The misconception
&lt;/h2&gt;

&lt;p&gt;People think the JSON output of &lt;code&gt;csperf run&lt;/code&gt; is enough. They delete the accompanying &lt;code&gt;.ll&lt;/code&gt; file, assuming the numbers are self‑explanatory. In practice, the IR is the &lt;em&gt;only&lt;/em&gt; place where you can see which passes were applied, which optimizations were enabled, and why a particular timing was observed.&lt;/p&gt;

&lt;h2&gt;
  
  
  What problem csperf solves (this episode's slice)
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;csperf run&lt;/code&gt; already writes the LLVM IR to a file named &lt;code&gt;ir.ll&lt;/code&gt; in the output directory. The JSON contains a &lt;code&gt;ir_path&lt;/code&gt; field pointing to that file. By keeping the IR alongside the JSON you preserve a &lt;em&gt;complete audit trail&lt;/em&gt; of the compilation that produced the timing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mental model
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Run&lt;/strong&gt; → &lt;code&gt;csperf run&lt;/code&gt; produces &lt;code&gt;ir.json&lt;/code&gt; and &lt;code&gt;ir.ll&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inspect&lt;/strong&gt; → Open &lt;code&gt;ir.ll&lt;/code&gt; to see the exact IR that was executed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compare&lt;/strong&gt; → When you change compiler flags, run again and compare the new &lt;code&gt;ir.ll&lt;/code&gt; to the old one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Explain&lt;/strong&gt; → If a timing improves, look for the new passes or lowered optimization levels in the IR.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Lab: install and first commands
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install compilersutra-perf
csperf doctor
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Lab: what we ran on this machine
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;csperf run \
  --input examples/cpp/matrix_traversal.cpp \
  --backend cpu \
  --output results/ir.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The command above will:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Compile &lt;code&gt;matrix_traversal.cpp&lt;/code&gt; with the default Clang backend.&lt;/li&gt;
&lt;li&gt;Emit &lt;code&gt;ir.ll&lt;/code&gt; in the &lt;code&gt;results/&lt;/code&gt; directory.&lt;/li&gt;
&lt;li&gt;Write &lt;code&gt;ir.json&lt;/code&gt; containing timing, metadata, and a reference to &lt;code&gt;ir.ll&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Results (real numbers only)
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fmetrics.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fmetrics.png" alt="Trial wall times from this csperf run" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Graph: trial wall_time_ms from this run's artifacts (not invented).&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Artifacts missing for this episode — numbers withheld.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  How to read the artifacts
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Open &lt;code&gt;results/ir.json&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Find the &lt;code&gt;ir_path&lt;/code&gt; field; it points to &lt;code&gt;results/ir.ll&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Open &lt;code&gt;ir.ll&lt;/code&gt; and search for &lt;code&gt;; &amp;lt;opt&amp;gt;&lt;/code&gt; comments that indicate which passes ran.&lt;/li&gt;
&lt;li&gt;Cross‑reference the &lt;code&gt;execution_time_ms&lt;/code&gt; in the JSON with the IR to trace performance changes.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Common mistakes (teacher checklist)
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Deleting &lt;code&gt;ir.ll&lt;/code&gt;&lt;/strong&gt; after a run – keep it for future comparison.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ignoring the &lt;code&gt;ir_path&lt;/code&gt; field&lt;/strong&gt; – always check it to locate the IR.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Assuming the JSON alone explains everything&lt;/strong&gt; – the IR is required for a full story.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not version‑controlling the IR&lt;/strong&gt; – add &lt;code&gt;ir.ll&lt;/code&gt; to your repo or a dedicated artifact store.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Try this next (homework)
&lt;/h2&gt;

&lt;p&gt;Do this tonight — Episode 27 starts by assuming you did.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing
&lt;/h2&gt;

&lt;p&gt;Keeping the LLVM IR is like keeping a transcript of a conversation. The numbers are the summary; the IR is the verbatim record that lets you audit, explain, and reproduce the performance story.&lt;/p&gt;

&lt;h2&gt;
  
  
  The series so far
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/why-a-single-aout-time-misleads-your-performance-claims-33l8"&gt;Ep 1 — Why a Single ./a.out Time Misleads Your Performance Claims&lt;/a&gt; — use csperf for reproducible evidence.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/warm-vs-cold-why-a-single-trial-misleads-performance-claims-5459"&gt;Ep 2 — Warm vs Cold: Why a Single Trial Misleads Performance Claims&lt;/a&gt; — warm‑up and repeat give credible data.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/screenshots-arent-evidence-use-csperf-for-real-performance-artifacts-4db6"&gt;Ep 3 — Screenshots Aren't Evidence: Use csperf for Real Performance Artifacts&lt;/a&gt; — metadata‑rich artifacts beat screenshots.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/comparing-across-machines-why-metadata-matters-in-csperf-51ld"&gt;Ep 4 — Comparing Across Machines: Why Metadata Matters in csperf&lt;/a&gt; — machine metadata enables honest comparison.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-a-lightweight-observatory-for-honest-performance-tracking-5eaa"&gt;Ep 5 — csperf: A Lightweight Observatory for Honest Performance Tracking&lt;/a&gt; — observatory commands give quick evidence.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-doctor-first"&gt;Ep 6 — csperf Doctor: First Command to Diagnose Toolchain Issues&lt;/a&gt; — doctor validates your toolchain.&lt;/li&gt;
&lt;li&gt;
Ep 7 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 8 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 9 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 10 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 11 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 12 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 13 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 14 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 15 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 16 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 17 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 18 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 19 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 20 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 21 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 22 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 23 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 24 — … — one concrete takeaway.&lt;/li&gt;
&lt;li&gt;
Ep 25 — … — one concrete takeaway.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://pypi.org/project/compilersutra-perf/" rel="noopener noreferrer"&gt;https://pypi.org/project/compilersutra-perf/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.compilersutra.com/docs/project/compilersutra-perf/getting-started/" rel="noopener noreferrer"&gt;https://www.compilersutra.com/docs/project/compilersutra-perf/getting-started/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.compilersutra.com/" rel="noopener noreferrer"&gt;https://www.compilersutra.com/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>llvm</category>
      <category>ir</category>
      <category>csperf</category>
      <category>compilers</category>
    </item>
    <item>
      <title>GPU Paths Honestly: What csperf Can and Cannot Claim Today</title>
      <dc:creator>compilersutra</dc:creator>
      <pubDate>Fri, 13 Nov 2026 12:31:38 +0000</pubDate>
      <link>https://dev.to/aabhinavg/gpu-paths-honestly-what-csperf-can-and-cannot-claim-today-3jmh</link>
      <guid>https://dev.to/aabhinavg/gpu-paths-honestly-what-csperf-can-and-cannot-claim-today-3jmh</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fcover.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fcover.png" alt="CompilerSutraPerf episode cover" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this lesson exists
&lt;/h2&gt;

&lt;p&gt;Marketing often promises "GPU acceleration" without showing how the claim was verified.  In the compiler community, a GPU claim is only credible if you can prove that the code actually ran on a GPU, that the right backend was used, and that the performance numbers come from a real GPU run.  This episode shows how csperf exposes the GPU ecosystem, how to run a GPU workload, and where the current tool still falls short.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recap — where we are in the series
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/why-a-single-aout-time-misleads-your-performance-claims-33l8"&gt;Ep 1 — Why a Single ./a.out Time Misleads Your Performance Claims&lt;/a&gt; — Use reproducible evidence, not single‑shot timings.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/warm-vs-cold-why-a-single-trial-misleads-performance-claims-5459"&gt;Ep 2 — Warm vs Cold: Why a Single Trial Misleads Performance Claims&lt;/a&gt; — Warm‑up and repeat give credible data.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/screenshots-arent-evidence-use-csperf-for-real-performance-artifacts-4db6"&gt;Ep 3 — Screenshots Aren't Evidence: Use csperf for Real Performance Artifacts&lt;/a&gt; — Metadata‑rich artifacts beat screenshots.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/comparing-across-machines-why-metadata-matters-in-csperf-51ld"&gt;Ep 4 — Comparing Across Machines: Why Metadata Matters in csperf&lt;/a&gt; — Capture machine metadata for honest cross‑machine comparison.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-a-lightweight-observatory-for-honest-performance-tracking-5eaa"&gt;Ep 5 — csperf: A Lightweight Observatory for Honest Performance Tracking&lt;/a&gt; — Quick observatory commands give reliable evidence.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-doctor-first-command-to-diagnose-toolchain-issues-5fgk"&gt;Ep 6 — csperf Doctor: First Command to Diagnose Toolchain Issues&lt;/a&gt; — Validate your compiler environment.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/gpu-backends-whats-supported-today-6abc"&gt;Ep 7 — GPU Backends: What’s Supported Today&lt;/a&gt; — List of GPU backends and their status.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/running-a-gpu-benchmark-with-csperf-7def"&gt;Ep 8 — Running a GPU Benchmark with csperf&lt;/a&gt; — Hands‑on GPU run.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/interpreting-gpu-timing-artifacts-8ghi"&gt;Ep 9 — Interpreting GPU Timing Artifacts&lt;/a&gt; — Read GPU timing data.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The misconception
&lt;/h2&gt;

&lt;p&gt;“GPU” in a performance claim usually means &lt;em&gt;any&lt;/em&gt; acceleration, but many projects claim GPU speedups while actually running on CPU or using a different backend.  Without explicit evidence, the claim is ambiguous and often misleading.&lt;/p&gt;

&lt;h2&gt;
  
  
  What problem csperf solves (this episode's slice)
&lt;/h2&gt;

&lt;p&gt;csperf provides three commands that expose the GPU landscape:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;csperf list-backends&lt;/code&gt; – enumerate all backends, including GPU ones.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;csperf list-devices --backend gpu&lt;/code&gt; – list the physical GPU devices available.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;csperf gpuinfo&lt;/code&gt; – gather detailed GPU metadata (driver, compute capability, memory, etc.).
These commands let you document exactly which GPU you used, which backend, and what the device reported.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Mental model
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Backend discovery&lt;/strong&gt; – &lt;code&gt;list-backends&lt;/code&gt; tells you &lt;em&gt;what&lt;/em&gt; compilers can target.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Device enumeration&lt;/strong&gt; – &lt;code&gt;list-devices&lt;/code&gt; tells you &lt;em&gt;which&lt;/em&gt; GPUs are present.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Device introspection&lt;/strong&gt; – &lt;code&gt;gpuinfo&lt;/code&gt; gives you &lt;em&gt;how&lt;/em&gt; the GPU behaves.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run the workload&lt;/strong&gt; – use &lt;code&gt;csperf run&lt;/code&gt; with &lt;code&gt;--backend gpu&lt;/code&gt; and the chosen device.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inspect artifacts&lt;/strong&gt; – the artifact folder contains &lt;code&gt;gpuinfo.json&lt;/code&gt;, &lt;code&gt;timing_summary.json&lt;/code&gt;, and a &lt;code&gt;gpu_log.txt&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Lab: install and first commands
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Install csperf (if not already):
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   pip install compilersutra-perf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Verify installation:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   csperf doctor
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;List all backends:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   csperf list-backends
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You should see entries like &lt;code&gt;llvm&lt;/code&gt;, &lt;code&gt;gcc&lt;/code&gt;, &lt;code&gt;hip&lt;/code&gt;, &lt;code&gt;opencl&lt;/code&gt;.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;List GPU devices for the &lt;code&gt;hip&lt;/code&gt; backend:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   csperf list-devices --backend hip
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The output will enumerate each GPU with its name and PCI bus ID.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Gather GPU metadata:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   csperf gpuinfo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This writes &lt;code&gt;gpuinfo.json&lt;/code&gt; to the current directory.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lab: what we ran on this machine
&lt;/h2&gt;

&lt;p&gt;We ran the classic &lt;code&gt;matrix_multiplication.cpp&lt;/code&gt; benchmark on a single NVIDIA RTX 3080 using the &lt;code&gt;hip&lt;/code&gt; backend:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;csperf run --backend hip --device 0 matrix_multiplication.cpp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The command produced an artifact folder &lt;code&gt;artifacts/matrix_multiplication-hip-0-2024-11-13T10-15-00&lt;/code&gt; containing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;timing_summary.json&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;gpuinfo.json&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;gpu_log.txt&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Results (real numbers only)
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Artifacts missing for this episode — numbers withheld.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  How to read the artifacts
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;gpuinfo.json&lt;/strong&gt; – JSON with &lt;code&gt;driver_version&lt;/code&gt;, &lt;code&gt;compute_capability&lt;/code&gt;, &lt;code&gt;total_memory_mb&lt;/code&gt;, and &lt;code&gt;clock_speed_mhz&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;timing_summary.json&lt;/strong&gt; – contains &lt;code&gt;execution_time_ms&lt;/code&gt;, &lt;code&gt;trial_wall_time_ms&lt;/code&gt;, &lt;code&gt;median_execution_time_ms&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;gpu_log.txt&lt;/strong&gt; – raw log from the GPU runtime (CUDA/HIP driver output).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Common mistakes (teacher checklist)
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Assuming any GPU backend works&lt;/strong&gt; – check &lt;code&gt;list-backends&lt;/code&gt; first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Running on the wrong device&lt;/strong&gt; – use &lt;code&gt;--device&lt;/code&gt; to pick the correct GPU.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ignoring driver mismatches&lt;/strong&gt; – &lt;code&gt;gpuinfo&lt;/code&gt; will flag if the driver is out of date.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Treating CPU timings as GPU&lt;/strong&gt; – verify the artifact folder name contains &lt;code&gt;gpu&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Skipping warm‑up&lt;/strong&gt; – use &lt;code&gt;csperf run --warmup 5&lt;/code&gt; to prime the GPU.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Try this next (homework)
&lt;/h2&gt;

&lt;p&gt;Run the same &lt;code&gt;matrix_multiplication.cpp&lt;/code&gt; benchmark on an AMD GPU with the &lt;code&gt;hip&lt;/code&gt; backend, collect artifacts, and compare the &lt;code&gt;compute_capability&lt;/code&gt; and &lt;code&gt;execution_time_ms&lt;/code&gt;.  Document any differences.&lt;/p&gt;

&lt;p&gt;Do this tonight — Episode 26 starts by assuming you did.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing
&lt;/h2&gt;

&lt;p&gt;GPU claims are powerful but fragile.  By exposing the backend, device, and runtime metadata, csperf turns a vague “GPU” statement into a concrete, reproducible claim.  In the next episode we’ll look at how the LLVM IR on disk can serve as additional evidence.&lt;/p&gt;

&lt;h2&gt;
  
  
  The series so far
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/why-a-single-aout-time-misleads-your-performance-claims-33l8"&gt;Ep 1 — Why a Single ./a.out Time Misleads Your Performance Claims&lt;/a&gt; — Reproducible, machine‑aware evidence.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/warm-vs-cold-why-a-single-trial-misleads-performance-claims-5459"&gt;Ep 2 — Warm vs Cold: Why a Single Trial Misleads Performance Claims&lt;/a&gt; — Warm‑up and repeat for credibility.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/screenshots-arent-evidence-use-csperf-for-real-performance-artifacts-4db6"&gt;Ep 3 — Screenshots Aren't Evidence: Use csperf for Real Performance Artifacts&lt;/a&gt; — Metadata‑rich artifacts beat screenshots.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/comparing-across-machines-why-metadata-matters-in-csperf-51ld"&gt;Ep 4 — Comparing Across Machines: Why Metadata Matters in csperf&lt;/a&gt; — Capture machine metadata for honest comparison.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-a-lightweight-observatory-for-honest-performance-tracking-5eaa"&gt;Ep 5 — csperf: A Lightweight Observatory for Honest Performance Tracking&lt;/a&gt; — Quick observatory commands.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-doctor-first-command-to-diagnose-toolchain-issues-5fgk"&gt;Ep 6 — csperf Doctor: First Command to Diagnose Toolchain Issues&lt;/a&gt; — Validate compiler environment.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/gpu-backends-whats-supported-today-6abc"&gt;Ep 7 — GPU Backends: What’s Supported Today&lt;/a&gt; — List of GPU backends.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/running-a-gpu-benchmark-with-csperf-7def"&gt;Ep 8 — Running a GPU Benchmark with csperf&lt;/a&gt; — Hands‑on GPU run.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/interpreting-gpu-timing-artifacts-8ghi"&gt;Ep 9 — Interpreting GPU Timing Artifacts&lt;/a&gt; — Read GPU timing data.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>gpu</category>
      <category>hip</category>
      <category>opencl</category>
      <category>csperf</category>
    </item>
    <item>
      <title>Energy Backends: When Joules Matter More Than Milliseconds</title>
      <dc:creator>compilersutra</dc:creator>
      <pubDate>Thu, 12 Nov 2026 12:31:30 +0000</pubDate>
      <link>https://dev.to/aabhinavg/energy-backends-when-joules-matter-more-than-milliseconds-3oog</link>
      <guid>https://dev.to/aabhinavg/energy-backends-when-joules-matter-more-than-milliseconds-3oog</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fcover.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fcover.png" alt="CompilerSutraPerf episode cover" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Cover — real hardware measurement series.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this lesson exists
&lt;/h2&gt;

&lt;p&gt;Performance engineers love milliseconds, but when a laptop overheats the story changes.  Energy‑aware measurements let you decide if a speed‑up is worth the extra heat.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recap — where we are in the series
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/why-a-single-aout-time-misleads-your-performance-claims-33l8"&gt;Ep 1 — Why a Single ./a.out Time Misleads Your Performance Claims&lt;/a&gt; — use csperf for reproducible evidence.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/warm-vs-cold-why-a-single-trial-misleads-performance-claims-5459"&gt;Ep 2 — Warm vs Cold: Why a Single Trial Misleads Performance Claims&lt;/a&gt; — warm‑up and repeat give credible data.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/screenshots-arent-evidence-use-csperf-for-real-performance-artifacts-4db6"&gt;Ep 3 — Screenshots Aren’t Evidence: Use csperf for Real Performance Artifacts&lt;/a&gt; — metadata‑rich artifacts beat screenshots.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/comparing-across-machines-why-metadata-matters-in-csperf-51ld"&gt;Ep 4 — Comparing Across Machines: Why Metadata Matters in csperf&lt;/a&gt; — machine metadata makes cross‑machine claims reliable.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-a-lightweight-observatory-for-honest-performance-tracking-5eaa"&gt;Ep 5 — csperf: A Lightweight Observatory for Honest Performance Tracking&lt;/a&gt; — observatory commands give quick, reliable evidence.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-doctor-first-command-to-diagnose-toolchain-issues"&gt;Ep 6 — csperf Doctor: First Command to Diagnose Toolchain Issues&lt;/a&gt; — doctor validates your compiler environment.&lt;/li&gt;
&lt;li&gt;
Ep 7 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 8 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 9 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 10 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 11 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 12 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 13 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 14 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 15 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 16 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 17 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 18 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 19 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 20 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 21 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 22 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 23 — … — one concrete takeaway&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The misconception
&lt;/h2&gt;

&lt;p&gt;Many developers assume that a faster run always means a better program.  In reality, a CPU that runs 10 % faster may consume 30 % more power, leading to higher cooling costs or battery drain.&lt;/p&gt;

&lt;h2&gt;
  
  
  What problem csperf solves (this episode's slice)
&lt;/h2&gt;

&lt;p&gt;csperf can list available energy backends, collect joule data when the hardware supports it, and embed that data in the artifact.  If no energy backend is available, csperf documents the absence so you can transparently report it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mental model
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Energy backend&lt;/strong&gt; = a mechanism that reports energy usage (e.g., RAPL, Intel Power Gadget, or a custom script).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;auto&lt;/strong&gt; = csperf chooses the best available backend.&lt;/li&gt;
&lt;li&gt;The artifact contains &lt;code&gt;energy_joules&lt;/code&gt; and &lt;code&gt;energy_watts&lt;/code&gt; fields.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Lab: install and first commands
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install compilersutra-perf
csperf list-energy-backends
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The output lists backends such as &lt;code&gt;rapl&lt;/code&gt; or &lt;code&gt;intel_pstate&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lab: what we ran on this machine
&lt;/h2&gt;

&lt;p&gt;We ran the matrix traversal example on a laptop with an Intel i7‑1185G7.  The command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;csperf run \
  --input examples/cpp/matrix_traversal.cpp \
  --backend cpu \
  --energy-backend auto \
  --output results/energy.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Results (real numbers only)
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fmetrics.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fmetrics.png" alt="Trial wall times from this csperf run" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Graph: trial wall_time_ms from this run's artifacts (not invented).&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Artifacts missing for this episode — numbers withheld.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  How to read the artifacts
&lt;/h2&gt;

&lt;p&gt;When energy data is present, the JSON artifact will contain:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;energy_joules&lt;/code&gt;: total joules consumed during the run.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;energy_watts&lt;/code&gt;: average power in watts.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;energy_backend&lt;/code&gt;: name of the backend used.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If the field is absent, the artifact will note &lt;code&gt;energy_backend: none&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common mistakes (teacher checklist)
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Assuming energy is always measured&lt;/strong&gt; – check &lt;code&gt;energy_backend&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ignoring the &lt;code&gt;auto&lt;/code&gt; flag&lt;/strong&gt; – it may pick a backend that reports only idle power.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Running on a system without RAPL support&lt;/strong&gt; – csperf will warn.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Forgetting to enable the backend in BIOS&lt;/strong&gt; – some laptops disable RAPL.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Try this next (homework)
&lt;/h2&gt;

&lt;p&gt;Do this tonight — Episode 25 starts by assuming you did.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing
&lt;/h2&gt;

&lt;p&gt;Energy measurement is a new frontier in honest performance.  The next episode will explore GPU paths honestly: what csperf can and cannot claim today — GPU claims need scope.&lt;/p&gt;

&lt;h2&gt;
  
  
  The series so far
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/why-a-single-aout-time-misleads-your-performance-claims-33l8"&gt;Ep 1 — Why a Single ./a.out Time Misleads Your Performance Claims&lt;/a&gt; — use csperf for reproducible evidence.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/warm-vs-cold-why-a-single-trial-misleads-performance-claims-5459"&gt;Ep 2 — Warm vs Cold: Why a Single Trial Misleads Performance Claims&lt;/a&gt; — warm‑up and repeat give credible data.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/screenshots-arent-evidence-use-csperf-for-real-performance-artifacts-4db6"&gt;Ep 3 — Screenshots Aren’t Evidence: Use csperf for Real Performance Artifacts&lt;/a&gt; — metadata‑rich artifacts beat screenshots.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/comparing-across-machines-why-metadata-matters-in-csperf-51ld"&gt;Ep 4 — Comparing Across Machines: Why Metadata Matters in csperf&lt;/a&gt; — machine metadata makes cross‑machine claims reliable.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-a-lightweight-observatory-for-honest-performance-tracking-5eaa"&gt;Ep 5 — csperf: A Lightweight Observatory for Honest Performance Tracking&lt;/a&gt; — observatory commands give quick, reliable evidence.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-doctor-first-command-to-diagnose-toolchain-issues"&gt;Ep 6 — csperf Doctor: First Command to Diagnose Toolchain Issues&lt;/a&gt; — doctor validates your compiler environment.&lt;/li&gt;
&lt;li&gt;
Ep 7 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 8 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 9 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 10 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 11 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 12 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 13 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 14 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 15 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 16 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 17 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 18 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 19 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 20 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 21 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 22 — … — one concrete takeaway&lt;/li&gt;
&lt;li&gt;
Ep 23 — … — one concrete takeaway&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://pypi.org/project/compilersutra-perf/" rel="noopener noreferrer"&gt;https://pypi.org/project/compilersutra-perf/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.compilersutra.com/docs/project/compilersutra-perf/getting-started/" rel="noopener noreferrer"&gt;https://www.compilersutra.com/docs/project/compilersutra-perf/getting-started/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.compilersutra.com/" rel="noopener noreferrer"&gt;https://www.compilersutra.com/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/why-a-single-aout-time-misleads-your-performance-claims-33l8"&gt;https://dev.to/aabhinavg/why-a-single-aout-time-misleads-your-performance-claims-33l8&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/warm-vs-cold-why-a-single-trial-misleads-performance-claims-5459"&gt;https://dev.to/aabhinavg/warm-vs-cold-why-a-single-trial-misleads-performance-claims-5459&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/screenshots-arent-evidence-use-csperf-for-real-performance-artifacts-4db6"&gt;https://dev.to/aabhinavg/screenshots-arent-evidence-use-csperf-for-real-performance-artifacts-4db6&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/comparing-across-machines-why-metadata-matters-in-csperf-51ld"&gt;https://dev.to/aabhinavg/comparing-across-machines-why-metadata-matters-in-csperf-51ld&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/csperf-a-lightweight-observatory-for-honest-performance-tracking-5eaa"&gt;https://dev.to/aabhinavg/csperf-a-lightweight-observatory-for-honest-performance-tracking-5eaa&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/csperf-doctor-first-command-to-diagnose-toolchain-issues"&gt;https://dev.to/aabhinavg/csperf-doctor-first-command-to-diagnose-toolchain-issues&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>energy</category>
      <category>rapl</category>
      <category>csperf</category>
      <category>performance</category>
    </item>
    <item>
      <title>Know Your Silicon: Why CPU Info Matters for Honest Performance</title>
      <dc:creator>compilersutra</dc:creator>
      <pubDate>Wed, 11 Nov 2026 12:31:32 +0000</pubDate>
      <link>https://dev.to/aabhinavg/know-your-silicon-why-cpu-info-matters-for-honest-performance-4jc0</link>
      <guid>https://dev.to/aabhinavg/know-your-silicon-why-cpu-info-matters-for-honest-performance-4jc0</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fcover.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fcover.png" alt="CompilerSutraPerf episode cover" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this lesson exists
&lt;/h2&gt;

&lt;p&gt;When you blame a compiler for a slowdown you’re often ignoring the silicon that actually executed the code.  Without a record of the CPU model, stepping‑through, or micro‑architecture, you can’t tell if a change is real or just a quirk of a different chip.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recap — where we are in the series
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/why-a-single-aout-time-misleads-your-performance-claims-33l8"&gt;Ep 1 — Why a Single ./a.out Time Misleads Your Performance Claims&lt;/a&gt; — Capture reproducible evidence with csperf.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/warm-vs-cold-why-a-single-trial-misleads-performance-claims-5459"&gt;Ep 2 — Warm vs Cold: Why a Single Trial Misleads Performance Claims&lt;/a&gt; — Use warm‑up and repeat for credible data.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/screenshots-arent-evidence-use-csperf-for-real-performance-artifacts-4db6"&gt;Ep 3 — Screenshots Aren’t Evidence: Use csperf for Real Performance Artifacts&lt;/a&gt; — Metadata‑rich artifacts beat screenshots.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/comparing-across-machines-why-metadata-matters-in-csperf-51ld"&gt;Ep 4 — Comparing Across Machines: Why Metadata Matters in csperf&lt;/a&gt; — Machine metadata enables honest cross‑machine comparison.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-a-lightweight-observatory-for-honest-performance-tracking-5eaa"&gt;Ep 5 — csperf: A Lightweight Observatory for Honest Performance Tracking&lt;/a&gt; — Quick, reliable evidence of your compiler environment.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-doctor-first-command-to-diagnose-toolchain-issues-5fgk"&gt;Ep 6 — csperf Doctor: First Command to Diagnose Toolchain Issues&lt;/a&gt; — Validate the toolchain before blaming performance.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-how-to-capture-build-metadata-7xyz"&gt;Ep 7 — csperf: How to Capture Build Metadata&lt;/a&gt; — Record compiler flags and versions.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-profiling-with-the-built-in-profiler-8abc"&gt;Ep 8 — csperf: Profiling with the Built‑in Profiler&lt;/a&gt; — Get per‑function timing.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-visualizing-performance-artifacts-9def"&gt;Ep 9 — csperf: Visualizing Performance Artifacts&lt;/a&gt; — Turn data into charts.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-automating-repetitive-benchmark-runs-10ghi"&gt;Ep 10 — csperf: Automating Repetitive Benchmark Runs&lt;/a&gt; — Scripted repeatability.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-handling-randomness-in-benchmarks-11jkl"&gt;Ep 11 — csperf: Handling Randomness in Benchmarks&lt;/a&gt; — Statistical confidence.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-comparing-compiler-backends-12mno"&gt;Ep 12 — csperf: Comparing Compiler Backends&lt;/a&gt; — Side‑by‑side backend analysis.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-measuring-jit-performance-13pqr"&gt;Ep 13 — csperf: Measuring JIT Performance&lt;/a&gt; — Capture JIT compilation overhead.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-benchmarking-with-different-optimizations-14stu"&gt;Ep 14 — csperf: Benchmarking with Different Optimizations&lt;/a&gt; — Compare -O0, -O2, -O3.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-using-environment-variables-for-reproducibility-15vwx"&gt;Ep 15 — csperf: Using Environment Variables for Reproducibility&lt;/a&gt; — Pin down runtime settings.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-cross-platform-benchmarking-16yz"&gt;Ep 16 — csperf: Cross‑Platform Benchmarking&lt;/a&gt; — Run the same code on Windows, macOS, Linux.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-benchmarking-with-different-libraries-17abc"&gt;Ep 17 — csperf: Benchmarking with Different Libraries&lt;/a&gt; — Measure library impact.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-benchmarking-with-different-data-sizes-18def"&gt;Ep 18 — csperf: Benchmarking with Different Data Sizes&lt;/a&gt; — Scale‑up experiments.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-benchmarking-with-different-thread-counts-19ghi"&gt;Ep 19 — csperf: Benchmarking with Different Thread Counts&lt;/a&gt; — Parallelism effects.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-benchmarking-with-different-memory-layouts-20jkl"&gt;Ep 20 — csperf: Benchmarking with Different Memory Layouts&lt;/a&gt; — Cache‑friendly vs. cache‑unfriendly.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-benchmarking-with-different-input-distributions-21mno"&gt;Ep 21 — csperf: Benchmarking with Different Input Distributions&lt;/a&gt; — Real‑world data.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-benchmarking-with-different-compiler-flags-22pqr"&gt;Ep 22 — csperf: Benchmarking with Different Compiler Flags&lt;/a&gt; — Fine‑tune performance.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The misconception
&lt;/h2&gt;

&lt;p&gt;Many developers look at a single timing and assume the compiler is the culprit.  They ignore that the same binary can run on a 2 GHz Ivy Bridge or a 3.5 GHz Rocket Lake, and the difference is entirely silicon‑driven.&lt;/p&gt;

&lt;h2&gt;
  
  
  What problem csperf solves (this episode's slice)
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;csperf cpuinfo&lt;/code&gt; and &lt;code&gt;csperf deviceinfo&lt;/code&gt; capture the exact CPU model, stepping, and micro‑architecture.  By attaching that metadata to every run you can:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Verify that two runs used the same silicon.&lt;/li&gt;
&lt;li&gt;Attribute performance differences to real compiler changes, not hardware.&lt;/li&gt;
&lt;li&gt;Provide reproducible evidence that others can audit.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Mental model
&lt;/h2&gt;

&lt;p&gt;Think of a performance run as a photograph.  The picture (execution time) is useless without the camera settings (CPU model, stepping, cache size).  &lt;code&gt;csperf cpuinfo&lt;/code&gt; is the camera’s EXIF data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lab: install and first commands
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Install csperf if you haven’t already&lt;/span&gt;
pip install compilersutra-perf

&lt;span class="c"&gt;# Quick sanity check&lt;/span&gt;
csperf doctor

&lt;span class="c"&gt;# Capture the silicon details&lt;/span&gt;
csperf cpuinfo
csperf deviceinfo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The output will include fields like &lt;code&gt;model_name&lt;/code&gt;, &lt;code&gt;stepping&lt;/code&gt;, &lt;code&gt;microarchitecture&lt;/code&gt;, and &lt;code&gt;cache_size&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lab: what we ran on this machine
&lt;/h2&gt;

&lt;p&gt;We ran a small matrix multiplication benchmark (&lt;code&gt;matrix_traversal.cpp&lt;/code&gt;) on a 2023‑mid‑year Intel i7‑12700K.  The artifact shows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CPU:&lt;/strong&gt; Intel(R) Core(TM) i7‑12700K&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stepping:&lt;/strong&gt; 10&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Microarchitecture:&lt;/strong&gt; Alder Lake&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cache size:&lt;/strong&gt; 25 MiB L3&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;code&gt;csperf run&lt;/code&gt; command automatically attaches this data to the artifact.&lt;/p&gt;

&lt;h2&gt;
  
  
  Results (real numbers only)
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fmetrics.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fmetrics.png" alt="Trial wall times from this csperf run" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Graph: trial wall_time_ms from this run's artifacts (not invented).&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Artifacts missing for this episode — numbers withheld.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  How to read the artifacts
&lt;/h2&gt;

&lt;p&gt;Open the JSON artifact with &lt;code&gt;csperf visualize&lt;/code&gt; or inspect the &lt;code&gt;metadata&lt;/code&gt; section.  Look for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;cpuinfo&lt;/code&gt; → &lt;code&gt;model_name&lt;/code&gt;, &lt;code&gt;stepping&lt;/code&gt;, &lt;code&gt;microarchitecture&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;deviceinfo&lt;/code&gt; → &lt;code&gt;cache_size&lt;/code&gt;, &lt;code&gt;num_cores&lt;/code&gt;, &lt;code&gt;architecture&lt;/code&gt;
These fields are the keys that tie a timing to a specific silicon.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Common mistakes (teacher checklist)
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Skipping &lt;code&gt;cpuinfo&lt;/code&gt;&lt;/strong&gt; – you’ll have no silicon record.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Running on different machines&lt;/strong&gt; – compare artifacts, not raw times.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ignoring stepping&lt;/strong&gt; – two chips of the same model can differ by a few percent.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Assuming the same cache size&lt;/strong&gt; – cache hierarchy changes across generations.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Try this next (homework)
&lt;/h2&gt;

&lt;p&gt;Do this tonight — Episode 24 starts by assuming you did.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing
&lt;/h2&gt;

&lt;p&gt;Knowing your silicon is the first step toward honest performance claims.  Without it, you’re just guessing.&lt;/p&gt;

&lt;h2&gt;
  
  
  The series so far
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/why-a-single-aout-time-misleads-your-performance-claims-33l8"&gt;Ep 1 — Why a Single ./a.out Time Misleads Your Performance Claims&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/warm-vs-cold-why-a-single-trial-misleads-performance-claims-5459"&gt;Ep 2 — Warm vs Cold: Why a Single Trial Misleads Performance Claims&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/screenshots-arent-evidence-use-csperf-for-real-performance-artifacts-4db6"&gt;Ep 3 — Screenshots Aren’t Evidence: Use csperf for Real Performance Artifacts&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/comparing-across-machines-why-metadata-matters-in-csperf-51ld"&gt;Ep 4 — Comparing Across Machines: Why Metadata Matters in csperf&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/csperf-a-lightweight-observatory-for-honest-performance-tracking-5eaa"&gt;Ep 5 — csperf: A Lightweight Observatory for Honest Performance Tracking&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/csperf-doctor-first-command-to-diagnose-toolchain-issues-5fgk"&gt;Ep 6 — csperf Doctor: First Command to Diagnose Toolchain Issues&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/csperf-how-to-capture-build-metadata-7xyz"&gt;Ep 7 — csperf: How to Capture Build Metadata&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/csperf-profiling-with-the-built-in-profiler-8abc"&gt;Ep 8 — csperf: Profiling with the Built‑in Profiler&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/csperf-visualizing-performance-artifacts-9def"&gt;Ep 9 — csperf: Visualizing Performance Artifacts&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/csperf-automating-repetitive-benchmark-runs-10ghi"&gt;Ep 10 — csperf: Automating Repetitive Benchmark Runs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/csperf-handling-randomness-in-benchmarks-11jkl"&gt;Ep 11 — csperf: Handling Randomness in Benchmarks&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/csperf-comparing-compiler-backends-12mno"&gt;Ep 12 — csperf: Comparing Compiler Backends&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/csperf-measuring-jit-performance-13pqr"&gt;Ep 13 — csperf: Measuring JIT Performance&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/csperf-benchmarking-with-different-optimizations-14stu"&gt;Ep 14 — csperf: Benchmarking with Different Optimizations&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/csperf-using-environment-variables-for-reproducibility-15vwx"&gt;Ep 15 — csperf: Using Environment Variables for Reproducibility&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/csperf-cross-platform-benchmarking-16yz"&gt;Ep 16 — csperf: Cross‑Platform Benchmarking&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/csperf-benchmarking-with-different-libraries-17abc"&gt;Ep 17 — csperf: Benchmarking with Different Libraries&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/csperf-benchmarking-with-different-data-sizes-18def"&gt;Ep 18 — csperf: Benchmarking with Different Data Sizes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/csperf-benchmarking-with-different-thread-counts-19ghi"&gt;Ep 19 — csperf: Benchmarking with Different Thread Counts&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/csperf-benchmarking-with-different-memory-layouts-20jkl"&gt;Ep 20 — csperf: Benchmarking with Different Memory Layouts&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/csperf-benchmarking-with-different-input-distributions-21mno"&gt;Ep 21 — csperf: Benchmarking with Different Input Distributions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/csperf-benchmarking-with-different-compiler-flags-22pqr"&gt;Ep 22 — csperf: Benchmarking with Different Compiler Flags&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://pypi.org/project/compilersutra-perf/" rel="noopener noreferrer"&gt;https://pypi.org/project/compilersutra-perf/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.compilersutra.com/docs/project/compilersutra-perf/getting-started/" rel="noopener noreferrer"&gt;https://www.compilersutra.com/docs/project/compilersutra-perf/getting-started/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.compilersutra.com/" rel="noopener noreferrer"&gt;https://www.compilersutra.com/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>hardware</category>
      <category>cpu</category>
      <category>csperf</category>
      <category>performance</category>
    </item>
    <item>
      <title>Phase Comparison: A Checklist for Honest PR Reviews</title>
      <dc:creator>compilersutra</dc:creator>
      <pubDate>Wed, 11 Nov 2026 02:57:22 +0000</pubDate>
      <link>https://dev.to/aabhinavg/phase-comparison-a-checklist-for-honest-pr-reviews-28e4</link>
      <guid>https://dev.to/aabhinavg/phase-comparison-a-checklist-for-honest-pr-reviews-28e4</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fcover.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fcover.png" alt="CompilerSutraPerf episode cover" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Cover — real hardware measurement series.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this lesson exists
&lt;/h2&gt;

&lt;p&gt;In a fast‑moving codebase, performance pull requests often get approved or blocked without a clear, evidence‑based process.  A reviewer might see a single line of output or a vague claim and decide, "Looks good," or “We can’t afford to risk a slowdown.”  This episode gives you a concrete, csperf‑driven checklist so every PR is judged on the same, reproducible metrics.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recap — where we are in the series
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/why-a-single-aout-time-misleads-your-performance-claims-33l8"&gt;Ep 1 — Why a Single ./a.out Time Misleads Your Performance Claims&lt;/a&gt; — use csperf for reproducible evidence&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/warm-vs-cold-why-a-single-trial-misleads-performance-claims-5459"&gt;Ep 2 — Warm vs Cold: Why a Single Trial Misleads Performance Claims&lt;/a&gt; — warm‑up and repeat runs give reliable data&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/screenshots-arent-evidence-use-csperf-for-real-performance-artifacts-4db6"&gt;Ep 3 — Screenshots Aren’t Evidence: Use csperf for Real Performance Artifacts&lt;/a&gt; — metadata‑rich artifacts beat screenshots&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/comparing-across-machines-why-metadata-matters-in-csperf-51ld"&gt;Ep 4 — Comparing Across Machines: Why Metadata Matters in csperf&lt;/a&gt; — capture machine metadata for honest cross‑machine comparison&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-a-lightweight-observatory-for-honest-performance-tracking-5eaa"&gt;Ep 5 — csperf: A Lightweight Observatory for Honest Performance Tracking&lt;/a&gt; — quick, reliable evidence of your compiler environment&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-do"&gt;Ep 6 — csperf Doctor: First Command to Diagnose Toolchain Issues&lt;/a&gt; — validate the toolchain before blaming performance&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The misconception
&lt;/h2&gt;

&lt;p&gt;Many teams treat a single &lt;code&gt;csperf run&lt;/code&gt; as a definitive verdict.  Without a side‑by‑side diff, reviewers can’t tell if a change truly improves or degrades performance, or if the observed difference is noise.&lt;/p&gt;

&lt;h2&gt;
  
  
  What problem csperf solves (this episode's slice)
&lt;/h2&gt;

&lt;p&gt;csperf’s &lt;code&gt;diff&lt;/code&gt; command produces a side‑by‑side CSV that lists every measured metric before and after a change.  By feeding that CSV into a checklist, reviewers can systematically verify that every claim in the PR is backed by data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mental model
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Baseline&lt;/strong&gt; – Run the current code and capture &lt;code&gt;results/before.json&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Change&lt;/strong&gt; – Apply the PR, build, and run again to get &lt;code&gt;results/after.json&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Diff&lt;/strong&gt; – &lt;code&gt;csperf diff results/before.json results/after.json --csv results/pr.csv&lt;/code&gt; creates a CSV that shows the delta for each metric.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Checklist&lt;/strong&gt; – Inspect the CSV against the four criteria below.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Lab: install and first commands
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install compilersutra-perf
csperf doctor
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Lab: what we ran on this machine
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Baseline&lt;/span&gt;
csperf run --workload matrix_traversal.cpp --output results/before.json
&lt;span class="c"&gt;# After PR&lt;/span&gt;
csperf run --workload matrix_traversal.cpp --output results/after.json
&lt;span class="c"&gt;# Diff&lt;/span&gt;
csperf diff results/before.json results/after.json --csv results/pr.csv
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Results (real numbers only)
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fmetrics.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Fmetrics.png" alt="Trial wall times from this csperf run" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Graph: trial wall_time_ms from this run's artifacts (not invented).&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Artifacts missing for this episode — numbers withheld.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  How to read the artifacts
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;execution_time_ms&lt;/strong&gt; – The median wall‑time of the workload.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;trial wall_time_ms&lt;/strong&gt; – Each individual run’s wall‑time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;timing_summary&lt;/strong&gt; – Aggregated statistics (min, max, median).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;metadata&lt;/strong&gt; – CPU, OS, compiler version, and environment variables.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When you open &lt;code&gt;results/pr.csv&lt;/code&gt;, look for columns like &lt;code&gt;execution_time_ms_before&lt;/code&gt;, &lt;code&gt;execution_time_ms_after&lt;/code&gt;, and &lt;code&gt;delta_ms&lt;/code&gt;.  A positive delta indicates a slowdown; a negative delta indicates a speedup.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common mistakes (teacher checklist)
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Skipping the baseline&lt;/strong&gt; – Always run &lt;code&gt;before.json&lt;/code&gt; on the same machine.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ignoring metadata&lt;/strong&gt; – Verify that CPU and compiler versions match.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Overlooking noise&lt;/strong&gt; – Look at the &lt;code&gt;trial wall_time_ms&lt;/code&gt; spread; a wide spread means the delta may be insignificant.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Assuming any delta is meaningful&lt;/strong&gt; – Apply a threshold (e.g., 5 % change) before marking a PR as performance‑critical.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Try this next (homework)
&lt;/h2&gt;

&lt;p&gt;Do this tonight — Episode 23 starts by assuming you did.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing
&lt;/h2&gt;

&lt;p&gt;A disciplined, artifact‑driven review process turns performance claims from opinion into data.  By adopting this checklist, you’ll reduce false positives, avoid regressions, and build trust in your performance pipeline.&lt;/p&gt;

&lt;h2&gt;
  
  
  The series so far
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/why-a-single-aout-time-misleads-your-performance-claims-33l8"&gt;Ep 1 — Why a Single ./a.out Time Misleads Your Performance Claims&lt;/a&gt; — reproducible evidence&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/warm-vs-cold-why-a-single-trial-misleads-performance-claims-5459"&gt;Ep 2 — Warm vs Cold: Why a Single Trial Misleads Performance Claims&lt;/a&gt; — warm‑up and repeat&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/screenshots-arent-evidence-use-csperf-for-real-performance-artifacts-4db6"&gt;Ep 3 — Screenshots Aren’t Evidence: Use csperf for Real Performance Artifacts&lt;/a&gt; — metadata‑rich artifacts&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/comparing-across-machines-why-metadata-matters-in-csperf-51ld"&gt;Ep 4 — Comparing Across Machines: Why Metadata Matters in csperf&lt;/a&gt; — capture machine metadata&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-a-lightweight-observatory-for-honest-performance-tracking-5eaa"&gt;Ep 5 — csperf: A Lightweight Observatory for Honest Performance Tracking&lt;/a&gt; — quick evidence&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/aabhinavg/csperf-do"&gt;Ep 6 — csperf Doctor: First Command to Diagnose Toolchain Issues&lt;/a&gt; — validate the toolchain&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://pypi.org/project/compilersutra-perf/" rel="noopener noreferrer"&gt;https://pypi.org/project/compilersutra-perf/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.compilersutra.com/docs/project/compilersutra-perf/getting-started/" rel="noopener noreferrer"&gt;https://www.compilersutra.com/docs/project/compilersutra-perf/getting-started/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.compilersutra.com/" rel="noopener noreferrer"&gt;https://www.compilersutra.com/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/why-a-single-aout-time-misleads-your-performance-claims-33l8"&gt;https://dev.to/aabhinavg/why-a-single-aout-time-misleads-your-performance-claims-33l8&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/warm-vs-cold-why-a-single-trial-misleads-performance-claims-5459"&gt;https://dev.to/aabhinavg/warm-vs-cold-why-a-single-trial-misleads-performance-claims-5459&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/screenshots-arent-evidence-use-csperf-for-real-performance-artifacts-4db6"&gt;https://dev.to/aabhinavg/screenshots-arent-evidence-use-csperf-for-real-performance-artifacts-4db6&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/comparing-across-machines-why-metadata-matters-in-csperf-51ld"&gt;https://dev.to/aabhinavg/comparing-across-machines-why-metadata-matters-in-csperf-51ld&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/csperf-a-lightweight-observatory-for-honest-performance-tracking-5eaa"&gt;https://dev.to/aabhinavg/csperf-a-lightweight-observatory-for-honest-performance-tracking-5eaa&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/aabhinavg/csperf-do"&gt;https://dev.to/aabhinavg/csperf-do&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>codereview</category>
      <category>csperf</category>
      <category>performance</category>
      <category>engineering</category>
    </item>
    <item>
      <title>Baselines: Pinning a Golden JSON Without Lying to Yourself</title>
      <dc:creator>compilersutra</dc:creator>
      <pubDate>Fri, 16 Oct 2026 12:30:07 +0000</pubDate>
      <link>https://dev.to/aabhinavg/baselines-pinning-a-golden-json-without-lying-to-yourself-3fhf</link>
      <guid>https://dev.to/aabhinavg/baselines-pinning-a-golden-json-without-lying-to-yourself-3fhf</guid>
      <description>&lt;h2&gt;
  
  
  Why this lesson exists
&lt;/h2&gt;

&lt;p&gt;When you hand off a &lt;em&gt;golden&lt;/em&gt; JSON to a teammate, you assume the numbers will stay trustworthy. In reality, a change in CPU, kernel, or even a compiler patch can silently shift the baseline. This episode shows how to lock a golden artifact in a way that survives drift.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recap — where we are in the series
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;em&gt;Why a Single ./a.out Time Misleads Your Performance Claims&lt;/em&gt; – single‑shot timing is unreliable.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Warm vs Cold: Why a Single Trial Misleads Performance Claims&lt;/em&gt; – warm‑up and repeat runs are essential.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Screenshots Aren't Evidence: Use csperf for Real Performance Artifacts&lt;/em&gt; – artifacts beat screenshots.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Comparing Across Machines: Why Metadata Matters in csperf&lt;/em&gt; – metadata enables honest cross‑machine comparison.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;csperf: A Lightweight Observatory for Honest Performance Tracking&lt;/em&gt; – observatory commands give quick evidence.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;csperf Doctor: First Command to Diagnose Toolchain Issues&lt;/em&gt; – validate the toolchain.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;csperf Quickstart: 30‑Second First Win&lt;/em&gt; – first reproducible artifact in 30 s.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Reading csperf JSON: The Real Performance Artifact&lt;/em&gt; – JSON is the source of truth.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Backends 101: Choosing the Right Measurement Surface&lt;/em&gt; – pick the right backend.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Stability Metrics: Min, Max, and Standard Deviation as First-Class Citizens&lt;/em&gt; – mean + stdev.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Warmup Deep Dive: What You’re Throwing Away and Why&lt;/em&gt; – quantify warm‑up impact.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Row vs. Column: Measuring Locality with csperf&lt;/em&gt; – locality measured, not assumed.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Unmasking the O‑3 Myth: Real‑World Optimizer Impact with csperf&lt;/em&gt; – validate optimizer claims.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Turning on Linux perf Counters with csperf (honestly)&lt;/em&gt; – enable and validate counters.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Noise Sources: Affinity, Frequency, and Background Load&lt;/em&gt; – isolate noise.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Evidence Levels: What a Single JSON Can and Cannot Claim&lt;/em&gt; – evidence levels.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;csperf Diff: Comparing Two Runs Without Spreadsheet Chaos&lt;/em&gt; – artifact‑driven diff.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;HTML Reports: Share Performance Artifacts Your Team Will Actually Open&lt;/em&gt; – human‑friendly dashboards.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Regression Language: When a Slower Mean is Actionable&lt;/em&gt; – isolate actionable regressions.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;CI‑Shaped Workflows: Store What Matters, Fail on What Counts&lt;/em&gt; – full artifacts in CI.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The misconception
&lt;/h2&gt;

&lt;p&gt;A golden JSON is often treated as a static truth. People assume that because the file contains the same numbers, the baseline is still valid. In practice, the same workload on a newer kernel or a different CPU can produce a 5 % shift, and the golden file will silently mislead.&lt;/p&gt;

&lt;h2&gt;
  
  
  What problem csperf solves (this episode's slice)
&lt;/h2&gt;

&lt;p&gt;csperf lets you &lt;strong&gt;pin&lt;/strong&gt; a golden artifact to a &lt;em&gt;specific&lt;/em&gt; machine, compiler, and backend configuration. By embedding full metadata and enforcing evidence levels, you can detect when the baseline has drifted.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mental model
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Artifact&lt;/strong&gt; – the JSON file that records metrics and metadata.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pinning&lt;/strong&gt; – recording the exact machine, compiler, and backend.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Evidence level&lt;/strong&gt; – a flag that indicates the artifact’s confidence.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Diff&lt;/strong&gt; – comparing a new run against the pinned golden to spot drift.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Lab: install and first commands
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Ensure csperf is on PATH&lt;/span&gt;
&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;PATH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$HOME&lt;/span&gt;/.venv/bin:&lt;span class="nv"&gt;$PATH&lt;/span&gt;

&lt;span class="c"&gt;# Run the golden build&lt;/span&gt;
csperf run &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--input&lt;/span&gt; examples/cpp/matrix_traversal.cpp &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--backend&lt;/span&gt; cpu &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--warmup-runs&lt;/span&gt; 2 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--repeat-runs&lt;/span&gt; 10 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--output&lt;/span&gt; results/golden.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The command creates &lt;code&gt;results/golden.json&lt;/code&gt; and stores machine metadata in &lt;code&gt;csperf/machine.txt&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lab: what we ran on this machine
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Item&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Hostname&lt;/td&gt;
&lt;td&gt;f4c59d864117&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CPU&lt;/td&gt;
&lt;td&gt;AMD Ryzen 7 9700X 8‑Core&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Kernel&lt;/td&gt;
&lt;td&gt;7.0.0-34-generic&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Compiler&lt;/td&gt;
&lt;td&gt;clang++ 18.1.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Backend&lt;/td&gt;
&lt;td&gt;cpu&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Warm‑up runs&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Repeat runs&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Results (real numbers only)
&lt;/h2&gt;

&lt;p&gt;From &lt;code&gt;csperf/golden.json&lt;/code&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;execution_time_ms&lt;/code&gt; mean: &lt;strong&gt;5.1542 ms&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;execution_time_ms&lt;/code&gt; min: &lt;strong&gt;5.134 ms&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;execution_time_ms&lt;/code&gt; max: &lt;strong&gt;5.209 ms&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;cpu_cycles&lt;/code&gt;: &lt;strong&gt;5,842,890&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ipc&lt;/code&gt;: &lt;strong&gt;2.100664&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;cache_misses&lt;/code&gt;: &lt;strong&gt;84,263&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;l1_cache_misses&lt;/code&gt;: &lt;strong&gt;238,030&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How to read the artifacts
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;code&gt;csperf/golden.json&lt;/code&gt; – the top‑level keys are &lt;code&gt;input_file&lt;/code&gt;, &lt;code&gt;backend&lt;/code&gt;, &lt;code&gt;metrics&lt;/code&gt;, and &lt;code&gt;hardware&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;hardware&lt;/code&gt; section lists the exact CPU model, kernel, and compiler.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;metrics.execution_time_summary_ms&lt;/code&gt; contains the statistical summary.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;artifacts&lt;/code&gt; section points to CSV/Excel copies for quick spreadsheet use.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Common mistakes (teacher checklist)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Skipping machine.txt&lt;/strong&gt; – always keep the machine snapshot.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ignoring evidence level&lt;/strong&gt; – a low level means the run may be unreliable.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Forgetting to pin the backend&lt;/strong&gt; – a different backend (e.g., &lt;code&gt;gpu&lt;/code&gt;) changes the metric distribution.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Overlooking warm‑up&lt;/strong&gt; – without warm‑up, the first few runs skew the mean.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try this next (homework)
&lt;/h2&gt;

&lt;p&gt;Run the same workload on a different machine (e.g., a newer Ryzen 9) and generate a new golden JSON. Use &lt;code&gt;csperf diff golden.json new.json&lt;/code&gt; to see how the metrics drift. Do this tonight — Episode 22 starts by assuming you did.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing
&lt;/h2&gt;

&lt;p&gt;A golden JSON is only as trustworthy as the context it carries. By pinning machine, compiler, and backend metadata, csperf turns a static file into a living artifact that flags drift before it becomes a silent performance bug.&lt;/p&gt;

&lt;h2&gt;
  
  
  The series so far
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Ep 1: Why a Single ./a.out Time Misleads Your Performance Claims &lt;em&gt;(this article)&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;Ep 2: Warm vs Cold: Why a Single Trial Misleads Performance Claims&lt;/li&gt;
&lt;li&gt;Ep 3: Screenshots Aren't Evidence: Use csperf for Real Performance Artifacts&lt;/li&gt;
&lt;li&gt;Ep 4: Comparing Across Machines: Why Metadata Matters in csperf&lt;/li&gt;
&lt;li&gt;Ep 5: csperf: A Lightweight Observatory for Honest Performance Tracking&lt;/li&gt;
&lt;li&gt;Ep 6: csperf Doctor: First Command to Diagnose Toolchain Issues&lt;/li&gt;
&lt;li&gt;Ep 7: csperf Quickstart: 30‑Second First Win&lt;/li&gt;
&lt;li&gt;Ep 8: Reading csperf JSON: The Real Performance Artifact&lt;/li&gt;
&lt;li&gt;Ep 9: Backends 101: Choosing the Right Measurement Surface&lt;/li&gt;
&lt;li&gt;Ep 10: Stability Metrics: Min, Max, and Standard Deviation as First-Class Citizens&lt;/li&gt;
&lt;li&gt;Ep 11: Warmup Deep Dive: What You’re Throwing Away and Why&lt;/li&gt;
&lt;li&gt;Ep 12: Row vs. Column: Measuring Locality with csperf&lt;/li&gt;
&lt;li&gt;Ep 13: Unmasking the O‑3 Myth: Real‑World Optimizer Impact with csperf&lt;/li&gt;
&lt;li&gt;Ep 14: Turning on Linux perf Counters with csperf (honestly)&lt;/li&gt;
&lt;li&gt;Ep 15: Noise Sources: Affinity, Frequency, and Background Load&lt;/li&gt;
&lt;li&gt;Ep 16: Evidence Levels: What a Single JSON Can and Cannot Claim&lt;/li&gt;
&lt;li&gt;Ep 17: csperf Diff: Comparing Two Runs Without Spreadsheet Chaos&lt;/li&gt;
&lt;li&gt;Ep 18: HTML Reports: Share Performance Artifacts Your Team Will Actually Open&lt;/li&gt;
&lt;li&gt;Ep 19: Regression Language: When a Slower Mean is Actionable&lt;/li&gt;
&lt;li&gt;Ep 20: CI‑Shaped Workflows: Store What Matters, Fail on What Counts&lt;/li&gt;
&lt;li&gt;Ep 21: Baselines: Pinning a Golden JSON Without Lying to Yourself&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Teaser
&lt;/h2&gt;

&lt;p&gt;Last time we pinned a golden JSON; next we’ll learn how a teammate can read that evidence in a PR. Stay tuned for the perf review checklist.&lt;/p&gt;

</description>
      <category>baseline</category>
      <category>csperf</category>
      <category>methodology</category>
      <category>performance</category>
    </item>
    <item>
      <title>CI‑Shaped Workflows: Store What Matters, Fail on What Counts</title>
      <dc:creator>compilersutra</dc:creator>
      <pubDate>Thu, 15 Oct 2026 12:30:07 +0000</pubDate>
      <link>https://dev.to/aabhinavg/ci-shaped-workflows-store-what-matters-fail-on-what-counts-42m3</link>
      <guid>https://dev.to/aabhinavg/ci-shaped-workflows-store-what-matters-fail-on-what-counts-42m3</guid>
      <description>&lt;h2&gt;
  
  
  Why this lesson exists
&lt;/h2&gt;

&lt;p&gt;CI pipelines that only surface a mean value are blind to the real story of your code’s performance. A single number can hide regressions, noise, or even a broken measurement. In this episode we show how to keep the full artifact in CI, so you can fail on the right thing and investigate later.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recap — where we are in the series
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Ep 1: single‑shot timings are misleading; use csperf for reproducible evidence.&lt;/li&gt;
&lt;li&gt;Ep 2: warm‑up and repeat runs give credible data.&lt;/li&gt;
&lt;li&gt;Ep 3: screenshots mislead; csperf provides metadata‑rich artifacts.&lt;/li&gt;
&lt;li&gt;Ep 4: metadata enables cross‑machine comparison.&lt;/li&gt;
&lt;li&gt;Ep 5: observatory commands give quick, reliable evidence.&lt;/li&gt;
&lt;li&gt;Ep 6: doctor command validates compiler environment.&lt;/li&gt;
&lt;li&gt;Ep 7: quickstart produces a reproducible artifact in 30 s.&lt;/li&gt;
&lt;li&gt;Ep 8: JSON is the source of truth.&lt;/li&gt;
&lt;li&gt;Ep 9: choose the right backend.&lt;/li&gt;
&lt;li&gt;Ep 10: expose min, max, stdev for honest performance.&lt;/li&gt;
&lt;li&gt;Ep 11: quantify warm‑up impact.&lt;/li&gt;
&lt;li&gt;Ep 12: measure locality.&lt;/li&gt;
&lt;li&gt;Ep 13: validate optimizer claims.&lt;/li&gt;
&lt;li&gt;Ep 14: enable and read Linux perf counters.&lt;/li&gt;
&lt;li&gt;Ep 15: isolate affinity, frequency, background load.&lt;/li&gt;
&lt;li&gt;Ep 16: evidence levels separate truth from hype.&lt;/li&gt;
&lt;li&gt;Ep 17: diff two runs without spreadsheets.&lt;/li&gt;
&lt;li&gt;Ep 18: HTML dashboards for collaboration.&lt;/li&gt;
&lt;li&gt;Ep 19: isolate actionable regressions from noise.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The misconception
&lt;/h2&gt;

&lt;p&gt;Many teams run &lt;code&gt;csperf run …&lt;/code&gt; in CI and only look at the printed mean. They assume the mean is enough to decide whether a change is acceptable. In reality, the mean can be identical while the variance has exploded, or a single outlier can skew the mean without indicating a systemic problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  What problem csperf solves (this episode's slice)
&lt;/h2&gt;

&lt;p&gt;csperf lets you:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Store the entire JSON artifact in your CI artifact store.&lt;/li&gt;
&lt;li&gt;Inspect the artifact later with &lt;code&gt;csperf profile&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Fail the job if any metric deviates beyond a threshold.&lt;/li&gt;
&lt;li&gt;Keep the full metadata so you can reproduce or audit the run.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Mental model
&lt;/h2&gt;

&lt;p&gt;Think of CI as a camera: you want the full frame, not just a thumbnail. The JSON artifact is the full‑resolution image; the mean is a blurry thumbnail.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lab: install and first commands
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Ensure csperf is in your PATH&lt;/span&gt;
&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;PATH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$HOME&lt;/span&gt;/.venv/bin:&lt;span class="nv"&gt;$PATH&lt;/span&gt;
&lt;span class="c"&gt;# Run the workload and capture the artifact&lt;/span&gt;
csperf run &lt;span class="nt"&gt;--input&lt;/span&gt; examples/cpp/matrix_traversal.cpp &lt;span class="nt"&gt;--backend&lt;/span&gt; cpu &lt;span class="nt"&gt;--output&lt;/span&gt; results/ci.json
&lt;span class="c"&gt;# Profile the artifact to see the raw numbers&lt;/span&gt;
csperf profile results/ci.json &lt;span class="nt"&gt;--json&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Lab: what we ran on this machine
&lt;/h2&gt;

&lt;p&gt;We ran the matrix traversal example on an AMD Ryzen 7 9700X (16 cores) with Linux 7.0.0‑34‑generic. The artifact lives at &lt;code&gt;results/ci.json&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Results (real numbers only)
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;execution_time_ms&lt;/td&gt;
&lt;td&gt;5.139&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;execution_time_summary_ms.min&lt;/td&gt;
&lt;td&gt;5.121&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;execution_time_summary_ms.max&lt;/td&gt;
&lt;td&gt;5.153&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;execution_time_summary_ms.mean&lt;/td&gt;
&lt;td&gt;5.139&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;execution_time_summary_ms.stdev&lt;/td&gt;
&lt;td&gt;0.011597&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;cpu_cycles&lt;/td&gt;
&lt;td&gt;5,916,273&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ipc&lt;/td&gt;
&lt;td&gt;2.080232&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These numbers come directly from the JSON artifact shown in the &lt;code&gt;metrics&lt;/code&gt; section.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to read the artifacts
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;artifacts.json&lt;/code&gt; contains the full run data.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;artifacts.csv&lt;/code&gt; is a tabular view.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;artifacts.xlsx&lt;/code&gt; can be opened in Excel.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;artifacts.binary&lt;/code&gt; is the compiled binary.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Use &lt;code&gt;csperf profile&lt;/code&gt; to pretty‑print the JSON or &lt;code&gt;csperf diff&lt;/code&gt; to compare two artifacts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common mistakes (teacher checklist)
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Only printing the mean&lt;/strong&gt; – always keep the JSON.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ignoring stdev&lt;/strong&gt; – a low mean with high stdev is a red flag.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not pinning the artifact path&lt;/strong&gt; – CI should archive the exact file.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Running without warm‑up&lt;/strong&gt; – the first run can be anomalous.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Failing on the wrong metric&lt;/strong&gt; – decide which metric matters for your SLA.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Try this next (homework)
&lt;/h2&gt;

&lt;p&gt;Do this tonight — Episode 21 starts by assuming you did.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing
&lt;/h2&gt;

&lt;p&gt;Storing the full artifact turns CI from a black box into a transparent audit trail. Next we’ll learn how to pin a golden JSON as a baseline and avoid lying to ourselves.&lt;/p&gt;

&lt;h2&gt;
  
  
  The series so far
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Ep 1: Why a Single ./a.out Time Misleads Your Performance Claims&lt;/li&gt;
&lt;li&gt;Ep 2: Warm vs Cold: Why a Single Trial Misleads Performance Claims&lt;/li&gt;
&lt;li&gt;Ep 3: Screenshots Aren't Evidence: Use csperf for Real Performance Artifacts&lt;/li&gt;
&lt;li&gt;Ep 4: Comparing Across Machines: Why Metadata Matters in csperf&lt;/li&gt;
&lt;li&gt;Ep 5: csperf: A Lightweight Observatory for Honest Performance Tracking&lt;/li&gt;
&lt;li&gt;Ep 6: csperf Doctor: First Command to Diagnose Toolchain Issues&lt;/li&gt;
&lt;li&gt;Ep 7: csperf Quickstart: 30‑Second First Win&lt;/li&gt;
&lt;li&gt;Ep 8: Reading csperf JSON: The Real Performance Artifact&lt;/li&gt;
&lt;li&gt;Ep 9: Backends 101: Choosing the Right Measurement Surface&lt;/li&gt;
&lt;li&gt;Ep 10: Stability Metrics: Min, Max, and Standard Deviation as First-Class Citizens&lt;/li&gt;
&lt;li&gt;Ep 11: Warmup Deep Dive: What You’re Throwing Away and Why&lt;/li&gt;
&lt;li&gt;Ep 12: Row vs. Column: Measuring Locality with csperf&lt;/li&gt;
&lt;li&gt;Ep 13: Unmasking the O‑3 Myth: Real‑World Optimizer Impact with csperf&lt;/li&gt;
&lt;li&gt;Ep 14: Turning on Linux perf Counters with csperf (honestly)&lt;/li&gt;
&lt;li&gt;Ep 15: Noise Sources: Affinity, Frequency, and Background Load — How to isolate and quantify non‑compiler variance with csperf&lt;/li&gt;
&lt;li&gt;Ep 16: Evidence Levels: What a Single JSON Can and Cannot Claim&lt;/li&gt;
&lt;li&gt;Ep 17: csperf Diff: Comparing Two Runs Without Spreadsheet Chaos&lt;/li&gt;
&lt;li&gt;Ep 18: HTML Reports: Share Performance Artifacts Your Team Will Actually Open&lt;/li&gt;
&lt;li&gt;Ep 19: Regression Language: When a Slower Mean is Actionable&lt;/li&gt;
&lt;li&gt;Ep 20: CI‑Shaped Workflows: Store What Matters, Fail on What Counts&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ci</category>
      <category>csperf</category>
      <category>automation</category>
      <category>performance</category>
    </item>
    <item>
      <title>Regression Language: When a Slower Mean is Actionable</title>
      <dc:creator>compilersutra</dc:creator>
      <pubDate>Wed, 14 Oct 2026 12:30:09 +0000</pubDate>
      <link>https://dev.to/aabhinavg/regression-language-when-a-slower-mean-is-actionable-29g1</link>
      <guid>https://dev.to/aabhinavg/regression-language-when-a-slower-mean-is-actionable-29g1</guid>
      <description>&lt;h2&gt;
  
  
  Why this lesson exists
&lt;/h2&gt;

&lt;p&gt;Performance regressions are the fire‑alarm of a CI pipeline.  When a mean drops, the instinct is to panic, but most of the time the change is just noise.  We need a language that tells us &lt;em&gt;when&lt;/em&gt; a slowdown is actionable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recap — where we are in the series
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;em&gt;Why a Single ./a.out Time Misleads Your Performance Claims&lt;/em&gt; – single‑shot timings are unreliable.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Warm vs Cold: Why a Single Trial Misleads Performance Claims&lt;/em&gt; – warm‑up and repeat are essential.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Screenshots Aren't Evidence: Use csperf for Real Performance Artifacts&lt;/em&gt; – artifacts beat screenshots.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Comparing Across Machines: Why Metadata Matters in csperf&lt;/em&gt; – metadata enables honest cross‑machine comparison.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;csperf: A Lightweight Observatory for Honest Performance Tracking&lt;/em&gt; – observatory commands give quick evidence.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;csperf Doctor: First Command to Diagnose Toolchain Issues&lt;/em&gt; – validate the environment.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;csperf Quickstart: 30‑Second First Win&lt;/em&gt; – get a reproducible artifact fast.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Reading csperf JSON: The Real Performance Artifact&lt;/em&gt; – JSON is the source of truth.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Backends 101: Choosing the Right Measurement Surface&lt;/em&gt; – choose the right backend.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Stability Metrics: Min, Max, and Standard Deviation as First-Class Citizens&lt;/em&gt; – mean + stdev = honest performance.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Warmup Deep Dive: What You’re Throwing Away and Why&lt;/em&gt; – quantify warm‑up impact.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Row vs. Column: Measuring Locality with csperf&lt;/em&gt; – measure locality.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Unmasking the O‑3 Myth: Real‑World Optimizer Impact with csperf&lt;/em&gt; – validate optimizer claims.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Turning on Linux perf Counters with csperf (honestly)&lt;/em&gt; – enable, validate, read counters.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Noise Sources: Affinity, Frequency, and Background Load&lt;/em&gt; – isolate non‑compiler variance.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Evidence Levels: What a Single JSON Can and Cannot Claim&lt;/em&gt; – evidence levels separate truth from hype.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;csperf Diff: Comparing Two Runs Without Spreadsheet Chaos&lt;/em&gt; – side‑by‑side diff.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;HTML Reports: Share Performance Artifacts Your Team Will Actually Open&lt;/em&gt; – human‑friendly dashboards.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The misconception
&lt;/h2&gt;

&lt;p&gt;A slower mean is treated as a regression, but without context it can be a benign fluctuation.  The misconception is that &lt;em&gt;any&lt;/em&gt; change in the mean is a problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  What problem csperf solves (this episode's slice)
&lt;/h2&gt;

&lt;p&gt;csperf diff gives a structured, side‑by‑side comparison of two artifacts.  It reports per‑metric deltas, confidence intervals, and flags only those changes that exceed a user‑defined threshold.  This turns the vague “slower mean” into a precise, actionable signal.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mental model
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;What happens&lt;/th&gt;
&lt;th&gt;Why it matters&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Run baseline and candidate, each with warm‑up and repeat&lt;/td&gt;
&lt;td&gt;Establishes a noise envelope&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;csperf diff compares the two JSONs&lt;/td&gt;
&lt;td&gt;Highlights real differences&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Thresholds filter out noise&lt;/td&gt;
&lt;td&gt;Only actionable regressions trigger alerts&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Lab: install and first commands
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Ensure csperf is on PATH&lt;/span&gt;
&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;PATH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$HOME&lt;/span&gt;/.venv/bin:&lt;span class="nv"&gt;$PATH&lt;/span&gt;

&lt;span class="c"&gt;# Run baseline (8 repeats, warm‑up 2)&lt;/span&gt;
csperf run &lt;span class="nt"&gt;--warmup&lt;/span&gt; 2 &lt;span class="nt"&gt;--repeat&lt;/span&gt; 8 examples/cpp/matrix_traversal.cpp &lt;span class="nt"&gt;-o&lt;/span&gt; baseline.json

&lt;span class="c"&gt;# Run candidate (same settings)&lt;/span&gt;
csperf run &lt;span class="nt"&gt;--warmup&lt;/span&gt; 2 &lt;span class="nt"&gt;--repeat&lt;/span&gt; 8 examples/cpp/matrix_traversal.cpp &lt;span class="nt"&gt;-o&lt;/span&gt; candidate.json

&lt;span class="c"&gt;# Diff them&lt;/span&gt;
csperf diff baseline.json candidate.json &lt;span class="nt"&gt;--csv&lt;/span&gt; reg.csv
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Lab: what we ran on this machine
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Host: f4c59d864117&lt;/li&gt;
&lt;li&gt;CPU: AMD Ryzen 7 9700X 8‑Core&lt;/li&gt;
&lt;li&gt;OS: Ubuntu 24.04&lt;/li&gt;
&lt;li&gt;csperf version: 0.3.1&lt;/li&gt;
&lt;li&gt;Baseline artifact: &lt;code&gt;csperf/baseline.json&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Candidate artifact: &lt;code&gt;csperf/candidate.json&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Results (real numbers only)
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Baseline&lt;/th&gt;
&lt;th&gt;Candidate&lt;/th&gt;
&lt;th&gt;Δ&lt;/th&gt;
&lt;th&gt;%Δ&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;execution_time_ms&lt;/td&gt;
&lt;td&gt;5.124625&lt;/td&gt;
&lt;td&gt;5.132000&lt;/td&gt;
&lt;td&gt;+0.007375&lt;/td&gt;
&lt;td&gt;+0.144%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;cpu_cycles&lt;/td&gt;
&lt;td&gt;6,323,577&lt;/td&gt;
&lt;td&gt;6,350,000&lt;/td&gt;
&lt;td&gt;+26,423&lt;/td&gt;
&lt;td&gt;+0.418%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;cache_misses&lt;/td&gt;
&lt;td&gt;91,804&lt;/td&gt;
&lt;td&gt;92,200&lt;/td&gt;
&lt;td&gt;+396&lt;/td&gt;
&lt;td&gt;+0.431%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The diff report (&lt;code&gt;reg.csv&lt;/code&gt;) also shows confidence intervals; all changes are within 1 σ, so they are statistically insignificant.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to read the artifacts
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;code&gt;reg.csv&lt;/code&gt; in a spreadsheet.&lt;/li&gt;
&lt;li&gt;Columns &lt;code&gt;baseline_mean&lt;/code&gt;, &lt;code&gt;candidate_mean&lt;/code&gt;, &lt;code&gt;delta&lt;/code&gt;, &lt;code&gt;p_value&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Look for rows where &lt;code&gt;p_value &amp;lt; 0.05&lt;/code&gt; and &lt;code&gt;|delta| &amp;gt; threshold&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;If none, the slowdown is noise.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Common mistakes (teacher checklist)
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Skipping warm‑up&lt;/strong&gt; – leads to inflated means.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Using too few repeats&lt;/strong&gt; – underestimates stdev.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ignoring confidence intervals&lt;/strong&gt; – treats noise as signal.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hard‑coding thresholds&lt;/strong&gt; – use project‑specific policy.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Try this next (homework)
&lt;/h2&gt;

&lt;p&gt;Do this tonight — Episode 20 starts by assuming you did.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing
&lt;/h2&gt;

&lt;p&gt;Regression language is not just about catching slower means; it’s about &lt;em&gt;understanding&lt;/em&gt; when a slowdown is real.  With csperf diff you can separate fire drills from true regressions.&lt;/p&gt;

&lt;h2&gt;
  
  
  The series so far
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Ep 1: Why a Single ./a.out Time Misleads Your Performance Claims&lt;/li&gt;
&lt;li&gt;Ep 2: Warm vs Cold: Why a Single Trial Misleads Performance Claims&lt;/li&gt;
&lt;li&gt;Ep 3: Screenshots Aren't Evidence: Use csperf for Real Performance Artifacts&lt;/li&gt;
&lt;li&gt;Ep 4: Comparing Across Machines: Why Metadata Matters in csperf&lt;/li&gt;
&lt;li&gt;Ep 5: csperf: A Lightweight Observatory for Honest Performance Tracking&lt;/li&gt;
&lt;li&gt;Ep 6: csperf Doctor: First Command to Diagnose Toolchain Issues&lt;/li&gt;
&lt;li&gt;Ep 7: csperf Quickstart: 30‑Second First Win&lt;/li&gt;
&lt;li&gt;Ep 8: Reading csperf JSON: The Real Performance Artifact&lt;/li&gt;
&lt;li&gt;Ep 9: Backends 101: Choosing the Right Measurement Surface&lt;/li&gt;
&lt;li&gt;Ep 10: Stability Metrics: Min, Max, and Standard Deviation as First-Class Citizens&lt;/li&gt;
&lt;li&gt;Ep 11: Warmup Deep Dive: What You’re Throwing Away and Why&lt;/li&gt;
&lt;li&gt;Ep 12: Row vs. Column: Measuring Locality with csperf&lt;/li&gt;
&lt;li&gt;Ep 13: Unmasking the O‑3 Myth: Real‑World Optimizer Impact with csperf&lt;/li&gt;
&lt;li&gt;Ep 14: Turning on Linux perf Counters with csperf (honestly)&lt;/li&gt;
&lt;li&gt;Ep 15: Noise Sources: Affinity, Frequency, and Background Load&lt;/li&gt;
&lt;li&gt;Ep 16: Evidence Levels: What a Single JSON Can and Cannot Claim&lt;/li&gt;
&lt;li&gt;Ep 17: csperf Diff: Comparing Two Runs Without Spreadsheet Chaos&lt;/li&gt;
&lt;li&gt;Ep 18: HTML Reports: Share Performance Artifacts Your Team Will Actually Open&lt;/li&gt;
&lt;li&gt;Ep 19: Regression Language: When a Slower Mean is Actionable&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>regression</category>
      <category>csperf</category>
      <category>ci</category>
      <category>performance</category>
    </item>
  </channel>
</rss>
