syntaxai/tdd.md · main · public / sama-metrics.svg

sama-metrics.svg 87 lines · 4592 bytes raw
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600" width="1200" height="600">
  <rect width="1200" height="600" fill="#0a0a0a"/>

  <g font-family="ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace">
    <text x="80" y="50" font-size="26" font-weight="600" fill="#e8e8e8">§5 workingSetFit · measured · n=8 cross-repo datapoints</text>
    <text x="80" y="78" font-size="16" fill="#8a8a8a">share of source files in the [50, 500] LOC working-set band · same bounds, same emitter, same source-of-truth.</text>
  </g>

  <!-- Chart geometry:
       label column x: 80..280 (200 wide, right-aligned text at x=275)
       bar area    x: 290..1090 (800 wide = 100%)
       value column x: 1100..1180 (right-aligned text at x=1175)
       rows: 8 rows, y=120..540 (52px per row)  -->

  <!-- Background grid lines at 25%, 50%, 75% -->
  <line x1="490" y1="100" x2="490" y2="555" stroke="#1f1f1f" stroke-width="1"/>
  <line x1="690" y1="100" x2="690" y2="555" stroke="#1f1f1f" stroke-width="1"/>
  <line x1="890" y1="100" x2="890" y2="555" stroke="#1f1f1f" stroke-width="1"/>
  <line x1="1090" y1="100" x2="1090" y2="555" stroke="#1f1f1f" stroke-width="1"/>
  <!-- Baseline at 0% -->
  <line x1="290" y1="100" x2="290" y2="555" stroke="#3a3a3a" stroke-width="1.5"/>

  <!-- x-axis labels -->
  <g font-family="ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace" font-size="13" fill="#6a6a6a" text-anchor="middle">
    <text x="290" y="572">0%</text>
    <text x="490" y="572">25%</text>
    <text x="690" y="572">50%</text>
    <text x="890" y="572">75%</text>
    <text x="1090" y="572">100%</text>
  </g>

  <g font-family="ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace" font-size="18">

    <!-- Row 1: tdd.md  80.00%  (SAMA-disciplined - highlighted) -->
    <text x="275" y="139" text-anchor="end" fill="#7ec77e" font-weight="600">tdd.md</text>
    <rect x="290" y="121" width="640" height="26" fill="#7ec77e"/>
    <text x="1175" y="139" text-anchor="end" fill="#7ec77e" font-weight="600">80.00%</text>
    <text x="1175" y="155" text-anchor="end" font-size="11" fill="#7ec77e">SAMA-disciplined</text>

    <!-- Row 2: cli/cli (gh) Go  73.59% -->
    <text x="275" y="190" text-anchor="end" fill="#c8c8c8">cli/cli (gh)</text>
    <rect x="290" y="174" width="589" height="22" fill="#6a8db5"/>
    <text x="1175" y="190" text-anchor="end" fill="#c8c8c8">73.59%</text>

    <!-- Row 3: sharkdp/fd  Rust  69.57% -->
    <text x="275" y="238" text-anchor="end" fill="#c8c8c8">sharkdp/fd</text>
    <rect x="290" y="222" width="557" height="22" fill="#a07a5a"/>
    <text x="1175" y="238" text-anchor="end" fill="#c8c8c8">69.57%</text>

    <!-- Row 4: lazygit  Go  67.38% -->
    <text x="275" y="286" text-anchor="end" fill="#c8c8c8">lazygit</text>
    <rect x="290" y="270" width="539" height="22" fill="#6a8db5"/>
    <text x="1175" y="286" text-anchor="end" fill="#c8c8c8">67.38%</text>

    <!-- Row 5: eza  Rust  61.76% -->
    <text x="275" y="334" text-anchor="end" fill="#c8c8c8">eza</text>
    <rect x="290" y="318" width="494" height="22" fill="#a07a5a"/>
    <text x="1175" y="334" text-anchor="end" fill="#c8c8c8">61.76%</text>

    <!-- Row 6: ripgrep  Rust  54.00% -->
    <text x="275" y="382" text-anchor="end" fill="#c8c8c8">ripgrep</text>
    <rect x="290" y="366" width="432" height="22" fill="#a07a5a"/>
    <text x="1175" y="382" text-anchor="end" fill="#c8c8c8">54.00%</text>

    <!-- Row 7: dive  Go  52.17% -->
    <text x="275" y="430" text-anchor="end" fill="#c8c8c8">dive</text>
    <rect x="290" y="414" width="417" height="22" fill="#6a8db5"/>
    <text x="1175" y="430" text-anchor="end" fill="#c8c8c8">52.17%</text>

    <!-- Row 8: bat  Rust  46.27% -->
    <text x="275" y="478" text-anchor="end" fill="#c8c8c8">sharkdp/bat</text>
    <rect x="290" y="462" width="370" height="22" fill="#a07a5a"/>
    <text x="1175" y="478" text-anchor="end" fill="#c8c8c8">46.27%</text>
  </g>

  <!-- Legend strip -->
  <g font-family="ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace" font-size="13" fill="#8a8a8a">
    <rect x="80" y="520" width="14" height="14" fill="#7ec77e"/>
    <text x="100" y="532">SAMA-disciplined (n=1)</text>
    <rect x="290" y="520" width="14" height="14" fill="#6a8db5"/>
    <text x="310" y="532">Go (n=3)</text>
    <rect x="420" y="520" width="14" height="14" fill="#a07a5a"/>
    <text x="440" y="532">Rust (n=4)</text>
    <text x="560" y="532" fill="#6a6a6a">· non-SAMA baseline: mean 60.68%, stddev 10.13pp, range 27.32pp</text>
  </g>
</svg>