Current section

Files

Jump to
glazer assets bench_medium.svg
Raw

assets/bench_medium.svg

<svg xmlns="http://www.w3.org/2000/svg" width="760" height="464" viewBox="0 0 760 464" font-family="Helvetica, Arial, sans-serif">
<style>
.bg { fill: #ffffff; }
.fg { fill: #1f2328; }
.muted { fill: #57606a; }
.faint { fill: #8b949e; }
.grid { stroke: #d0d7de; }
.axis { stroke: #1f2328; }
.bar-0 { fill: #aab8c8; }
.bar-1 { fill: #94a6ba; }
.bar-2 { fill: #7e94ac; }
.bar-3 { fill: #6c84a0; }
.bar-4 { fill: #5c7494; }
.bar-5 { fill: #4c6488; }
.bar-6 { fill: #3f5878; }
.bar-7 { fill: #344a68; }
.bar-8 { fill: #2a3c58; }
.bar-9 { fill: #1f2e48; }
.bar-glazer { fill: #00a6e6; }
@media (prefers-color-scheme: dark) {
.bg { fill: #0d1117; }
.fg { fill: #e6edf3; }
.muted { fill: #c9d1d9; }
.faint { fill: #8b949e; }
.grid { stroke: #30363d; }
.axis { stroke: #e6edf3; }
.bar-0 { fill: #9aacc0; }
.bar-1 { fill: #8398b0; }
.bar-2 { fill: #6e84a0; }
.bar-3 { fill: #5c7290; }
.bar-4 { fill: #4c6080; }
.bar-5 { fill: #3e5070; }
.bar-6 { fill: #324060; }
.bar-7 { fill: #283450; }
.bar-8 { fill: #1f2840; }
.bar-9 { fill: #161c30; }
.bar-glazer { fill: #00b5fe; }
}
</style>
<rect width="760" height="464" class="bg"/>
<text x="380.0" y="26" text-anchor="middle" font-size="18" font-weight="bold" class="fg">Medium input size (time in µs, lower is better)</text>
<text x="190.0" y="66.0" text-anchor="middle" font-size="13" font-weight="bold" class="fg">JSON decode — 1.3K</text>
<line x1="50.0" y1="148.0" x2="370.0" y2="148.0" class="grid" stroke-width="1"/>
<text x="44.0" y="151.0" text-anchor="end" font-size="9" class="muted">0</text>
<line x1="50.0" y1="128.0" x2="370.0" y2="128.0" class="grid" stroke-width="1"/>
<text x="44.0" y="131.0" text-anchor="end" font-size="9" class="muted">5</text>
<line x1="50.0" y1="108.0" x2="370.0" y2="108.0" class="grid" stroke-width="1"/>
<text x="44.0" y="111.0" text-anchor="end" font-size="9" class="muted">10</text>
<line x1="50.0" y1="88.0" x2="370.0" y2="88.0" class="grid" stroke-width="1"/>
<text x="44.0" y="91.0" text-anchor="end" font-size="9" class="muted">15</text>
<line x1="50.0" y1="68.0" x2="370.0" y2="68.0" class="grid" stroke-width="1"/>
<text x="44.0" y="71.0" text-anchor="end" font-size="9" class="muted">20</text>
<rect x="56.0" y="132.8" width="33.2" height="15.2" class="bar-glazer"><title>glazer: 3.8 (decode)</title></rect>
<text x="72.6" y="129.8" text-anchor="middle" font-size="8" class="muted">3.8</text>
<text x="72.6" y="158.0" text-anchor="end" font-size="9" class="fg" font-weight="bold" transform="rotate(-35 72.6,158.0)">glazer</text>
<rect x="95.2" y="132.0" width="33.2" height="16.0" class="bar-1"><title>torque: 4 (decode)</title></rect>
<text x="111.9" y="129.0" text-anchor="middle" font-size="8" class="muted">4</text>
<text x="111.9" y="158.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 111.9,158.0)">torque</text>
<rect x="134.5" y="118.8" width="33.2" height="29.2" class="bar-2"><title>simdjsone: 7.3 (decode)</title></rect>
<text x="151.1" y="115.8" text-anchor="middle" font-size="8" class="muted">7.3</text>
<text x="151.1" y="158.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 151.1,158.0)">simdjsone</text>
<rect x="173.8" y="118.4" width="33.2" height="29.6" class="bar-3"><title>jiffy: 7.4 (decode)</title></rect>
<text x="190.4" y="115.4" text-anchor="middle" font-size="8" class="muted">7.4</text>
<text x="190.4" y="158.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 190.4,158.0)">jiffy</text>
<rect x="213.0" y="77.2" width="33.2" height="70.8" class="bar-4"><title>jason: 17.7 (decode)</title></rect>
<text x="229.6" y="74.2" text-anchor="middle" font-size="8" class="muted">17.7</text>
<text x="229.6" y="158.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 229.6,158.0)">jason</text>
<rect x="252.2" y="85.2" width="33.2" height="62.8" class="bar-5"><title>json: 15.7 (decode)</title></rect>
<text x="268.9" y="82.2" text-anchor="middle" font-size="8" class="muted">15.7</text>
<text x="268.9" y="158.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 268.9,158.0)">json</text>
<rect x="291.5" y="78.8" width="33.2" height="69.2" class="bar-6"><title>thoas: 17.3 (decode)</title></rect>
<text x="308.1" y="75.8" text-anchor="middle" font-size="8" class="muted">17.3</text>
<text x="308.1" y="158.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 308.1,158.0)">thoas</text>
<rect x="330.8" y="105.6" width="33.2" height="42.4" class="bar-7"><title>euneus: 10.6 (decode)</title></rect>
<text x="347.4" y="102.6" text-anchor="middle" font-size="8" class="muted">10.6</text>
<text x="347.4" y="158.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 347.4,158.0)">euneus</text>
<line x1="50.0" y1="148.0" x2="370.0" y2="148.0" class="axis" stroke-width="1"/>
<text x="570.0" y="66.0" text-anchor="middle" font-size="13" font-weight="bold" class="fg">JSON encode — 1.3K</text>
<line x1="430.0" y1="148.0" x2="750.0" y2="148.0" class="grid" stroke-width="1"/>
<text x="424.0" y="151.0" text-anchor="end" font-size="9" class="muted">0</text>
<line x1="430.0" y1="121.3" x2="750.0" y2="121.3" class="grid" stroke-width="1"/>
<text x="424.0" y="124.3" text-anchor="end" font-size="9" class="muted">10</text>
<line x1="430.0" y1="94.7" x2="750.0" y2="94.7" class="grid" stroke-width="1"/>
<text x="424.0" y="97.7" text-anchor="end" font-size="9" class="muted">20</text>
<line x1="430.0" y1="68.0" x2="750.0" y2="68.0" class="grid" stroke-width="1"/>
<text x="424.0" y="71.0" text-anchor="end" font-size="9" class="muted">30</text>
<rect x="436.0" y="141.1" width="33.2" height="6.9" class="bar-glazer"><title>glazer: 2.6 (encode)</title></rect>
<text x="452.6" y="138.1" text-anchor="middle" font-size="8" class="muted">2.6</text>
<text x="452.6" y="158.0" text-anchor="end" font-size="9" class="fg" font-weight="bold" transform="rotate(-35 452.6,158.0)">glazer</text>
<rect x="475.2" y="138.1" width="33.2" height="9.9" class="bar-1"><title>torque: 3.7 (encode)</title></rect>
<text x="491.9" y="135.1" text-anchor="middle" font-size="8" class="muted">3.7</text>
<text x="491.9" y="158.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 491.9,158.0)">torque</text>
<rect x="514.5" y="125.1" width="33.2" height="22.9" class="bar-2"><title>simdjsone: 8.6 (encode)</title></rect>
<text x="531.1" y="122.1" text-anchor="middle" font-size="8" class="muted">8.6</text>
<text x="531.1" y="158.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 531.1,158.0)">simdjsone</text>
<rect x="553.8" y="132.0" width="33.2" height="16.0" class="bar-3"><title>jiffy: 6 (encode)</title></rect>
<text x="570.4" y="129.0" text-anchor="middle" font-size="8" class="muted">6</text>
<text x="570.4" y="158.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 570.4,158.0)">jiffy</text>
<rect x="593.0" y="89.6" width="33.2" height="58.4" class="bar-4"><title>jason: 21.9 (encode)</title></rect>
<text x="609.6" y="86.6" text-anchor="middle" font-size="8" class="muted">21.9</text>
<text x="609.6" y="158.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 609.6,158.0)">jason</text>
<rect x="632.2" y="125.3" width="33.2" height="22.7" class="bar-5"><title>json: 8.5 (encode)</title></rect>
<text x="648.9" y="122.3" text-anchor="middle" font-size="8" class="muted">8.5</text>
<text x="648.9" y="158.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 648.9,158.0)">json</text>
<rect x="671.5" y="101.9" width="33.2" height="46.1" class="bar-6"><title>thoas: 17.3 (encode)</title></rect>
<text x="688.1" y="98.9" text-anchor="middle" font-size="8" class="muted">17.3</text>
<text x="688.1" y="158.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 688.1,158.0)">thoas</text>
<rect x="710.8" y="118.9" width="33.2" height="29.1" class="bar-7"><title>euneus: 10.9 (encode)</title></rect>
<text x="727.4" y="115.9" text-anchor="middle" font-size="8" class="muted">10.9</text>
<text x="727.4" y="158.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 727.4,158.0)">euneus</text>
<line x1="430.0" y1="148.0" x2="750.0" y2="148.0" class="axis" stroke-width="1"/>
<text x="190.0" y="204.0" text-anchor="middle" font-size="13" font-weight="bold" class="fg">YAML decode — 1.3K</text>
<line x1="50.0" y1="286.0" x2="370.0" y2="286.0" class="grid" stroke-width="1"/>
<text x="44.0" y="289.0" text-anchor="end" font-size="9" class="muted">0</text>
<line x1="50.0" y1="259.3" x2="370.0" y2="259.3" class="grid" stroke-width="1"/>
<text x="44.0" y="262.3" text-anchor="end" font-size="9" class="muted">500</text>
<line x1="50.0" y1="232.7" x2="370.0" y2="232.7" class="grid" stroke-width="1"/>
<text x="44.0" y="235.7" text-anchor="end" font-size="9" class="muted">1000</text>
<line x1="50.0" y1="206.0" x2="370.0" y2="206.0" class="grid" stroke-width="1"/>
<text x="44.0" y="209.0" text-anchor="end" font-size="9" class="muted">1500</text>
<rect x="56.0" y="285.3" width="56.8" height="0.7" class="bar-glazer"><title>glazer: 13.3 (decode)</title></rect>
<text x="84.4" y="282.3" text-anchor="middle" font-size="8" class="muted">13.3</text>
<text x="84.4" y="296.0" text-anchor="end" font-size="9" class="fg" font-weight="bold" transform="rotate(-35 84.4,296.0)">glazer</text>
<rect x="118.8" y="281.8" width="56.8" height="4.2" class="bar-1"><title>yaml_rustler: 78.3 (decode)</title></rect>
<text x="147.2" y="278.8" text-anchor="middle" font-size="8" class="muted">78.3</text>
<text x="147.2" y="296.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 147.2,296.0)">yaml_rustler</text>
<rect x="181.6" y="281.3" width="56.8" height="4.7" class="bar-2"><title>fast_yaml: 88 (decode)</title></rect>
<text x="210.0" y="278.3" text-anchor="middle" font-size="8" class="muted">88</text>
<text x="210.0" y="296.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 210.0,296.0)">fast_yaml</text>
<rect x="244.4" y="230.9" width="56.8" height="55.1" class="bar-3"><title>yamerl: 1032.2 (decode)</title></rect>
<text x="272.8" y="227.9" text-anchor="middle" font-size="8" class="muted">1032.2</text>
<text x="272.8" y="296.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 272.8,296.0)">yamerl</text>
<text x="335.6" y="282.0" text-anchor="middle" font-size="8" class="faint">N/A</text>
<text x="335.6" y="296.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 335.6,296.0)">ymlr</text>
<line x1="50.0" y1="286.0" x2="370.0" y2="286.0" class="axis" stroke-width="1"/>
<text x="570.0" y="204.0" text-anchor="middle" font-size="13" font-weight="bold" class="fg">YAML encode — 1.3K</text>
<line x1="430.0" y1="286.0" x2="750.0" y2="286.0" class="grid" stroke-width="1"/>
<text x="424.0" y="289.0" text-anchor="end" font-size="9" class="muted">0</text>
<line x1="430.0" y1="266.0" x2="750.0" y2="266.0" class="grid" stroke-width="1"/>
<text x="424.0" y="269.0" text-anchor="end" font-size="9" class="muted">10</text>
<line x1="430.0" y1="246.0" x2="750.0" y2="246.0" class="grid" stroke-width="1"/>
<text x="424.0" y="249.0" text-anchor="end" font-size="9" class="muted">20</text>
<line x1="430.0" y1="226.0" x2="750.0" y2="226.0" class="grid" stroke-width="1"/>
<text x="424.0" y="229.0" text-anchor="end" font-size="9" class="muted">30</text>
<line x1="430.0" y1="206.0" x2="750.0" y2="206.0" class="grid" stroke-width="1"/>
<text x="424.0" y="209.0" text-anchor="end" font-size="9" class="muted">40</text>
<rect x="436.0" y="275.8" width="56.8" height="10.2" class="bar-glazer"><title>glazer: 5.1 (encode)</title></rect>
<text x="464.4" y="272.8" text-anchor="middle" font-size="8" class="muted">5.1</text>
<text x="464.4" y="296.0" text-anchor="end" font-size="9" class="fg" font-weight="bold" transform="rotate(-35 464.4,296.0)">glazer</text>
<text x="527.2" y="282.0" text-anchor="middle" font-size="8" class="faint">N/A</text>
<text x="527.2" y="296.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 527.2,296.0)">yaml_rustler</text>
<rect x="561.6" y="212.6" width="56.8" height="73.4" class="bar-2"><title>fast_yaml: 36.7 (encode)</title></rect>
<text x="590.0" y="209.6" text-anchor="middle" font-size="8" class="muted">36.7</text>
<text x="590.0" y="296.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 590.0,296.0)">fast_yaml</text>
<text x="652.8" y="282.0" text-anchor="middle" font-size="8" class="faint">N/A</text>
<text x="652.8" y="296.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 652.8,296.0)">yamerl</text>
<rect x="687.2" y="208.8" width="56.8" height="77.2" class="bar-4"><title>ymlr: 38.6 (encode)</title></rect>
<text x="715.6" y="205.8" text-anchor="middle" font-size="8" class="muted">38.6</text>
<text x="715.6" y="296.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 715.6,296.0)">ymlr</text>
<line x1="430.0" y1="286.0" x2="750.0" y2="286.0" class="axis" stroke-width="1"/>
<text x="190.0" y="342.0" text-anchor="middle" font-size="13" font-weight="bold" class="fg">CSV decode — 130.9K</text>
<line x1="50.0" y1="424.0" x2="370.0" y2="424.0" class="grid" stroke-width="1"/>
<text x="44.0" y="427.0" text-anchor="end" font-size="9" class="muted">0</text>
<line x1="50.0" y1="404.0" x2="370.0" y2="404.0" class="grid" stroke-width="1"/>
<text x="44.0" y="407.0" text-anchor="end" font-size="9" class="muted">10000</text>
<line x1="50.0" y1="384.0" x2="370.0" y2="384.0" class="grid" stroke-width="1"/>
<text x="44.0" y="387.0" text-anchor="end" font-size="9" class="muted">20000</text>
<line x1="50.0" y1="364.0" x2="370.0" y2="364.0" class="grid" stroke-width="1"/>
<text x="44.0" y="367.0" text-anchor="end" font-size="9" class="muted">30000</text>
<line x1="50.0" y1="344.0" x2="370.0" y2="344.0" class="grid" stroke-width="1"/>
<text x="44.0" y="347.0" text-anchor="end" font-size="9" class="muted">40000</text>
<rect x="56.0" y="422.6" width="56.8" height="1.4" class="bar-glazer"><title>glazer: 711.7 (decode)</title></rect>
<text x="84.4" y="419.6" text-anchor="middle" font-size="8" class="muted">711.7</text>
<text x="84.4" y="434.0" text-anchor="end" font-size="9" class="fg" font-weight="bold" transform="rotate(-35 84.4,434.0)">glazer</text>
<rect x="118.8" y="422.5" width="56.8" height="1.5" class="bar-1"><title>rusty_csv: 734.7 (decode)</title></rect>
<text x="147.2" y="419.5" text-anchor="middle" font-size="8" class="muted">734.7</text>
<text x="147.2" y="434.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 147.2,434.0)">rusty_csv</text>
<rect x="181.6" y="417.6" width="56.8" height="6.4" class="bar-2"><title>nimble_csv: 3193.6 (decode)</title></rect>
<text x="210.0" y="414.6" text-anchor="middle" font-size="8" class="muted">3193.6</text>
<text x="210.0" y="434.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 210.0,434.0)">nimble_csv</text>
<rect x="244.4" y="413.8" width="56.8" height="10.2" class="bar-3"><title>csv: 5090.7 (decode)</title></rect>
<text x="272.8" y="410.8" text-anchor="middle" font-size="8" class="muted">5090.7</text>
<text x="272.8" y="434.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 272.8,434.0)">csv</text>
<rect x="307.2" y="352.3" width="56.8" height="71.7" class="bar-4"><title>erl_csv: 35861.7 (decode)</title></rect>
<text x="335.6" y="349.3" text-anchor="middle" font-size="8" class="muted">35861.7</text>
<text x="335.6" y="434.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 335.6,434.0)">erl_csv</text>
<line x1="50.0" y1="424.0" x2="370.0" y2="424.0" class="axis" stroke-width="1"/>
<text x="570.0" y="342.0" text-anchor="middle" font-size="13" font-weight="bold" class="fg">CSV encode — 130.9K</text>
<line x1="430.0" y1="424.0" x2="750.0" y2="424.0" class="grid" stroke-width="1"/>
<text x="424.0" y="427.0" text-anchor="end" font-size="9" class="muted">0</text>
<line x1="430.0" y1="397.3" x2="750.0" y2="397.3" class="grid" stroke-width="1"/>
<text x="424.0" y="400.3" text-anchor="end" font-size="9" class="muted">10000</text>
<line x1="430.0" y1="370.7" x2="750.0" y2="370.7" class="grid" stroke-width="1"/>
<text x="424.0" y="373.7" text-anchor="end" font-size="9" class="muted">20000</text>
<line x1="430.0" y1="344.0" x2="750.0" y2="344.0" class="grid" stroke-width="1"/>
<text x="424.0" y="347.0" text-anchor="end" font-size="9" class="muted">30000</text>
<rect x="436.0" y="423.2" width="56.8" height="0.8" class="bar-glazer"><title>glazer: 292.3 (encode)</title></rect>
<text x="464.4" y="420.2" text-anchor="middle" font-size="8" class="muted">292.3</text>
<text x="464.4" y="434.0" text-anchor="end" font-size="9" class="fg" font-weight="bold" transform="rotate(-35 464.4,434.0)">glazer</text>
<text x="527.2" y="420.0" text-anchor="middle" font-size="8" class="faint">N/A</text>
<text x="527.2" y="434.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 527.2,434.0)">rusty_csv</text>
<rect x="561.6" y="417.6" width="56.8" height="6.4" class="bar-2"><title>nimble_csv: 2400.3 (encode)</title></rect>
<text x="590.0" y="414.6" text-anchor="middle" font-size="8" class="muted">2400.3</text>
<text x="590.0" y="434.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 590.0,434.0)">nimble_csv</text>
<rect x="624.4" y="389.3" width="56.8" height="34.7" class="bar-3"><title>csv: 12998.2 (encode)</title></rect>
<text x="652.8" y="386.3" text-anchor="middle" font-size="8" class="muted">12998.2</text>
<text x="652.8" y="434.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 652.8,434.0)">csv</text>
<rect x="687.2" y="362.5" width="56.8" height="61.5" class="bar-4"><title>erl_csv: 23057.3 (encode)</title></rect>
<text x="715.6" y="359.5" text-anchor="middle" font-size="8" class="muted">23057.3</text>
<text x="715.6" y="434.0" text-anchor="end" font-size="9" class="fg" transform="rotate(-35 715.6,434.0)">erl_csv</text>
<line x1="430.0" y1="424.0" x2="750.0" y2="424.0" class="axis" stroke-width="1"/>
</svg>