Measured again on November 23 with develop 322063822f standing in for
3.13.0: the suite on the M1 Max (3.3x, 184 benchmarks) and on the Intel
MacBook Pro (now 3.3x), the timeline (the 28 commits since November 7 and
twelve earlier ones as a check; #6031 is now a commit, not a pending
step), the compile times, the stream gap, the allocator check, Appendix D
(9 runs), and the comparison on the Mac and on x86-64 (three runs per
compiler there), with the held-out files and JSONTestSuite.
Describe the performance-relevant pull requests merged since then:
JSON_RECURSION_DEPTH_LIMIT (#6081), forced inlining only in optimized
builds (#6117), and the two quadratic cases of #5886 that #6076 and
#6077 fixed before the release.
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
9.8 KiB
9.8 KiB
| 1 | benchmark | unit | 3.12.0 | 3.13.0 | speedup |
|---|---|---|---|---|---|
| 2 | FromBinaryBuffer/msgpack / jeopardy | ns | 3.56376e+08 | 9.37052e+07 | 3.803 |
| 3 | GetVectorInt/signed_ints | ns | 8.00368e+06 | 3.38526e+06 | 2.364 |
| 4 | FromBinaryFile/bson / twitter | ns | 1.01661e+07 | 1.22525e+06 | 8.297 |
| 5 | Unflatten/citm_catalog | ns | 9.79429e+06 | 3.6099e+06 | 2.713 |
| 6 | FromBinaryShape/containers / cbor | ns | 1.38062e+07 | 3.95491e+06 | 3.491 |
| 7 | Diff/twitter | ns | 4.8593e+06 | 640238 | 7.590 |
| 8 | FromBinaryBuffer/cbor / floats | ns | 2.89316e+07 | 5.38972e+06 | 5.368 |
| 9 | Patch/canada | ns | 1.00183e+07 | 3.40486e+06 | 2.942 |
| 10 | JsonPointerToString/twitter | ns | 2.13885e+06 | 811648 | 2.635 |
| 11 | ParseFILE/canada | ns | 5.23339e+07 | 5.94603e+06 | 8.801 |
| 12 | Copy/citm_catalog | ns | 1.62473e+06 | 1.47096e+06 | 1.105 |
| 13 | ToCbor/twitter | ns | 637711 | 140404 | 4.542 |
| 14 | CopyAssign/twitter | ns | 809718 | 768280 | 1.054 |
| 15 | Equal/twitter | ns | 137425 | 128272 | 1.071 |
| 16 | FromBinaryShape/singles / msgpack | ns | 9.79667e+06 | 3.84137e+06 | 2.550 |
| 17 | Flatten/citm_catalog | ns | 6.39977e+06 | 2.99034e+06 | 2.140 |
| 18 | Equal/citm_catalog | ns | 257648 | 254695 | 1.012 |
| 19 | Accept/floats | ns | 1.13431e+08 | 1.71844e+07 | 6.601 |
| 20 | Unflatten/twitter | ns | 4.63581e+06 | 2.18616e+06 | 2.121 |
| 21 | BinaryToCbor/8 | ns | 246.515 | 48.6634 | 5.066 |
| 22 | Dump/unsigned_ints / 4 | ns | 3.16753e+07 | 8.41946e+06 | 3.762 |
| 23 | Dump/small_signed_ints / 4 | ns | 2.48696e+07 | 8.72941e+06 | 2.849 |
| 24 | Accept/canada | ns | 1.26794e+07 | 1.32204e+06 | 9.591 |
| 25 | CopyAssign/citm_catalog | ns | 1.658e+06 | 1.50401e+06 | 1.102 |
| 26 | Diff/canada | ns | 3.81491e+07 | 3.73659e+06 | 10.210 |
| 27 | FromBinaryBuffer/bjdata / canada | ns | 8.09969e+06 | 4.07622e+06 | 1.987 |
| 28 | FromBinaryShape/containers / msgpack | ns | 1.37529e+07 | 3.94846e+06 | 3.483 |
| 29 | FromBinaryBuffer/ubjson_optimized / twitter | ns | 3.105e+06 | 860260 | 3.609 |
| 30 | FromBinaryBuffer/ubjson / canada | ns | 8.10092e+06 | 4.13921e+06 | 1.957 |
| 31 | FromBinaryBuffer/bjdata_optimized / canada | ns | 8.57969e+06 | 2.40635e+06 | 3.565 |
| 32 | Iterate/citm_catalog | ns | 298875 | 146683 | 2.038 |
| 33 | Dump/signed_ints / - | ns | 2.35657e+07 | 1.06527e+07 | 2.212 |
| 34 | Iterate/twitter | ns | 87819.6 | 57086.7 | 1.538 |
| 35 | ParseFile/unsigned_ints | ns | 1.21976e+08 | 4.74314e+07 | 2.572 |
| 36 | ToCbor/unsigned_ints | ns | 8.02163e+06 | 2.73539e+06 | 2.933 |
| 37 | FromBinaryBuffer/msgpack / canada | ns | 8.2439e+06 | 2.09919e+06 | 3.927 |
| 38 | ToCbor/small_signed_ints | ns | 1.02153e+07 | 2.37758e+06 | 4.297 |
| 39 | CopyRing/twitter | ns | 859173 | 798950 | 1.075 |
| 40 | FromBinaryFile/cbor / twitter | ns | 9.83918e+06 | 1.05639e+06 | 9.314 |
| 41 | ParseIndented/jeopardy / 4 | ns | 3.36775e+08 | 1.13321e+08 | 2.972 |
| 42 | Iterate/canada | ns | 871453 | 427207 | 2.040 |
| 43 | BinaryToCbor/128 | ns | 255.325 | 113.969 | 2.240 |
| 44 | Dump/unsigned_ints / - | ns | 2.347e+07 | 8.05437e+06 | 2.914 |
| 45 | Dump/citm_catalog / - | ns | 1.3828e+06 | 292068 | 4.735 |
| 46 | FromMsgpack/small_signed_ints | ns | 6.28886e+07 | 3.37245e+07 | 1.865 |
| 47 | ToCbor/signed_ints | ns | 1.13369e+07 | 2.73327e+06 | 4.148 |
| 48 | Dump/citm_catalog / 4 | ns | 1.92706e+06 | 415294 | 4.640 |
| 49 | Accept/signed_ints | ns | 1.15108e+08 | 2.32984e+07 | 4.941 |
| 50 | Accept/unsigned_ints | ns | 1.13981e+08 | 2.2856e+07 | 4.987 |
| 51 | ToCbor/floats | ns | 8.90101e+06 | 1.8411e+06 | 4.835 |
| 52 | Dump/twitter / 4 | ns | 1.58163e+06 | 248861 | 6.355 |
| 53 | Flatten/twitter | ns | 3.47975e+06 | 2.04214e+06 | 1.704 |
| 54 | ParseFILE/citm_catalog | ns | 3.47528e+07 | 2.33647e+06 | 14.874 |
| 55 | CopyRing/citm_catalog | ns | 1.71026e+06 | 1.54721e+06 | 1.105 |
| 56 | DestroyOnly/canada | ns | 2.1373e+06 | 1.37986e+06 | 1.549 |
| 57 | ParseIndented/canada / 4 | ns | 3.36975e+07 | 4.55234e+06 | 7.402 |
| 58 | FromBinaryShape/nested / msgpack | ns | 92164.1 | 34825.9 | 2.646 |
| 59 | Copy/canada | ns | 3.66531e+06 | 2.91548e+06 | 1.257 |
| 60 | ParseFile/small_signed_ints | ns | 6.36556e+07 | 3.32302e+07 | 1.916 |
| 61 | SaxParse/citm_catalog | ns | 6.40417e+06 | 651648 | 9.828 |
| 62 | BinaryToCbor/1024 | ns | 310.054 | 103.516 | 2.995 |
| 63 | FromBinaryBuffer/cbor / citm_catalog | ns | 3.68791e+06 | 1.33699e+06 | 2.758 |
| 64 | ParseString/small_signed_ints | ns | 6.06983e+07 | 1.76778e+07 | 3.434 |
| 65 | GetArray<std::array<int, 1000>> | ns | 2232.07 | 639.577 | 3.490 |
| 66 | Dump/jeopardy / 4 | ns | 2.19387e+08 | 3.45399e+07 | 6.352 |
| 67 | FromBinaryBuffer/ubjson / twitter | ns | 3.12176e+06 | 872419 | 3.578 |
| 68 | Dump/signed_ints / 4 | ns | 3.18414e+07 | 1.12445e+07 | 2.832 |
| 69 | JsonPointerContains/citm_catalog | ns | 2.70305e+06 | 1.24338e+06 | 2.174 |
| 70 | Dump/twitter / - | ns | 1.39545e+06 | 212169 | 6.577 |
| 71 | ParseStringOrdered/canada | ns | 1.50466e+07 | 3.77243e+06 | 3.989 |
| 72 | Accept/jeopardy | ns | 2.16678e+08 | 2.77477e+07 | 7.809 |
| 73 | FromBinaryFile/cbor / canada | ns | 1.42295e+07 | 2.4159e+06 | 5.890 |
| 74 | Dump/jeopardy / - | ns | 2.0084e+08 | 3.11939e+07 | 6.438 |
| 75 | ToJsonStrings/copy | ns | 5.86291e+06 | 5.5919e+06 | 1.048 |
| 76 | BinaryToCbor/16 | ns | 244.867 | 48.2527 | 5.075 |
| 77 | FromBinaryBuffer/cbor / canada | ns | 8.25796e+06 | 2.10045e+06 | 3.932 |
| 78 | Accept/small_signed_ints | ns | 5.6282e+07 | 1.32434e+07 | 4.250 |
| 79 | Patch/citm_catalog | ns | 2.54655e+06 | 1.6363e+06 | 1.556 |
| 80 | Unflatten/canada | ns | 4.11873e+07 | 1.10494e+07 | 3.728 |
| 81 | JsonPointerContains/twitter | ns | 1.29206e+06 | 609759 | 2.119 |
| 82 | Dump/floats / - | ns | 6.31208e+07 | 2.36329e+07 | 2.671 |
| 83 | CopyRing/canada | ns | 3.73092e+06 | 2.94199e+06 | 1.268 |
| 84 | ParseString/unsigned_ints | ns | 1.18699e+08 | 2.83952e+07 | 4.180 |
| 85 | ParseString/canada | ns | 1.50831e+07 | 3.72801e+06 | 4.046 |
| 86 | FromMsgpack/twitter | ns | 9.91629e+06 | 999651 | 9.920 |
| 87 | ParseFile/floats | ns | 1.28428e+08 | 4.82106e+07 | 2.664 |
| 88 | ParseStreamValues/ndjson | ns | 7.12846e+06 | 3.74839e+06 | 1.902 |
| 89 | FromMsgpack/citm_catalog | ns | 8.9175e+06 | 1.6513e+06 | 5.400 |
| 90 | FromBinaryBuffer/cbor / jeopardy | ns | 3.54251e+08 | 1.00932e+08 | 3.510 |
| 91 | CopyOnly/twitter | ns | 398464 | 411184 | 0.969 |
| 92 | BinaryToCbor/16384 | ns | 981.9 | 410.592 | 2.391 |
| 93 | JsonPointerAt/twitter | ns | 791229 | 593059 | 1.334 |
| 94 | ParseFILE/twitter | ns | 1.36013e+07 | 1.31018e+06 | 10.381 |
| 95 | FromMsgpack/signed_ints | ns | 6.22982e+07 | 3.26718e+07 | 1.907 |
| 96 | FromCborChunkedString/10000 chunks | ns | 90088.7 | 61202 | 1.472 |
| 97 | FromBinaryShape/containers / bjdata | ns | 1.40505e+07 | 7.07234e+06 | 1.987 |
| 98 | JsonPointerToString/citm_catalog | ns | 6.5753e+06 | 1.90833e+06 | 3.446 |
| 99 | FlattenOrdered/twitter | ns | 4.96493e+07 | 862665 | 57.553 |
| 100 | DestroyOnly/citm_catalog | ns | 879499 | 679164 | 1.295 |
| 101 | FromBinaryFile/bjdata / twitter | ns | 1.04027e+07 | 1.46032e+06 | 7.124 |
| 102 | ToCbor/canada | ns | 1.37306e+06 | 559412 | 2.454 |
| 103 | GetMap/citm_catalog | ns | 3.40323e+06 | 2.42997e+06 | 1.401 |
| 104 | FromBinaryBuffer/bson / citm_catalog | ns | 3.87408e+06 | 1.58607e+06 | 2.443 |
| 105 | FromBinaryShape/nested / bson | ns | 101814 | 42220.7 | 2.411 |
| 106 | BinaryToCbor/4096 | ns | 407.896 | 168.978 | 2.414 |
| 107 | CopyOnly/canada | ns | 1.52999e+06 | 1.53061e+06 | 1.000 |
| 108 | Dump/canada / 4 | ns | 8.85726e+06 | 3.02915e+06 | 2.924 |
| 109 | JsonPointerAt/citm_catalog | ns | 1.83519e+06 | 1.14559e+06 | 1.602 |
| 110 | BinaryToCbor/32 | ns | 255.202 | 49.7487 | 5.130 |
| 111 | ParseFile/citm_catalog | ns | 7.73392e+06 | 2.43664e+06 | 3.174 |
| 112 | FromBinaryShape/scalars / ubjson | ns | 2.4621e+07 | 1.11449e+07 | 2.209 |
| 113 | FromBinaryShape/scalars / cbor | ns | 2.55544e+07 | 5.55805e+06 | 4.598 |
| 114 | ParseStringOrdered/jeopardy | ns | 3.6028e+08 | 9.79505e+07 | 3.678 |
| 115 | FromBinaryFile/ubjson / canada | ns | 1.35226e+07 | 6.34861e+06 | 2.130 |
| 116 | FromBinaryBuffer/ubjson / jeopardy | ns | 3.661e+08 | 9.93732e+07 | 3.684 |
| 117 | BinaryToCbor/2048 | ns | 330.184 | 122.318 | 2.699 |
| 118 | FromBinaryShape/nested / cbor | ns | 93712.6 | 35235.7 | 2.660 |
| 119 | ParseIndented/citm_catalog / 4 | ns | 7.2551e+06 | 1.46145e+06 | 4.964 |
| 120 | BinaryToCbor/64 | ns | 257.867 | 83.3886 | 3.092 |
| 121 | ParseFile/signed_ints | ns | 1.26092e+08 | 4.60109e+07 | 2.740 |
| 122 | CopyAssign/canada | ns | 3.72953e+06 | 2.94923e+06 | 1.265 |
| 123 | FromBinaryBuffer/bjdata / twitter | ns | 3.1287e+06 | 873093 | 3.583 |
| 124 | Dump/floats / 4 | ns | 7.1031e+07 | 2.45563e+07 | 2.893 |
| 125 | FromBinaryBuffer/msgpack / twitter | ns | 3.03481e+06 | 831338 | 3.651 |
| 126 | FromBinaryShape/nested / bjdata | ns | 95576.6 | 37944.7 | 2.519 |
| 127 | ToJsonStrings/move | ns | 5.84459e+06 | 3.0561e+06 | 1.912 |
| 128 | FromMsgpack/jeopardy | ns | 1.13918e+09 | 1.12093e+08 | 10.163 |
| 129 | ParseString/signed_ints | ns | 1.20325e+08 | 2.89864e+07 | 4.151 |
| 130 | FromBinaryBuffer/bson / canada | ns | 9.28095e+06 | 4.34519e+06 | 2.136 |
| 131 | FromBinaryShape/containers / bson | ns | 1.65723e+07 | 7.72033e+06 | 2.147 |
| 132 | FromBinaryBuffer/cbor / signed_ints | ns | 3.55593e+07 | 9.76349e+06 | 3.642 |
| 133 | FromBinaryBuffer/ubjson / citm_catalog | ns | 3.83988e+06 | 1.62757e+06 | 2.359 |
| 134 | FromBinaryFile/ubjson / twitter | ns | 1.03741e+07 | 1.44004e+06 | 7.204 |
| 135 | Accept/citm_catalog | ns | 6.37657e+06 | 473623 | 13.463 |
| 136 | FromBinaryShape/singles / cbor | ns | 9.80279e+06 | 3.85097e+06 | 2.546 |
| 137 | Equal/canada | ns | 455750 | 332820 | 1.369 |
| 138 | JsonPointerParse/citm_catalog | ns | 5.70466e+06 | 2.22344e+06 | 2.566 |
| 139 | Flatten/canada | ns | 2.84742e+07 | 1.1313e+07 | 2.517 |
| 140 | ToCbor/jeopardy | ns | 7.15663e+07 | 2.05264e+07 | 3.487 |
| 141 | Copy/twitter | ns | 800349 | 726319 | 1.102 |
| 142 | FromBinaryShape/scalars / bjdata | ns | 2.45145e+07 | 1.12069e+07 | 2.187 |
| 143 | FromBinaryShape/containers / ubjson | ns | 1.40347e+07 | 7.03944e+06 | 1.994 |
| 144 | GetVectorDouble/floats | ns | 6.68308e+06 | 658764 | 10.145 |
| 145 | ParseFile/twitter | ns | 3.35391e+06 | 1.35767e+06 | 2.470 |
| 146 | CopyOnly/citm_catalog | ns | 745442 | 794860 | 0.938 |
| 147 | FromBinaryBuffer/cbor / twitter | ns | 3.04874e+06 | 865468 | 3.523 |
| 148 | FromBinaryBuffer/ubjson_optimized / canada | ns | 8.44636e+06 | 2.38005e+06 | 3.549 |
| 149 | ParseFile/canada | ns | 1.7446e+07 | 6.23937e+06 | 2.796 |
| 150 | FromBinaryBuffer/bson / twitter | ns | 3.07555e+06 | 892243 | 3.447 |
| 151 | SaxParse/twitter | ns | 2.47779e+06 | 333102 | 7.439 |
| 152 | BinaryToCbor/512 | ns | 292.983 | 98.3304 | 2.980 |
| 153 | ToCbor/citm_catalog | ns | 1.02844e+06 | 253313 | 4.060 |
| 154 | FromMsgpack/floats | ns | 5.95208e+07 | 2.78865e+07 | 2.134 |
| 155 | FromBinaryBuffer/bjdata_optimized / twitter | ns | 3.12712e+06 | 865993 | 3.611 |
| 156 | Patch/twitter | ns | 1.47408e+06 | 870268 | 1.694 |
| 157 | ParseStreamValues/numbers | ns | 1.92083e+06 | 385096 | 4.988 |
| 158 | ParseIndented/twitter / 4 | ns | 3.58975e+06 | 955860 | 3.756 |
| 159 | SaxParse/canada | ns | 1.27866e+07 | 2.51963e+06 | 5.075 |
| 160 | FromBinaryShape/scalars / msgpack | ns | 2.43314e+07 | 5.38279e+06 | 4.520 |
| 161 | BinaryToCbor/8192 | ns | 513.598 | 247.942 | 2.071 |
| 162 | JsonPointerParse/twitter | ns | 2.45095e+06 | 1.00205e+06 | 2.446 |
| 163 | ParseFile/jeopardy | ns | 3.30464e+08 | 1.58395e+08 | 2.086 |
| 164 | FromBinaryBuffer/msgpack / citm_catalog | ns | 3.70592e+06 | 1.2882e+06 | 2.877 |
| 165 | ParseStringOrdered/citm_catalog | ns | 1.08745e+07 | 1.3409e+06 | 8.110 |
| 166 | FromMsgpack/canada | ns | 1.44132e+07 | 2.40718e+06 | 5.988 |
| 167 | ParseString/citm_catalog | ns | 7.31279e+06 | 1.44898e+06 | 5.047 |
| 168 | Dump/small_signed_ints / - | ns | 1.78234e+07 | 7.93107e+06 | 2.247 |
| 169 | Dump/canada / - | ns | 6.69249e+06 | 2.30011e+06 | 2.910 |
| 170 | FlattenOrdered/citm_catalog | ns | 2.5462e+08 | 1.40264e+06 | 181.529 |
| 171 | FromBinaryShape/containers / ubjson_optimized | ns | 1.47327e+07 | 4.43609e+06 | 3.321 |
| 172 | ParseString/jeopardy | ns | 3.04442e+08 | 1.11899e+08 | 2.721 |
| 173 | GetArray<std::set<int>> | ns | 58151.3 | 41496.7 | 1.401 |
| 174 | GetArray<std::vector<int>> | ns | 6666.04 | 667.858 | 9.981 |
| 175 | ParseString/floats | ns | 1.18914e+08 | 2.45271e+07 | 4.848 |
| 176 | BinaryToCbor/32768 | ns | 1576.97 | 800.59 | 1.970 |
| 177 | Diff/citm_catalog | ns | 6.81411e+06 | 1.0862e+06 | 6.273 |
| 178 | ParseString/twitter | ns | 3.18533e+06 | 901779 | 3.532 |
| 179 | FromBinaryShape/nested / ubjson | ns | 96073.3 | 37939.8 | 2.532 |
| 180 | BinaryToCbor/256 | ns | 275.64 | 89.4743 | 3.081 |
| 181 | FromMsgpack/unsigned_ints | ns | 5.56157e+07 | 2.81137e+07 | 1.978 |
| 182 | Accept/twitter | ns | 2.46679e+06 | 233126 | 10.581 |
| 183 | GetArray<std::deque<int>> | ns | 8115.04 | 1164.68 | 6.968 |
| 184 | ParseStringOrdered/twitter | ns | 4.35839e+06 | 792369 | 5.500 |
| 185 | DestroyOnly/twitter | ns | 401329 | 325985 | 1.231 |