380 lines
46 KiB
XML
380 lines
46 KiB
XML
<svg class="nj-fig nj-charts nj-charts--blog nj-charts--heat" viewBox="0 0 784 510" role="img" aria-labelledby="nj-blog-uc-mac nj-blog-uc-mac-d" xmlns="http://www.w3.org/2000/svg">
|
||
<title id="nj-blog-uc-mac">Use cases: time of each library relative to the fastest, Apple M1 Max</title>
|
||
<desc id="nj-blog-uc-mac-d">Table of relative times, libraries by use case. nlohmann/json json_document validate: 1.00; nlohmann/json json_document sum: 1.00; nlohmann/json json_document select: 1.00; nlohmann/json json_document edit: 1.00 (0.85 doing less, N); nlohmann/json json_document minify: 1.00 (0.84 doing less, N); nlohmann/json json_document write: 1.00 (0.69 doing less, N); yyjson validate: 1.42; yyjson sum: 1.15; yyjson select: 1.31; yyjson edit: 1.49; yyjson minify: 1.25 (1.18 doing less, N); yyjson write: 1.23; simdjson validate: 1.55; simdjson sum: 1.20; simdjson select: 1.35 (0.76 doing less, P); simdjson edit: n/a; simdjson minify: 1.72 (0.18 doing less, P); simdjson write: 2.36; sonic-rs (Rust) validate: 1.95; sonic-rs (Rust) sum: 1.56; sonic-rs (Rust) select: 1.87; sonic-rs (Rust) edit: 2.13; sonic-rs (Rust) minify: 1.96; sonic-rs (Rust) write: 2.41; sonic-cpp validate: no fully validating way (2.55 doing less, U); sonic-cpp sum: no fully validating way (1.86 doing less, U); sonic-cpp select: no fully validating way (2.34 doing less, U); sonic-cpp edit: no fully validating way (1.71 doing less, U); sonic-cpp minify: no fully validating way (2.03 doing less, U); sonic-cpp write: 1.60; simd-json (Rust) validate: 2.11; simd-json (Rust) sum: 1.66; simd-json (Rust) select: 2.43; simd-json (Rust) edit: 2.89; simd-json (Rust) minify: 3.44; simd-json (Rust) write: 3.13; nlohmann/json json validate: 1.40; nlohmann/json json sum: 1.35; nlohmann/json json select: 6.15; nlohmann/json json edit: 3.22; nlohmann/json json minify: 4.41; nlohmann/json json write: 2.06; Glaze validate: 2.07; Glaze sum: 3.89; Glaze select: 1.81 (0.83 doing less, P); Glaze edit: 4.45; Glaze minify: 5.22 (1.03 doing less, P); Glaze write: 2.19; Boost.J​SON validate: 2.58; Boost.J​SON sum: 2.01; Boost.J​SON select: 3.33; Boost.J​SON edit: 3.26; Boost.J​SON minify: 3.87; Boost.J​SON write: 3.68; serde_json (Rust) validate: 2.51 (2.27 doing less, U); serde_json (Rust) sum: 2.64; serde_json (Rust) select: 2.45 (2.29 doing less, U); serde_json (Rust) edit: 5.10; serde_json (Rust) minify: 5.91; serde_json (Rust) write: 2.98; RapidJSON validate: 4.77 (3.13 doing less, U); RapidJSON sum: 4.20 (2.87 doing less, U); RapidJSON select: 6.05 (3.96 doing less, U); RapidJSON edit: 4.89 (3.87 doing less, U); RapidJSON minify: 4.84 (3.60 doing less, U N); RapidJSON write: 5.86.</desc>
|
||
<text class="nj-charts-tick" x="270" y="34">validate</text>
|
||
<text class="nj-charts-tick" x="362" y="34">sum</text>
|
||
<text class="nj-charts-tick" x="454" y="34">select</text>
|
||
<text class="nj-charts-tick" x="546" y="34">edit</text>
|
||
<text class="nj-charts-tick" x="638" y="34">minify</text>
|
||
<text class="nj-charts-tick" x="730" y="34">write</text>
|
||
<text class="nj-charts-rowlabel nj-charts-name-json" x="216" y="66" text-anchor="end">nlohmann/json json_document</text>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · validate 1.00× the time of the fastest library (fully validating) way: accept twitter.json: 168 µs citm_catalog.json: 313 µs canada.json: 865 µs jeopardy.json: 20,582 µs">
|
||
<rect class="nj-heat-0" x="225" y="45" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="270" y="66" text-anchor="middle">1.00</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · sum 1.00× the time of the fastest library (fully validating) way: parse twitter.json: 219 µs citm_catalog.json: 484 µs canada.json: 1,802 µs jeopardy.json: 28,838 µs">
|
||
<rect class="nj-heat-0" x="317" y="45" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="362" y="66" text-anchor="middle">1.00</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · select 1.00× the time of the fastest library (fully validating) way: parse twitter.json: 179 µs citm_catalog.json: 362 µs canada.json: 942 µs jeopardy.json: 24,436 µs">
|
||
<rect class="nj-heat-0" x="409" y="45" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="454" y="66" text-anchor="middle">1.00</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · edit 1.00× the time of the fastest library (fully validating) way: editable twitter.json: 281 µs citm_catalog.json: 557 µs canada.json: 2,737 µs jeopardy.json: 57,427 µs">
|
||
<rect class="nj-heat-0" x="501" y="45" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="523.5" y="66" text-anchor="middle">1.00</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · edit, checking less 0.85× the time of the fastest fully validating library twitter.json: 280 µs · editable (source numbers) (validates fully) citm_catalog.json: 557 µs · editable (validates fully) canada.json: 1,446 µs · editable (source numbers) (validates fully) jeopardy.json: 57,348 µs · editable (source numbers) (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||
<rect class="nj-heat-0" x="547" y="45" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="568.5" y="60" text-anchor="middle">0.85</text>
|
||
<text class="nj-charts-cell nj-charts-cell--small" x="568.5" y="73" text-anchor="middle">N</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · minify 1.00× the time of the fastest library (fully validating) way: parse + dump twitter.json: 256 µs citm_catalog.json: 495 µs canada.json: 2,570 µs jeopardy.json: 37,436 µs">
|
||
<rect class="nj-heat-0" x="593" y="45" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="615.5" y="66" text-anchor="middle">1.00</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · minify, checking less 0.84× the time of the fastest fully validating library way: parse + dump (source numbers) twitter.json: 250 µs (validates fully) citm_catalog.json: 494 µs (validates fully) canada.json: 1,341 µs (validates fully) jeopardy.json: 37,239 µs (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||
<rect class="nj-heat-0" x="639" y="45" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="660.5" y="60" text-anchor="middle">0.84</text>
|
||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="73" text-anchor="middle">N</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · write 1.00× the time of the fastest library (fully validating) way: dump twitter.json: 75.2 µs citm_catalog.json: 136 µs canada.json: 1,626 µs jeopardy.json: 14,602 µs">
|
||
<rect class="nj-heat-0" x="685" y="45" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="707.5" y="66" text-anchor="middle">1.00</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · write, checking less 0.69× the time of the fastest fully validating library twitter.json: 72.8 µs · dump (source numbers) (validates fully) citm_catalog.json: 134 µs · dump (source numbers) (validates fully) canada.json: 398 µs · dump (source numbers) (validates fully) jeopardy.json: 14,602 µs · dump (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||
<rect class="nj-heat-0" x="731" y="45" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="752.5" y="60" text-anchor="middle">0.69</text>
|
||
<text class="nj-charts-cell nj-charts-cell--small" x="752.5" y="73" text-anchor="middle">N</text>
|
||
</g>
|
||
<text class="nj-charts-rowlabel " x="216" y="102" text-anchor="end">yyjson</text>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · validate 1.42× the time of the fastest library (fully validating) twitter.json: 179 µs · read citm_catalog.json: 472 µs · insitu (copy) canada.json: 1,490 µs · insitu (copy) jeopardy.json: 30,452 µs · read (raw numbers) (copy): parses in place, on a copy of the input that is part of the time">
|
||
<rect class="nj-heat-1" x="225" y="81" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="270" y="102" text-anchor="middle">1.42</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · sum 1.15× the time of the fastest library (fully validating) way: read twitter.json: 229 µs citm_catalog.json: 573 µs canada.json: 1,939 µs jeopardy.json: 37,474 µs">
|
||
<rect class="nj-heat-0" x="317" y="81" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="362" y="102" text-anchor="middle">1.15</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · select 1.31× the time of the fastest library (fully validating) twitter.json: 190 µs · insitu (copy) citm_catalog.json: 480 µs · read canada.json: 1,488 µs · insitu (copy) jeopardy.json: 32,288 µs · read (raw numbers) (copy): parses in place, on a copy of the input that is part of the time">
|
||
<rect class="nj-heat-1" x="409" y="81" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="454" y="102" text-anchor="middle">1.31</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · edit 1.49× the time of the fastest library (fully validating) way: insitu (copy) + mut copy twitter.json: 440 µs citm_catalog.json: 905 µs canada.json: 3,691 µs jeopardy.json: 83,313 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||
<rect class="nj-heat-1" x="501" y="81" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="546" y="102" text-anchor="middle">1.49</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · minify 1.25× the time of the fastest library (fully validating) way: insitu (copy) + write twitter.json: 291 µs citm_catalog.json: 641 µs canada.json: 3,217 µs jeopardy.json: 50,196 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||
<rect class="nj-heat-1" x="593" y="81" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="615.5" y="102" text-anchor="middle">1.25</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · minify, checking less 1.18× the time of the fastest fully validating library twitter.json: 291 µs · insitu (copy) + write (validates fully) citm_catalog.json: 641 µs · insitu (copy) + write (validates fully) canada.json: 2,519 µs · read (raw numbers) + write (validates fully) jeopardy.json: 50,196 µs · insitu (copy) + write (validates fully) copies each number's text instead of formatting it (YYJSON_READ_NUMBER_AS_RAW) (copy): parses in place, on a copy of the input that is part of the time">
|
||
<rect class="nj-heat-1" x="639" y="81" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="660.5" y="96" text-anchor="middle">1.18</text>
|
||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="109" text-anchor="middle">N</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · write 1.23× the time of the fastest library (fully validating) way: write twitter.json: 101 µs citm_catalog.json: 164 µs canada.json: 1,716 µs jeopardy.json: 19,722 µs">
|
||
<rect class="nj-heat-1" x="685" y="81" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="730" y="102" text-anchor="middle">1.23</text>
|
||
</g>
|
||
<text class="nj-charts-rowlabel " x="216" y="138" text-anchor="end">simdjson</text>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · validate 1.55× the time of the fastest library (fully validating) way: D​OM twitter.json: 212 µs citm_catalog.json: 462 µs canada.json: 1,889 µs jeopardy.json: 28,974 µs">
|
||
<rect class="nj-heat-2" x="225" y="117" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="270" y="138" text-anchor="middle">1.55</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · sum 1.20× the time of the fastest library (fully validating) twitter.json: 247 µs · D​OM citm_catalog.json: 566 µs · On-Demand canada.json: 2,374 µs · On-Demand jeopardy.json: 34,863 µs · D​OM">
|
||
<rect class="nj-heat-1" x="317" y="117" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="362" y="138" text-anchor="middle">1.20</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · select 1.35× the time of the fastest library (fully validating) way: D​OM twitter.json: 193 µs citm_catalog.json: 448 µs canada.json: 1,888 µs jeopardy.json: 30,483 µs">
|
||
<rect class="nj-heat-1" x="409" y="117" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="431.5" y="138" text-anchor="middle">1.35</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · select, checking less 0.76× the time of the fastest fully validating library twitter.json: 125 µs · On-Demand structs citm_catalog.json: 352 µs · On-Demand canada.json: 568 µs · On-Demand jeopardy.json: 19,629 µs · On-Demand reads lazily: On-Demand reads only what you ask for and steps over the rest by matching brackets">
|
||
<rect class="nj-heat-0" x="455" y="117" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="476.5" y="132" text-anchor="middle">0.76</text>
|
||
<text class="nj-charts-cell nj-charts-cell--small" x="476.5" y="145" text-anchor="middle">P</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · edit simdjson's documents are read-only: it has no A​PI to change a value and write the result">
|
||
<rect class="nj-heat-na" x="501" y="117" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-tick" x="546" y="138">n/a</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · minify 1.72× the time of the fastest library (fully validating) way: D​OM + to_string twitter.json: 413 µs citm_catalog.json: 830 µs canada.json: 5,072 µs jeopardy.json: 60,913 µs">
|
||
<rect class="nj-heat-2" x="593" y="117" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="615.5" y="138" text-anchor="middle">1.72</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · minify, checking less 0.18× the time of the fastest fully validating library way: minify twitter.json: 61.3 µs citm_catalog.json: 168 µs canada.json: 228 µs jeopardy.json: 5,674 µs simdjson::minify() only removes whitespace, without parsing the values">
|
||
<rect class="nj-heat-0" x="639" y="117" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="660.5" y="132" text-anchor="middle">0.18</text>
|
||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="145" text-anchor="middle">P</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · write 2.36× the time of the fastest library (fully validating) way: to_string twitter.json: 195 µs citm_catalog.json: 384 µs canada.json: 3,194 µs jeopardy.json: 31,714 µs">
|
||
<rect class="nj-heat-2" x="685" y="117" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="730" y="138" text-anchor="middle">2.36</text>
|
||
</g>
|
||
<text class="nj-charts-rowlabel " x="216" y="174" text-anchor="end">sonic-rs (Rust)</text>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · validate 1.95× the time of the fastest library (fully validating) way: Value twitter.json: 325 µs citm_catalog.json: 686 µs canada.json: 1,935 µs jeopardy.json: 31,234 µs">
|
||
<rect class="nj-heat-2" x="225" y="153" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="270" y="174" text-anchor="middle">1.95</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · sum 1.56× the time of the fastest library (fully validating) way: visitor twitter.json: 372 µs citm_catalog.json: 779 µs canada.json: 2,727 µs jeopardy.json: 41,807 µs">
|
||
<rect class="nj-heat-2" x="317" y="153" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="362" y="174" text-anchor="middle">1.56</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · select 1.87× the time of the fastest library (fully validating) way: Value twitter.json: 333 µs citm_catalog.json: 694 µs canada.json: 1,937 µs jeopardy.json: 40,455 µs">
|
||
<rect class="nj-heat-2" x="409" y="153" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="454" y="174" text-anchor="middle">1.87</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · edit 2.13× the time of the fastest library (fully validating) way: Value twitter.json: 636 µs citm_catalog.json: 1,263 µs canada.json: 4,393 µs jeopardy.json: 142,331 µs">
|
||
<rect class="nj-heat-2" x="501" y="153" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="546" y="174" text-anchor="middle">2.13</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · minify 1.96× the time of the fastest library (fully validating) way: Value twitter.json: 550 µs citm_catalog.json: 1,148 µs canada.json: 4,388 µs jeopardy.json: 65,218 µs">
|
||
<rect class="nj-heat-2" x="593" y="153" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="638" y="174" text-anchor="middle">1.96</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · write 2.41× the time of the fastest library (fully validating) way: Value twitter.json: 218 µs citm_catalog.json: 459 µs canada.json: 2,432 µs jeopardy.json: 33,952 µs">
|
||
<rect class="nj-heat-2" x="685" y="153" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="730" y="174" text-anchor="middle">2.41</text>
|
||
</g>
|
||
<text class="nj-charts-rowlabel " x="216" y="210" text-anchor="end">sonic-cpp</text>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · validate, checking less 2.55× the time of the fastest fully validating library way: Document twitter.json: 380 µs citm_catalog.json: 982 µs canada.json: 2,580 µs jeopardy.json: 41,126 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||
<rect class="nj-heat-3" x="225" y="189" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="270" y="204" text-anchor="middle">2.55</text>
|
||
<text class="nj-charts-cell nj-charts-cell--small" x="270" y="217" text-anchor="middle">U</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · sum, checking less 1.86× the time of the fastest fully validating library way: Document twitter.json: 428 µs citm_catalog.json: 1,085 µs canada.json: 2,959 µs jeopardy.json: 48,328 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||
<rect class="nj-heat-2" x="317" y="189" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="362" y="204" text-anchor="middle">1.86</text>
|
||
<text class="nj-charts-cell nj-charts-cell--small" x="362" y="217" text-anchor="middle">U</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · select, checking less 2.34× the time of the fastest fully validating library way: Document twitter.json: 386 µs citm_catalog.json: 989 µs canada.json: 2,574 µs jeopardy.json: 45,604 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||
<rect class="nj-heat-2" x="409" y="189" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="454" y="204" text-anchor="middle">2.34</text>
|
||
<text class="nj-charts-cell nj-charts-cell--small" x="454" y="217" text-anchor="middle">U</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · edit, checking less 1.71× the time of the fastest fully validating library way: Document twitter.json: 489 µs citm_catalog.json: 1,219 µs canada.json: 5,641 µs jeopardy.json: 63,124 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||
<rect class="nj-heat-2" x="501" y="189" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="546" y="204" text-anchor="middle">1.71</text>
|
||
<text class="nj-charts-cell nj-charts-cell--small" x="546" y="217" text-anchor="middle">U</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · minify, checking less 2.03× the time of the fastest fully validating library way: Document + Serialize twitter.json: 497 µs citm_catalog.json: 1,217 µs canada.json: 5,626 µs jeopardy.json: 60,900 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||
<rect class="nj-heat-2" x="593" y="189" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="638" y="204" text-anchor="middle">2.03</text>
|
||
<text class="nj-charts-cell nj-charts-cell--small" x="638" y="217" text-anchor="middle">U</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · write 1.60× the time of the fastest library (fully validating) way: Serialize twitter.json: 112 µs citm_catalog.json: 236 µs canada.json: 3,046 µs jeopardy.json: 19,821 µs">
|
||
<rect class="nj-heat-2" x="685" y="189" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="730" y="210" text-anchor="middle">1.60</text>
|
||
</g>
|
||
<text class="nj-charts-rowlabel " x="216" y="246" text-anchor="end">simd-json (Rust)</text>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · validate 2.11× the time of the fastest library (fully validating) way: tape (copy) twitter.json: 290 µs citm_catalog.json: 718 µs canada.json: 2,289 µs jeopardy.json: 38,707 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||
<rect class="nj-heat-2" x="225" y="225" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="270" y="246" text-anchor="middle">2.11</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · sum 1.66× the time of the fastest library (fully validating) way: visitor (copy) twitter.json: 365 µs citm_catalog.json: 868 µs canada.json: 2,729 µs jeopardy.json: 48,056 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||
<rect class="nj-heat-2" x="317" y="225" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="362" y="246" text-anchor="middle">1.66</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · select 2.43× the time of the fastest library (fully validating) way: structs (copy) twitter.json: 370 µs citm_catalog.json: 913 µs canada.json: 2,655 µs jeopardy.json: 57,851 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||
<rect class="nj-heat-2" x="409" y="225" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="454" y="246" text-anchor="middle">2.43</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · edit 2.89× the time of the fastest library (fully validating) twitter.json: 952 µs · borrowed (copy) citm_catalog.json: 2,112 µs · borrowed (copy) canada.json: 7,687 µs · owned (copy) jeopardy.json: 110,610 µs · borrowed (copy) (copy): parses in place, on a copy of the input that is part of the time">
|
||
<rect class="nj-heat-3" x="501" y="225" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="546" y="246" text-anchor="middle">2.89</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · minify 3.44× the time of the fastest library (fully validating) way: borrowed (copy) twitter.json: 969 µs citm_catalog.json: 2,107 µs canada.json: 7,698 µs jeopardy.json: 108,355 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||
<rect class="nj-heat-3" x="593" y="225" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="638" y="246" text-anchor="middle">3.44</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · write 3.13× the time of the fastest library (fully validating) way: borrowed twitter.json: 368 µs citm_catalog.json: 490 µs canada.json: 2,744 µs jeopardy.json: 47,185 µs">
|
||
<rect class="nj-heat-3" x="685" y="225" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="730" y="246" text-anchor="middle">3.13</text>
|
||
</g>
|
||
<text class="nj-charts-rowlabel nj-charts-name-json" x="216" y="282" text-anchor="end">nlohmann/json json</text>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · validate 1.40× the time of the fastest library (fully validating) way: accept twitter.json: 232 µs citm_catalog.json: 459 µs canada.json: 1,239 µs jeopardy.json: 27,461 µs">
|
||
<rect class="nj-heat-1" x="225" y="261" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="270" y="282" text-anchor="middle">1.40</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · sum 1.35× the time of the fastest library (fully validating) way: sax twitter.json: 303 µs citm_catalog.json: 594 µs canada.json: 2,208 µs jeopardy.json: 45,434 µs">
|
||
<rect class="nj-heat-1" x="317" y="261" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="362" y="282" text-anchor="middle">1.35</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · select 6.15× the time of the fastest library (fully validating) twitter.json: 1,217 µs · structs (from_json) citm_catalog.json: 2,108 µs · parse canada.json: 5,090 µs · parse jeopardy.json: 163,979 µs · parse">
|
||
<rect class="nj-heat-4" x="409" y="261" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="454" y="282" text-anchor="middle">6.15</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · edit 3.22× the time of the fastest library (fully validating) twitter.json: 1,120 µs · ordered_json citm_catalog.json: 2,035 µs · ordered_json canada.json: 7,331 µs · parse jeopardy.json: 158,720 µs · ordered_json">
|
||
<rect class="nj-heat-3" x="501" y="261" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="546" y="282" text-anchor="middle">3.22</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · minify 4.41× the time of the fastest library (fully validating) way: parse + dump twitter.json: 1,443 µs citm_catalog.json: 2,382 µs canada.json: 7,341 µs jeopardy.json: 181,781 µs">
|
||
<rect class="nj-heat-3" x="593" y="261" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="638" y="282" text-anchor="middle">4.41</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · write 2.06× the time of the fastest library (fully validating) way: dump twitter.json: 215 µs citm_catalog.json: 287 µs canada.json: 2,242 µs jeopardy.json: 31,455 µs">
|
||
<rect class="nj-heat-2" x="685" y="261" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="730" y="282" text-anchor="middle">2.06</text>
|
||
</g>
|
||
<text class="nj-charts-rowlabel " x="216" y="318" text-anchor="end">Glaze</text>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · validate 2.07× the time of the fastest library (fully validating) way: validate_json twitter.json: 331 µs citm_catalog.json: 855 µs canada.json: 1,302 µs jeopardy.json: 46,377 µs">
|
||
<rect class="nj-heat-2" x="225" y="297" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="270" y="318" text-anchor="middle">2.07</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · sum 3.89× the time of the fastest library (fully validating) way: generic (double, strict) twitter.json: 972 µs citm_catalog.json: 2,054 µs canada.json: 6,342 µs jeopardy.json: 99,827 µs">
|
||
<rect class="nj-heat-3" x="317" y="297" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="362" y="318" text-anchor="middle">3.89</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · select 1.81× the time of the fastest library (fully validating) way: structs (validate_skipped) twitter.json: 312 µs citm_catalog.json: 848 µs canada.json: 1,302 µs jeopardy.json: 46,251 µs">
|
||
<rect class="nj-heat-2" x="409" y="297" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="431.5" y="318" text-anchor="middle">1.81</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · select, checking less 0.83× the time of the fastest fully validating library way: structs twitter.json: 238 µs citm_catalog.json: 253 µs canada.json: 310 µs jeopardy.json: 37,390 µs reads into structs and steps over fields it doesn't know without checking them (validate_skipped checks them too)">
|
||
<rect class="nj-heat-0" x="455" y="297" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="476.5" y="312" text-anchor="middle">0.83</text>
|
||
<text class="nj-charts-cell nj-charts-cell--small" x="476.5" y="325" text-anchor="middle">P</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · edit 4.45× the time of the fastest library (fully validating) way: generic (strict) twitter.json: 1,529 µs citm_catalog.json: 3,236 µs canada.json: 10,925 µs jeopardy.json: 179,055 µs">
|
||
<rect class="nj-heat-3" x="501" y="297" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="546" y="318" text-anchor="middle">4.45</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · minify 5.22× the time of the fastest library (fully validating) way: generic (strict) twitter.json: 1,510 µs citm_catalog.json: 3,204 µs canada.json: 10,919 µs jeopardy.json: 170,463 µs">
|
||
<rect class="nj-heat-4" x="593" y="297" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="615.5" y="318" text-anchor="middle">5.22</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · minify, checking less 1.03× the time of the fastest fully validating library way: minify_json twitter.json: 279 µs citm_catalog.json: 730 µs canada.json: 1,708 µs jeopardy.json: 39,468 µs minify_json only removes whitespace, without parsing the values">
|
||
<rect class="nj-heat-0" x="639" y="297" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="660.5" y="312" text-anchor="middle">1.03</text>
|
||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="325" text-anchor="middle">P</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · write 2.19× the time of the fastest library (fully validating) twitter.json: 210 µs · generic citm_catalog.json: 468 µs · generic canada.json: 1,696 µs · generic (strict) jeopardy.json: 33,414 µs · generic">
|
||
<rect class="nj-heat-2" x="685" y="297" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="730" y="318" text-anchor="middle">2.19</text>
|
||
</g>
|
||
<text class="nj-charts-rowlabel " x="216" y="354" text-anchor="end">Boost.J​SON</text>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · validate 2.58× the time of the fastest library (fully validating) way: S​AX (numbers: none) twitter.json: 530 µs citm_catalog.json: 989 µs canada.json: 1,449 µs jeopardy.json: 54,540 µs">
|
||
<rect class="nj-heat-3" x="225" y="333" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="270" y="354" text-anchor="middle">2.58</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · sum 2.01× the time of the fastest library (fully validating) way: S​AX twitter.json: 537 µs citm_catalog.json: 1,007 µs canada.json: 3,053 µs jeopardy.json: 54,616 µs">
|
||
<rect class="nj-heat-2" x="317" y="333" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="362" y="354" text-anchor="middle">2.01</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · select 3.33× the time of the fastest library (fully validating) twitter.json: 620 µs · parse_into structs citm_catalog.json: 1,205 µs · parse_into structs canada.json: 3,632 µs · parse jeopardy.json: 67,371 µs · parse_into structs">
|
||
<rect class="nj-heat-3" x="409" y="333" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="454" y="354" text-anchor="middle">3.33</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · edit 3.26× the time of the fastest library (fully validating) way: parse twitter.json: 1,362 µs citm_catalog.json: 2,002 µs canada.json: 6,523 µs jeopardy.json: 156,766 µs">
|
||
<rect class="nj-heat-3" x="501" y="333" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="546" y="354" text-anchor="middle">3.26</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · minify 3.87× the time of the fastest library (fully validating) way: parse + serialize twitter.json: 1,382 µs citm_catalog.json: 1,991 µs canada.json: 6,534 µs jeopardy.json: 152,254 µs">
|
||
<rect class="nj-heat-3" x="593" y="333" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="638" y="354" text-anchor="middle">3.87</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · write 3.68× the time of the fastest library (fully validating) way: serialize twitter.json: 498 µs citm_catalog.json: 502 µs canada.json: 2,871 µs jeopardy.json: 62,307 µs">
|
||
<rect class="nj-heat-3" x="685" y="333" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="730" y="354" text-anchor="middle">3.68</text>
|
||
</g>
|
||
<text class="nj-charts-rowlabel " x="216" y="390" text-anchor="end">serde_json (Rust)</text>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · validate 2.51× the time of the fastest library (fully validating) way: from_utf8 + IgnoredAny twitter.json: 461 µs citm_catalog.json: 1,104 µs canada.json: 1,561 µs jeopardy.json: 46,689 µs">
|
||
<rect class="nj-heat-3" x="225" y="369" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="247.5" y="390" text-anchor="middle">2.51</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · validate, checking less 2.27× the time of the fastest fully validating library way: IgnoredAny twitter.json: 357 µs citm_catalog.json: 1,055 µs canada.json: 1,460 µs jeopardy.json: 45,135 µs trusts U​TF-8 in the strings it skips (from_slice); strings it reads are checked">
|
||
<rect class="nj-heat-2" x="271" y="369" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="292.5" y="384" text-anchor="middle">2.27</text>
|
||
<text class="nj-charts-cell nj-charts-cell--small" x="292.5" y="397" text-anchor="middle">U</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · sum 2.64× the time of the fastest library (fully validating) way: visitor twitter.json: 661 µs citm_catalog.json: 1,238 µs canada.json: 4,799 µs jeopardy.json: 68,254 µs">
|
||
<rect class="nj-heat-3" x="317" y="369" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="362" y="390" text-anchor="middle">2.64</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · select 2.45× the time of the fastest library (fully validating) way: from_utf8 + structs twitter.json: 484 µs citm_catalog.json: 1,126 µs canada.json: 1,559 µs jeopardy.json: 63,574 µs">
|
||
<rect class="nj-heat-2" x="409" y="369" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="431.5" y="390" text-anchor="middle">2.45</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · select, checking less 2.29× the time of the fastest fully validating library twitter.json: 412 µs · structs citm_catalog.json: 1,086 µs · structs canada.json: 1,454 µs · structs jeopardy.json: 63,574 µs · from_utf8 + structs (validates fully) trusts U​TF-8 in the strings it skips (from_slice); strings it reads are checked">
|
||
<rect class="nj-heat-2" x="455" y="369" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="476.5" y="384" text-anchor="middle">2.29</text>
|
||
<text class="nj-charts-cell nj-charts-cell--small" x="476.5" y="397" text-anchor="middle">U</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · edit 5.10× the time of the fastest library (fully validating) way: Value twitter.json: 2,036 µs citm_catalog.json: 3,323 µs canada.json: 9,645 µs jeopardy.json: 255,608 µs">
|
||
<rect class="nj-heat-4" x="501" y="369" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="546" y="390" text-anchor="middle">5.10</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · minify 5.91× the time of the fastest library (fully validating) way: Value twitter.json: 2,020 µs citm_catalog.json: 3,296 µs canada.json: 9,635 µs jeopardy.json: 232,185 µs">
|
||
<rect class="nj-heat-4" x="593" y="369" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="638" y="390" text-anchor="middle">5.91</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · write 2.98× the time of the fastest library (fully validating) way: Value twitter.json: 340 µs citm_catalog.json: 497 µs canada.json: 2,257 µs jeopardy.json: 50,311 µs">
|
||
<rect class="nj-heat-3" x="685" y="369" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="730" y="390" text-anchor="middle">2.98</text>
|
||
</g>
|
||
<text class="nj-charts-rowlabel " x="216" y="426" text-anchor="end">RapidJSON</text>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · validate 4.77× the time of the fastest library (fully validating) twitter.json: 1,312 µs · insitu (copy) citm_catalog.json: 1,392 µs · S​AX (string stream, default precision) canada.json: 1,976 µs · S​AX (string stream, default precision) jeopardy.json: 134,644 µs · S​AX (string stream, default precision) (copy): parses in place, on a copy of the input that is part of the time">
|
||
<rect class="nj-heat-3" x="225" y="405" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="247.5" y="426" text-anchor="middle">4.77</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · validate, checking less 3.13× the time of the fastest fully validating library twitter.json: 690 µs · insitu (copy) (no encoding check) citm_catalog.json: 1,029 µs · S​AX (string stream, default precision) (no encoding check) canada.json: 1,976 µs · S​AX (string stream, default precision) (validates fully) jeopardy.json: 64,302 µs · insitu (copy) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) (copy): parses in place, on a copy of the input that is part of the time">
|
||
<rect class="nj-heat-3" x="271" y="405" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="292.5" y="420" text-anchor="middle">3.13</text>
|
||
<text class="nj-charts-cell nj-charts-cell--small" x="292.5" y="433" text-anchor="middle">U</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · sum 4.20× the time of the fastest library (fully validating) twitter.json: 1,346 µs · S​AX citm_catalog.json: 1,454 µs · S​AX (string stream) canada.json: 6,453 µs · S​AX (string stream) jeopardy.json: 135,579 µs · S​AX (string stream)">
|
||
<rect class="nj-heat-3" x="317" y="405" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="339.5" y="426" text-anchor="middle">4.20</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · sum, checking less 2.87× the time of the fastest fully validating library twitter.json: 730 µs · S​AX (string stream) (no encoding check) citm_catalog.json: 1,132 µs · S​AX (string stream) (no encoding check) canada.json: 6,427 µs · S​AX (string stream) (no encoding check) jeopardy.json: 70,706 µs · insitu (copy) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) (copy): parses in place, on a copy of the input that is part of the time">
|
||
<rect class="nj-heat-3" x="363" y="405" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="384.5" y="420" text-anchor="middle">2.87</text>
|
||
<text class="nj-charts-cell nj-charts-cell--small" x="384.5" y="433" text-anchor="middle">U</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · select 6.05× the time of the fastest library (fully validating) way: insitu (copy) twitter.json: 1,317 µs citm_catalog.json: 1,564 µs canada.json: 6,761 µs jeopardy.json: 143,406 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||
<rect class="nj-heat-4" x="409" y="405" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="431.5" y="426" text-anchor="middle">6.05</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · select, checking less 3.96× the time of the fastest fully validating library twitter.json: 703 µs · insitu (copy) (no encoding check) citm_catalog.json: 1,152 µs · insitu (copy) (no encoding check) canada.json: 6,761 µs · insitu (copy) (validates fully) jeopardy.json: 67,167 µs · insitu (copy) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) (copy): parses in place, on a copy of the input that is part of the time">
|
||
<rect class="nj-heat-3" x="455" y="405" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="476.5" y="420" text-anchor="middle">3.96</text>
|
||
<text class="nj-charts-cell nj-charts-cell--small" x="476.5" y="433" text-anchor="middle">U</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · edit 4.89× the time of the fastest library (fully validating) twitter.json: 1,928 µs · Document citm_catalog.json: 2,385 µs · Document (string stream) canada.json: 13,768 µs · Document (string stream) jeopardy.json: 222,367 µs · Document (string stream)">
|
||
<rect class="nj-heat-3" x="501" y="405" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="523.5" y="426" text-anchor="middle">4.89</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · edit, checking less 3.87× the time of the fastest fully validating library way: insitu (copy) (no encoding check) twitter.json: 1,358 µs citm_catalog.json: 1,993 µs canada.json: 13,737 µs jeopardy.json: 147,900 µs trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) (copy): parses in place, on a copy of the input that is part of the time">
|
||
<rect class="nj-heat-3" x="547" y="405" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="568.5" y="420" text-anchor="middle">3.87</text>
|
||
<text class="nj-charts-cell nj-charts-cell--small" x="568.5" y="433" text-anchor="middle">U</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · minify 4.84× the time of the fastest library (fully validating) twitter.json: 1,501 µs · S​AX to Writer citm_catalog.json: 1,784 µs · S​AX to Writer (string stream) canada.json: 14,332 µs · Document + Writer jeopardy.json: 173,504 µs · S​AX to Writer (string stream)">
|
||
<rect class="nj-heat-3" x="593" y="405" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="615.5" y="426" text-anchor="middle">4.84</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · minify, checking less 3.60× the time of the fastest fully validating library twitter.json: 1,045 µs · S​AX to Writer (string stream) (no encoding check) citm_catalog.json: 1,474 µs · S​AX to Writer (string stream) (no encoding check) canada.json: 10,853 µs · S​AX to Writer (raw numbers) (no encoding check) jeopardy.json: 122,744 µs · S​AX to Writer (string stream) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) copies each number's text instead of formatting it (kParseNumbersAsStringsFlag)">
|
||
<rect class="nj-heat-3" x="639" y="405" width="44" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="660.5" y="420" text-anchor="middle">3.60</text>
|
||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="433" text-anchor="middle">U N</text>
|
||
</g>
|
||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · write 5.86× the time of the fastest library (fully validating) way: Writer twitter.json: 606 µs citm_catalog.json: 838 µs canada.json: 6,906 µs jeopardy.json: 82,072 µs">
|
||
<rect class="nj-heat-4" x="685" y="405" width="90" height="34" rx="3"/>
|
||
<text class="nj-charts-cell" x="730" y="426" text-anchor="middle">5.86</text>
|
||
</g>
|
||
<text class="nj-charts-tick nj-charts-tick--l" x="8" y="472">time relative to the fastest fully validating library, less is better</text>
|
||
<g><rect class="nj-heat-0" x="8" y="482" width="76" height="20" rx="3"/>
|
||
<text class="nj-charts-cell nj-charts-cell--small" x="46" y="496" text-anchor="middle">below 1.15</text></g>
|
||
<g><rect class="nj-heat-1" x="88" y="482" width="76" height="20" rx="3"/>
|
||
<text class="nj-charts-cell nj-charts-cell--small" x="126" y="496" text-anchor="middle">1.15 to 1.5</text></g>
|
||
<g><rect class="nj-heat-2" x="168" y="482" width="76" height="20" rx="3"/>
|
||
<text class="nj-charts-cell nj-charts-cell--small" x="206" y="496" text-anchor="middle">1.5 to 2.5</text></g>
|
||
<g><rect class="nj-heat-3" x="248" y="482" width="76" height="20" rx="3"/>
|
||
<text class="nj-charts-cell nj-charts-cell--small" x="286" y="496" text-anchor="middle">2.5 to 5</text></g>
|
||
<g><rect class="nj-heat-4" x="328" y="482" width="76" height="20" rx="3"/>
|
||
<text class="nj-charts-cell nj-charts-cell--small" x="366" y="496" text-anchor="middle">5 and more</text></g>
|
||
<rect class="nj-heat-na" x="420" y="482" width="40" height="20" rx="3"/>
|
||
<text class="nj-charts-tick" x="440" y="496">n/a</text>
|
||
<text class="nj-charts-tick nj-charts-tick--l" x="468" y="496">no A​PI for it</text>
|
||
</svg>
|