mirror of
https://github.com/nlohmann/json.git
synced 2026-11-04 11:49:22 +00:00
Suite, timeline endpoint, Appendix D and the scalar-run numbers now come from
develop b2674a4a2f with #5990, #5991, #5992, #5996, #5997, #5998, #5999 and
#6000 merged. The scalar runs are measured against a build without them on
develop's code, which no longer checks for a scalar before entering the loop.
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
9.7 KiB
9.7 KiB
| 1 | benchmark | unit | 3.12.0 | 3.13.0 | speedup |
|---|---|---|---|---|---|
| 2 | Accept/canada | ns | 1.25437e+07 | 2.28713e+06 | 5.484 |
| 3 | Accept/citm_catalog | ns | 6.28134e+06 | 902496 | 6.960 |
| 4 | Accept/floats | ns | 1.11964e+08 | 2.19716e+07 | 5.096 |
| 5 | Accept/jeopardy | ns | 2.13142e+08 | 5.70288e+07 | 3.737 |
| 6 | Accept/signed_ints | ns | 1.13451e+08 | 2.73564e+07 | 4.147 |
| 7 | Accept/small_signed_ints | ns | 5.52119e+07 | 1.74636e+07 | 3.162 |
| 8 | Accept/twitter | ns | 2.43682e+06 | 469197 | 5.194 |
| 9 | Accept/unsigned_ints | ns | 1.11739e+08 | 2.86842e+07 | 3.895 |
| 10 | BinaryToCbor/1024 | ns | 290.559 | 104.43 | 2.782 |
| 11 | BinaryToCbor/128 | ns | 244.736 | 114.39 | 2.139 |
| 12 | BinaryToCbor/16 | ns | 241.729 | 48.5869 | 4.975 |
| 13 | BinaryToCbor/16384 | ns | 957.488 | 416.935 | 2.296 |
| 14 | BinaryToCbor/2048 | ns | 314.999 | 123.874 | 2.543 |
| 15 | BinaryToCbor/256 | ns | 263.753 | 89.8568 | 2.935 |
| 16 | BinaryToCbor/32 | ns | 247.99 | 49.3588 | 5.024 |
| 17 | BinaryToCbor/32768 | ns | 1544.84 | 793.525 | 1.947 |
| 18 | BinaryToCbor/4096 | ns | 398.772 | 169.158 | 2.357 |
| 19 | BinaryToCbor/512 | ns | 290.128 | 100.637 | 2.883 |
| 20 | BinaryToCbor/64 | ns | 246.96 | 81.9565 | 3.013 |
| 21 | BinaryToCbor/8 | ns | 244.014 | 48.5667 | 5.024 |
| 22 | BinaryToCbor/8192 | ns | 507.276 | 249.019 | 2.037 |
| 23 | Copy/canada | ns | 3.60259e+06 | 2.83774e+06 | 1.270 |
| 24 | Copy/citm_catalog | ns | 1.59513e+06 | 1.43645e+06 | 1.110 |
| 25 | Copy/twitter | ns | 791709 | 718409 | 1.102 |
| 26 | CopyAssign/canada | ns | 3.634e+06 | 2.87724e+06 | 1.263 |
| 27 | CopyAssign/citm_catalog | ns | 1.63849e+06 | 1.48508e+06 | 1.103 |
| 28 | CopyAssign/twitter | ns | 798844 | 735446 | 1.086 |
| 29 | CopyOnly/canada | ns | 1.51311e+06 | 1.49476e+06 | 1.012 |
| 30 | CopyOnly/citm_catalog | ns | 732862 | 782280 | 0.937 |
| 31 | CopyOnly/twitter | ns | 395055 | 399033 | 0.990 |
| 32 | CopyRing/canada | ns | 3.63908e+06 | 2.87582e+06 | 1.265 |
| 33 | CopyRing/citm_catalog | ns | 1.65988e+06 | 1.51282e+06 | 1.097 |
| 34 | CopyRing/twitter | ns | 838112 | 768418 | 1.091 |
| 35 | DestroyOnly/canada | ns | 2.10335e+06 | 1.35995e+06 | 1.547 |
| 36 | DestroyOnly/citm_catalog | ns | 863782 | 670455 | 1.288 |
| 37 | DestroyOnly/twitter | ns | 399273 | 322030 | 1.240 |
| 38 | Diff/canada | ns | 3.74782e+07 | 3.6723e+06 | 10.206 |
| 39 | Diff/citm_catalog | ns | 6.64514e+06 | 1.07377e+06 | 6.189 |
| 40 | Diff/twitter | ns | 4.73628e+06 | 636708 | 7.439 |
| 41 | Dump/canada / - | ns | 6.62677e+06 | 2.25123e+06 | 2.944 |
| 42 | Dump/canada / 4 | ns | 8.7042e+06 | 2.98066e+06 | 2.920 |
| 43 | Dump/citm_catalog / - | ns | 1.35686e+06 | 290577 | 4.670 |
| 44 | Dump/citm_catalog / 4 | ns | 1.89401e+06 | 416756 | 4.545 |
| 45 | Dump/floats / - | ns | 6.22834e+07 | 2.32495e+07 | 2.679 |
| 46 | Dump/floats / 4 | ns | 6.9976e+07 | 2.40924e+07 | 2.904 |
| 47 | Dump/jeopardy / - | ns | 2.01307e+08 | 2.99214e+07 | 6.728 |
| 48 | Dump/jeopardy / 4 | ns | 2.17598e+08 | 3.38669e+07 | 6.425 |
| 49 | Dump/signed_ints / - | ns | 2.32472e+07 | 1.05121e+07 | 2.211 |
| 50 | Dump/signed_ints / 4 | ns | 3.15119e+07 | 1.11146e+07 | 2.835 |
| 51 | Dump/small_signed_ints / - | ns | 1.75381e+07 | 7.82657e+06 | 2.241 |
| 52 | Dump/small_signed_ints / 4 | ns | 2.45965e+07 | 8.63097e+06 | 2.850 |
| 53 | Dump/twitter / - | ns | 1.36561e+06 | 207090 | 6.594 |
| 54 | Dump/twitter / 4 | ns | 1.5516e+06 | 248517 | 6.243 |
| 55 | Dump/unsigned_ints / - | ns | 2.31468e+07 | 7.93578e+06 | 2.917 |
| 56 | Dump/unsigned_ints / 4 | ns | 3.13424e+07 | 8.35542e+06 | 3.751 |
| 57 | Equal/canada | ns | 450957 | 332485 | 1.356 |
| 58 | Equal/citm_catalog | ns | 263408 | 251937 | 1.046 |
| 59 | Equal/twitter | ns | 139223 | 127010 | 1.096 |
| 60 | Flatten/canada | ns | 2.80443e+07 | 1.10177e+07 | 2.545 |
| 61 | Flatten/citm_catalog | ns | 6.33655e+06 | 2.97021e+06 | 2.133 |
| 62 | Flatten/twitter | ns | 3.44993e+06 | 2.00619e+06 | 1.720 |
| 63 | FlattenOrdered/citm_catalog | ns | 2.49055e+08 | 1.37328e+06 | 181.357 |
| 64 | FlattenOrdered/twitter | ns | 4.89423e+07 | 846377 | 57.826 |
| 65 | FromBinaryBuffer/bjdata / canada | ns | 8.12748e+06 | 4.08424e+06 | 1.990 |
| 66 | FromBinaryBuffer/bjdata / twitter | ns | 3.07351e+06 | 948285 | 3.241 |
| 67 | FromBinaryBuffer/bjdata_optimized / canada | ns | 8.56879e+06 | 2.42618e+06 | 3.532 |
| 68 | FromBinaryBuffer/bjdata_optimized / twitter | ns | 3.07745e+06 | 948044 | 3.246 |
| 69 | FromBinaryBuffer/bson / canada | ns | 9.31889e+06 | 4.25253e+06 | 2.191 |
| 70 | FromBinaryBuffer/bson / citm_catalog | ns | 3.79713e+06 | 1.55174e+06 | 2.447 |
| 71 | FromBinaryBuffer/bson / twitter | ns | 3.04829e+06 | 910005 | 3.350 |
| 72 | FromBinaryBuffer/cbor / canada | ns | 8.26527e+06 | 2.05962e+06 | 4.013 |
| 73 | FromBinaryBuffer/cbor / citm_catalog | ns | 3.62891e+06 | 1.41833e+06 | 2.559 |
| 74 | FromBinaryBuffer/cbor / floats | ns | 2.89846e+07 | 5.39328e+06 | 5.374 |
| 75 | FromBinaryBuffer/cbor / jeopardy | ns | 3.54945e+08 | 1.1153e+08 | 3.183 |
| 76 | FromBinaryBuffer/cbor / signed_ints | ns | 3.49713e+07 | 9.53001e+06 | 3.670 |
| 77 | FromBinaryBuffer/cbor / twitter | ns | 3.0017e+06 | 942493 | 3.185 |
| 78 | FromBinaryBuffer/msgpack / canada | ns | 8.23088e+06 | 2.05409e+06 | 4.007 |
| 79 | FromBinaryBuffer/msgpack / citm_catalog | ns | 3.67736e+06 | 1.396e+06 | 2.634 |
| 80 | FromBinaryBuffer/msgpack / jeopardy | ns | 3.51715e+08 | 1.07205e+08 | 3.281 |
| 81 | FromBinaryBuffer/msgpack / twitter | ns | 2.98346e+06 | 920736 | 3.240 |
| 82 | FromBinaryBuffer/ubjson / canada | ns | 8.14127e+06 | 4.10394e+06 | 1.984 |
| 83 | FromBinaryBuffer/ubjson / citm_catalog | ns | 3.75785e+06 | 1.71291e+06 | 2.194 |
| 84 | FromBinaryBuffer/ubjson / jeopardy | ns | 3.62566e+08 | 1.12043e+08 | 3.236 |
| 85 | FromBinaryBuffer/ubjson / twitter | ns | 3.07643e+06 | 944874 | 3.256 |
| 86 | FromBinaryBuffer/ubjson_optimized / canada | ns | 8.38574e+06 | 2.37988e+06 | 3.524 |
| 87 | FromBinaryBuffer/ubjson_optimized / twitter | ns | 3.08095e+06 | 943868 | 3.264 |
| 88 | FromBinaryFile/bjdata / twitter | ns | 1.0295e+07 | 1.89097e+06 | 5.444 |
| 89 | FromBinaryFile/bson / twitter | ns | 9.94972e+06 | 1.76486e+06 | 5.638 |
| 90 | FromBinaryFile/cbor / canada | ns | 1.39806e+07 | 4.39308e+06 | 3.182 |
| 91 | FromBinaryFile/cbor / twitter | ns | 9.6646e+06 | 1.50859e+06 | 6.406 |
| 92 | FromBinaryFile/ubjson / canada | ns | 1.34115e+07 | 6.19543e+06 | 2.165 |
| 93 | FromBinaryFile/ubjson / twitter | ns | 1.02157e+07 | 1.89016e+06 | 5.405 |
| 94 | FromBinaryShape/containers / bjdata | ns | 1.40433e+07 | 6.96436e+06 | 2.016 |
| 95 | FromBinaryShape/containers / bson | ns | 1.682e+07 | 7.55534e+06 | 2.226 |
| 96 | FromBinaryShape/containers / cbor | ns | 1.35664e+07 | 3.8756e+06 | 3.500 |
| 97 | FromBinaryShape/containers / msgpack | ns | 1.34934e+07 | 3.82406e+06 | 3.529 |
| 98 | FromBinaryShape/containers / ubjson | ns | 1.40435e+07 | 6.9781e+06 | 2.013 |
| 99 | FromBinaryShape/containers / ubjson_optimized | ns | 1.45774e+07 | 4.45098e+06 | 3.275 |
| 100 | FromBinaryShape/nested / bjdata | ns | 94600.5 | 37840.9 | 2.500 |
| 101 | FromBinaryShape/nested / bson | ns | 100509 | 41429.8 | 2.426 |
| 102 | FromBinaryShape/nested / cbor | ns | 91972.7 | 37251.6 | 2.469 |
| 103 | FromBinaryShape/nested / msgpack | ns | 90727.9 | 36363.8 | 2.495 |
| 104 | FromBinaryShape/nested / ubjson | ns | 94469 | 37882.2 | 2.494 |
| 105 | FromBinaryShape/scalars / bjdata | ns | 2.41514e+07 | 1.12078e+07 | 2.155 |
| 106 | FromBinaryShape/scalars / cbor | ns | 2.5038e+07 | 5.53384e+06 | 4.525 |
| 107 | FromBinaryShape/scalars / msgpack | ns | 2.40268e+07 | 5.47092e+06 | 4.392 |
| 108 | FromBinaryShape/scalars / ubjson | ns | 2.44002e+07 | 1.14029e+07 | 2.140 |
| 109 | FromCborChunkedString/10000 chunks | ns | 88987.2 | 81634.2 | 1.090 |
| 110 | FromMsgpack/canada | ns | 1.39649e+07 | 4.41006e+06 | 3.167 |
| 111 | FromMsgpack/citm_catalog | ns | 8.78567e+06 | 2.21895e+06 | 3.959 |
| 112 | FromMsgpack/floats | ns | 5.87082e+07 | 2.73509e+07 | 2.146 |
| 113 | FromMsgpack/jeopardy | ns | 1.11544e+09 | 1.79233e+08 | 6.223 |
| 114 | FromMsgpack/signed_ints | ns | 6.10619e+07 | 3.2097e+07 | 1.902 |
| 115 | FromMsgpack/small_signed_ints | ns | 6.19196e+07 | 3.32392e+07 | 1.863 |
| 116 | FromMsgpack/twitter | ns | 9.66391e+06 | 1.45284e+06 | 6.652 |
| 117 | FromMsgpack/unsigned_ints | ns | 5.47021e+07 | 2.71662e+07 | 2.014 |
| 118 | GetArray<std::array<int, 1000>> | ns | 2212.9 | 629.827 | 3.513 |
| 119 | GetArray<std::deque<int>> | ns | 7971.54 | 1157.96 | 6.884 |
| 120 | GetArray<std::set<int>> | ns | 57262.5 | 40671.2 | 1.408 |
| 121 | GetArray<std::vector<int>> | ns | 6546.87 | 657.105 | 9.963 |
| 122 | GetMap/citm_catalog | ns | 3.35706e+06 | 2.35562e+06 | 1.425 |
| 123 | GetVectorDouble/floats | ns | 6.57437e+06 | 644146 | 10.206 |
| 124 | GetVectorInt/signed_ints | ns | 7.90848e+06 | 3.367e+06 | 2.349 |
| 125 | Iterate/canada | ns | 859110 | 307802 | 2.791 |
| 126 | Iterate/citm_catalog | ns | 293450 | 179462 | 1.635 |
| 127 | Iterate/twitter | ns | 85889.4 | 61478.7 | 1.397 |
| 128 | JsonPointerAt/citm_catalog | ns | 1.80266e+06 | 1.10791e+06 | 1.627 |
| 129 | JsonPointerAt/twitter | ns | 778445 | 582386 | 1.337 |
| 130 | JsonPointerContains/citm_catalog | ns | 2.6652e+06 | 1.24663e+06 | 2.138 |
| 131 | JsonPointerContains/twitter | ns | 1.27254e+06 | 609697 | 2.087 |
| 132 | JsonPointerParse/citm_catalog | ns | 5.60728e+06 | 2.16895e+06 | 2.585 |
| 133 | JsonPointerParse/twitter | ns | 2.4042e+06 | 980041 | 2.453 |
| 134 | JsonPointerToString/citm_catalog | ns | 6.55559e+06 | 1.86437e+06 | 3.516 |
| 135 | JsonPointerToString/twitter | ns | 2.14645e+06 | 794812 | 2.701 |
| 136 | ParseFILE/canada | ns | 5.17963e+07 | 1.38332e+07 | 3.744 |
| 137 | ParseFILE/citm_catalog | ns | 3.40359e+07 | 7.24926e+06 | 4.695 |
| 138 | ParseFILE/twitter | ns | 1.33126e+07 | 3.28013e+06 | 4.059 |
| 139 | ParseFile/canada | ns | 1.72398e+07 | 6.19587e+06 | 2.782 |
| 140 | ParseFile/citm_catalog | ns | 7.5903e+06 | 2.40464e+06 | 3.157 |
| 141 | ParseFile/floats | ns | 1.26663e+08 | 4.7193e+07 | 2.684 |
| 142 | ParseFile/jeopardy | ns | 3.19976e+08 | 1.55503e+08 | 2.058 |
| 143 | ParseFile/signed_ints | ns | 1.23409e+08 | 4.4882e+07 | 2.750 |
| 144 | ParseFile/small_signed_ints | ns | 6.22208e+07 | 3.25371e+07 | 1.912 |
| 145 | ParseFile/twitter | ns | 3.28655e+06 | 1.33555e+06 | 2.461 |
| 146 | ParseFile/unsigned_ints | ns | 1.19152e+08 | 4.60377e+07 | 2.588 |
| 147 | ParseIndented/canada / 4 | ns | 3.30986e+07 | 5.22169e+06 | 6.339 |
| 148 | ParseIndented/citm_catalog / 4 | ns | 7.15038e+06 | 1.7594e+06 | 4.064 |
| 149 | ParseIndented/jeopardy / 4 | ns | 3.29973e+08 | 1.30023e+08 | 2.538 |
| 150 | ParseIndented/twitter / 4 | ns | 3.5335e+06 | 1.09154e+06 | 3.237 |
| 151 | ParseStreamValues/ndjson | ns | 6.99339e+06 | 3.69843e+06 | 1.891 |
| 152 | ParseStreamValues/numbers | ns | 1.90457e+06 | 379668 | 5.016 |
| 153 | ParseString/canada | ns | 1.48477e+07 | 4.48104e+06 | 3.313 |
| 154 | ParseString/citm_catalog | ns | 7.16124e+06 | 1.75975e+06 | 4.069 |
| 155 | ParseString/floats | ns | 1.17297e+08 | 2.86476e+07 | 4.094 |
| 156 | ParseString/jeopardy | ns | 2.97063e+08 | 1.26706e+08 | 2.344 |
| 157 | ParseString/signed_ints | ns | 1.17796e+08 | 3.09958e+07 | 3.800 |
| 158 | ParseString/small_signed_ints | ns | 6.02349e+07 | 2.39599e+07 | 2.514 |
| 159 | ParseString/twitter | ns | 3.14349e+06 | 1.02653e+06 | 3.062 |
| 160 | ParseString/unsigned_ints | ns | 1.17123e+08 | 3.2164e+07 | 3.641 |
| 161 | ParseStringOrdered/canada | ns | 1.48701e+07 | 4.3728e+06 | 3.401 |
| 162 | ParseStringOrdered/citm_catalog | ns | 1.06565e+07 | 1.63405e+06 | 6.522 |
| 163 | ParseStringOrdered/jeopardy | ns | 3.55998e+08 | 1.09838e+08 | 3.241 |
| 164 | ParseStringOrdered/twitter | ns | 4.29723e+06 | 903337 | 4.757 |
| 165 | Patch/canada | ns | 9.90601e+06 | 3.33316e+06 | 2.972 |
| 166 | Patch/citm_catalog | ns | 2.48566e+06 | 1.60436e+06 | 1.549 |
| 167 | Patch/twitter | ns | 1.44208e+06 | 846253 | 1.704 |
| 168 | SaxParse/canada | ns | 1.26629e+07 | 3.18268e+06 | 3.979 |
| 169 | SaxParse/citm_catalog | ns | 6.2984e+06 | 948233 | 6.642 |
| 170 | SaxParse/twitter | ns | 2.43897e+06 | 470550 | 5.183 |
| 171 | ToCbor/canada | ns | 1.36093e+06 | 545893 | 2.493 |
| 172 | ToCbor/citm_catalog | ns | 1.00658e+06 | 255966 | 3.932 |
| 173 | ToCbor/floats | ns | 8.79386e+06 | 1.87553e+06 | 4.689 |
| 174 | ToCbor/jeopardy | ns | 7.08239e+07 | 2.11723e+07 | 3.345 |
| 175 | ToCbor/signed_ints | ns | 1.1165e+07 | 2.74484e+06 | 4.068 |
| 176 | ToCbor/small_signed_ints | ns | 1.00698e+07 | 2.36786e+06 | 4.253 |
| 177 | ToCbor/twitter | ns | 625255 | 145380 | 4.301 |
| 178 | ToCbor/unsigned_ints | ns | 7.91821e+06 | 2.74734e+06 | 2.882 |
| 179 | ToJsonStrings/copy | ns | 5.77126e+06 | 5.52441e+06 | 1.045 |
| 180 | ToJsonStrings/move | ns | 5.76994e+06 | 3.01734e+06 | 1.912 |
| 181 | Unflatten/canada | ns | 4.05029e+07 | 1.06882e+07 | 3.790 |
| 182 | Unflatten/citm_catalog | ns | 9.51644e+06 | 3.4248e+06 | 2.779 |
| 183 | Unflatten/twitter | ns | 4.46756e+06 | 2.07793e+06 | 2.150 |