Files
json/images/perf_blog_overview.svg
T
2026-12-06 16:17:12 +00:00

98 lines
9.1 KiB
XML

<svg class="nj-fig nj-charts nj-charts--blog" viewBox="0 0 560 604" role="img" aria-labelledby="nj-blog-overview nj-blog-overview-d" xmlns="http://www.w3.org/2000/svg">
<title id="nj-blog-overview">Speedup of 3.13.0 over 3.12.0 per workload, Apple M1 Max, Apple clang</title>
<desc id="nj-blog-overview-d">Horizontal bars of the speedup, more is better. twitter.json 3.5x; citm_catalog.json 5.0x; canada.json 4.0x; canada.json, indented 7.4x; citm, ordered_json 8.1x; twitter, std::ifstream 2.5x; citm, FILE* 15x; citm, accept() 13x; dump() twitter 6.6x; dump() canada 2.9x; dump(4) citm 4.6x; to_cbor() twitter 4.5x; twitter, memory 3.5x; twitter, FILE* 9.3x; diff() canada 10x; iterate canada 2.0x; copy + destroy citm 1.10x; == citm 1.01x.</desc>
<text class="nj-charts-panel" x="8" y="20">Parsing</text>
<text class="nj-charts-panel" x="8" y="244">Writing</text>
<text class="nj-charts-panel" x="8" y="372">Reading C&#8203;BOR</text>
<text class="nj-charts-panel" x="8" y="452">Values</text>
<line class="nj-charts-grid" x1="210.625" y1="8" x2="210.625" y2="560"/>
<text class="nj-charts-tick" x="210.625" y="576">1&#215;</text>
<line class="nj-charts-grid" x1="231.25" y1="8" x2="231.25" y2="560"/>
<text class="nj-charts-tick" x="231.25" y="576">2&#215;</text>
<line class="nj-charts-grid" x1="251.875" y1="8" x2="251.875" y2="560"/>
<text class="nj-charts-tick" x="251.875" y="576">3&#215;</text>
<line class="nj-charts-grid" x1="272.5" y1="8" x2="272.5" y2="560"/>
<text class="nj-charts-tick" x="272.5" y="576">4&#215;</text>
<line class="nj-charts-grid" x1="293.125" y1="8" x2="293.125" y2="560"/>
<text class="nj-charts-tick" x="293.125" y="576">5&#215;</text>
<line class="nj-charts-grid" x1="313.75" y1="8" x2="313.75" y2="560"/>
<text class="nj-charts-tick" x="313.75" y="576">6&#215;</text>
<line class="nj-charts-grid" x1="334.375" y1="8" x2="334.375" y2="560"/>
<text class="nj-charts-tick" x="334.375" y="576">7&#215;</text>
<line class="nj-charts-grid" x1="355" y1="8" x2="355" y2="560"/>
<text class="nj-charts-tick" x="355" y="576">8&#215;</text>
<line class="nj-charts-grid" x1="375.625" y1="8" x2="375.625" y2="560"/>
<text class="nj-charts-tick" x="375.625" y="576">9&#215;</text>
<line class="nj-charts-grid" x1="396.25" y1="8" x2="396.25" y2="560"/>
<text class="nj-charts-tick" x="396.25" y="576">10&#215;</text>
<line class="nj-charts-grid" x1="416.875" y1="8" x2="416.875" y2="560"/>
<text class="nj-charts-tick" x="416.875" y="576">11&#215;</text>
<line class="nj-charts-grid" x1="437.5" y1="8" x2="437.5" y2="560"/>
<text class="nj-charts-tick" x="437.5" y="576">12&#215;</text>
<line class="nj-charts-grid" x1="458.125" y1="8" x2="458.125" y2="560"/>
<text class="nj-charts-tick" x="458.125" y="576">13&#215;</text>
<line class="nj-charts-grid" x1="478.75" y1="8" x2="478.75" y2="560"/>
<text class="nj-charts-tick" x="478.75" y="576">14&#215;</text>
<line class="nj-charts-grid" x1="499.375" y1="8" x2="499.375" y2="560"/>
<text class="nj-charts-tick" x="499.375" y="576">15&#215;</text>
<line class="nj-charts-grid" x1="520" y1="8" x2="520" y2="560"/>
<text class="nj-charts-tick" x="520" y="576">16&#215;</text>
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="42" text-anchor="end">twitter.json</text>
<path class="nj-charts-c1" d="M190 30 H258.806 Q262.806 30 262.806 34 V41 Q262.806 45 258.806 45 H190 Z"><title>twitter.json: 3.5&#215;</title></path>
<text class="nj-charts-val" x="267.806" y="42">3.5&#215;</text>
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="66" text-anchor="end">citm_catalog.json</text>
<path class="nj-charts-c1" d="M190 54 H290.156 Q294.156 54 294.156 58 V65 Q294.156 69 290.156 69 H190 Z"><title>citm_catalog.json: 5.0&#215;</title></path>
<text class="nj-charts-val" x="299.156" y="66">5.0&#215;</text>
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="90" text-anchor="end">canada.json</text>
<path class="nj-charts-c1" d="M190 78 H269.531 Q273.531 78 273.531 82 V89 Q273.531 93 269.531 93 H190 Z"><title>canada.json: 4.0&#215;</title></path>
<text class="nj-charts-val" x="278.531" y="90">4.0&#215;</text>
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="114" text-anchor="end">canada.json, indented</text>
<path class="nj-charts-c1" d="M190 102 H338.625 Q342.625 102 342.625 106 V113 Q342.625 117 338.625 117 H190 Z"><title>canada.json, indented: 7.4&#215;</title></path>
<text class="nj-charts-val" x="347.625" y="114">7.4&#215;</text>
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="138" text-anchor="end">citm, ordered_json</text>
<path class="nj-charts-c1" d="M190 126 H353.269 Q357.269 126 357.269 130 V137 Q357.269 141 353.269 141 H190 Z"><title>citm, ordered_json: 8.1&#215;</title></path>
<text class="nj-charts-val" x="362.269" y="138">8.1&#215;</text>
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="162" text-anchor="end">twitter, std::ifstream</text>
<path class="nj-charts-c1" d="M190 150 H236.944 Q240.944 150 240.944 154 V161 Q240.944 165 236.944 165 H190 Z"><title>twitter, std::ifstream: 2.5&#215;</title></path>
<text class="nj-charts-val" x="245.944" y="162">2.5&#215;</text>
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="186" text-anchor="end">citm, FILE*</text>
<path class="nj-charts-c1" d="M190 174 H492.694 Q496.694 174 496.694 178 V185 Q496.694 189 492.694 189 H190 Z"><title>citm, FILE*: 15&#215;</title></path>
<text class="nj-charts-val" x="501.694" y="186">15&#215;</text>
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="210" text-anchor="end">citm, accept()</text>
<path class="nj-charts-c1" d="M190 198 H463.613 Q467.613 198 467.613 202 V209 Q467.613 213 463.613 213 H190 Z"><title>citm, accept(): 13&#215;</title></path>
<text class="nj-charts-val" x="472.613" y="210">13&#215;</text>
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="266" text-anchor="end">dump() twitter</text>
<path class="nj-charts-c1" d="M190 254 H321.712 Q325.712 254 325.712 258 V265 Q325.712 269 321.712 269 H190 Z"><title>dump() twitter: 6.6&#215;</title></path>
<text class="nj-charts-val" x="330.712" y="266">6.6&#215;</text>
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="290" text-anchor="end">dump() canada</text>
<path class="nj-charts-c1" d="M190 278 H246.019 Q250.019 278 250.019 282 V289 Q250.019 293 246.019 293 H190 Z"><title>dump() canada: 2.9&#215;</title></path>
<text class="nj-charts-val" x="255.019" y="290">2.9&#215;</text>
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="314" text-anchor="end">dump(4) citm</text>
<path class="nj-charts-c1" d="M190 302 H281.7 Q285.7 302 285.7 306 V313 Q285.7 317 281.7 317 H190 Z"><title>dump(4) citm: 4.6&#215;</title></path>
<text class="nj-charts-val" x="290.7" y="314">4.6&#215;</text>
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="338" text-anchor="end">to_cbor() twitter</text>
<path class="nj-charts-c1" d="M190 326 H279.637 Q283.637 326 283.637 330 V337 Q283.637 341 279.637 341 H190 Z"><title>to_cbor() twitter: 4.5&#215;</title></path>
<text class="nj-charts-val" x="288.637" y="338">4.5&#215;</text>
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="394" text-anchor="end">twitter, memory</text>
<path class="nj-charts-c1" d="M190 382 H258.6 Q262.6 382 262.6 386 V393 Q262.6 397 258.6 397 H190 Z"><title>twitter, memory: 3.5&#215;</title></path>
<text class="nj-charts-val" x="267.6" y="394">3.5&#215;</text>
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="418" text-anchor="end">twitter, FILE*</text>
<path class="nj-charts-c1" d="M190 406 H378.019 Q382.019 406 382.019 410 V417 Q382.019 421 378.019 421 H190 Z"><title>twitter, FILE*: 9.3&#215;</title></path>
<text class="nj-charts-val" x="387.019" y="418">9.3&#215;</text>
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="474" text-anchor="end">diff() canada</text>
<path class="nj-charts-c1" d="M190 462 H396.581 Q400.581 462 400.581 466 V473 Q400.581 477 396.581 477 H190 Z"><title>diff() canada: 10&#215;</title></path>
<text class="nj-charts-val" x="405.581" y="474">10&#215;</text>
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="498" text-anchor="end">iterate canada</text>
<path class="nj-charts-c1" d="M190 486 H228.075 Q232.075 486 232.075 490 V497 Q232.075 501 228.075 501 H190 Z"><title>iterate canada: 2.0&#215;</title></path>
<text class="nj-charts-val" x="237.075" y="498">2.0&#215;</text>
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="522" text-anchor="end">copy + destroy citm</text>
<path class="nj-charts-c1" d="M190 510 H208.688 Q212.688 510 212.688 514 V521 Q212.688 525 208.688 525 H190 Z"><title>copy + destroy citm: 1.10&#215;</title></path>
<text class="nj-charts-val" x="217.688" y="522">1.10&#215;</text>
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="546" text-anchor="end">== citm</text>
<path class="nj-charts-c1" d="M190 534 H206.831 Q210.831 534 210.831 538 V545 Q210.831 549 206.831 549 H190 Z"><title>== citm: 1.01&#215;</title></path>
<text class="nj-charts-val" x="215.831" y="546">1.01&#215;</text>
<line class="nj-charts-ref" x1="210.625" y1="8" x2="210.625" y2="560"/>
<line class="nj-charts-zero" x1="190" y1="8" x2="190" y2="560"/>
<text class="nj-charts-tick" x="355" y="594">speedup over 3.12.0 (3.12.0 = 1&#215;), more is better</text>
</svg>