view release on metacpan or search on metacpan
0.161 2021-09-07 Released-By: PERLANCAR; Urgency: medium
- Add participant: JSON::Parser::Regexp.
0.160 2021-07-31 Released-By: PERLANCAR
- Update MarpaX::ESLIF::ECMA404 participant: no longer needs new(), now
can do encoding.
- [build] Rebuild with and adjust to updated
Pod::Weaver::Plugin::Bencher::Scenario (0.251) to tweak texts in
generated POD section.
0.15 2017-05-17 Released-By: PERLANCAR
- Add participant: MarpaX::ESLIF::ECMA404.
0.14 2017-01-25 Released-By: PERLANCAR
- No functional changes.
- [build] Rebuild with updated Dist::Zilla::Plugin::Bencher::Scenario
(0.16) to add benchmarked modules as prereq with phase=x_benchmarks,
type=x_benchmarks.
"Data::Undump::PPI" : "0",
"JSON::Create" : "0",
"JSON::Decode::Marpa" : "0",
"JSON::Decode::Regexp" : "0",
"JSON::MaybeXS" : "0",
"JSON::PP" : "0",
"JSON::Parse" : "0",
"JSON::Parser::Regexp" : "0",
"JSON::Tiny" : "0",
"JSON::XS" : "0",
"MarpaX::ESLIF::ECMA404" : "0",
"Pegex::JSON" : "0",
"Sereal" : "0",
"Storable" : "3.08",
"YAML" : "0",
"YAML::Old" : "0",
"YAML::Syck" : "0",
"YAML::XS" : "0",
"perl" : "5.010001",
"strict" : "0",
"utf8" : "0",
"Data::Undump::PPI" : "0",
"JSON::Create" : "0",
"JSON::Decode::Marpa" : "0",
"JSON::Decode::Regexp" : "0",
"JSON::MaybeXS" : "0",
"JSON::PP" : "0",
"JSON::Parse" : "0",
"JSON::Parser::Regexp" : "0",
"JSON::Tiny" : "0",
"JSON::XS" : "0",
"MarpaX::ESLIF::ECMA404" : "0",
"Pegex::JSON" : "0",
"Sereal" : "0",
"Storable" : "3.08",
"YAML" : "0",
"YAML::Old" : "0",
"YAML::Syck" : "0",
"YAML::XS" : "0"
},
"x_benchmarks" : {
"Cpanel::JSON::XS" : "0",
"Data::Undump::PPI" : "0",
"JSON::Create" : "0",
"JSON::Decode::Marpa" : "0",
"JSON::Decode::Regexp" : "0",
"JSON::MaybeXS" : "0",
"JSON::PP" : "0",
"JSON::Parse" : "0",
"JSON::Parser::Regexp" : "0",
"JSON::Tiny" : "0",
"JSON::XS" : "0",
"MarpaX::ESLIF::ECMA404" : "0",
"Pegex::JSON" : "0",
"Sereal" : "0",
"Storable" : "3.08",
"YAML" : "0",
"YAML::Old" : "0",
"YAML::Syck" : "0",
"YAML::XS" : "0"
}
}
},
Data::Undump::PPI: '0'
JSON::Create: '0'
JSON::Decode::Marpa: '0'
JSON::Decode::Regexp: '0'
JSON::MaybeXS: '0'
JSON::PP: '0'
JSON::Parse: '0'
JSON::Parser::Regexp: '0'
JSON::Tiny: '0'
JSON::XS: '0'
MarpaX::ESLIF::ECMA404: '0'
Pegex::JSON: '0'
Sereal: '0'
Storable: '3.08'
YAML: '0'
YAML::Old: '0'
YAML::Syck: '0'
YAML::XS: '0'
perl: '5.010001'
strict: '0'
utf8: '0'
Makefile.PL view on Meta::CPAN
"Data::Undump::PPI" => 0,
"JSON::Create" => 0,
"JSON::Decode::Marpa" => 0,
"JSON::Decode::Regexp" => 0,
"JSON::MaybeXS" => 0,
"JSON::PP" => 0,
"JSON::Parse" => 0,
"JSON::Parser::Regexp" => 0,
"JSON::Tiny" => 0,
"JSON::XS" => 0,
"MarpaX::ESLIF::ECMA404" => 0,
"Pegex::JSON" => 0,
"Sereal" => 0,
"Storable" => "3.08",
"YAML" => 0,
"YAML::Old" => 0,
"YAML::Syck" => 0,
"YAML::XS" => 0,
"strict" => 0,
"utf8" => 0,
"warnings" => 0
Makefile.PL view on Meta::CPAN
"IPC::Open3" => 0,
"JSON::Create" => 0,
"JSON::Decode::Marpa" => 0,
"JSON::Decode::Regexp" => 0,
"JSON::MaybeXS" => 0,
"JSON::PP" => 0,
"JSON::Parse" => 0,
"JSON::Parser::Regexp" => 0,
"JSON::Tiny" => 0,
"JSON::XS" => 0,
"MarpaX::ESLIF::ECMA404" => 0,
"Pegex::JSON" => 0,
"Sereal" => 0,
"Storable" => "3.08",
"Test::More" => 0,
"YAML" => 0,
"YAML::Old" => 0,
"YAML::Syck" => 0,
"YAML::XS" => 0,
"strict" => 0,
"utf8" => 0,
JSON::Parser::Regexp 0.18
JSON::Decode::Marpa 0.02
Pegex::JSON 0.31
JSON::Create 0.34
JSON::Parse 0.61
MarpaX::ESLIF::ECMA404 0.014
YAML 1.30
YAML::Old 1.23
YAML::Syck 1.34
YAML::XS 0.83
Storable 3.23
Function call template:
JSON::Create::create_json(<data>)
* JSON::Parse::parse_json (perl_code) [json, deserialize]
Function call template:
JSON::Parse::parse_json(<data>)
* MarpaX::ESLIF::ECMA404::encode (perl_code) [json, serialize]
Function call template:
MarpaX::ESLIF::ECMA404->encode(<data>)
* MarpaX::ESLIF::ECMA404::decode (perl_code) [json, deserialize]
Function call template:
MarpaX::ESLIF::ECMA404->decode(<data>)
* YAML::Dump (perl_code) [yaml, serialize]
Function call template:
YAML::Dump(<data>)
* YAML::Load (perl_code) [yaml, deserialize]
Function call template:
serialize":
#table1#
{dataset=>"array_int_10"}
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | p_tags | rate (/s) | time (μs) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| YAML::Dump | yaml, serialize | 4100 | 240 | 0.00% | 44100.70% | 6.9e-07 | 20 |
| YAML::Old::Dump | yaml, serialize | 4100 | 240 | 0.62% | 43827.69% | 6.4e-07 | 20 |
| JSON::PP::encode_json | json, serialize | 71000 | 14 | 1614.24% | 2478.44% | 8.5e-08 | 21 |
| MarpaX::ESLIF::ECMA404::encode | json, serialize | 76000 | 13 | 1753.36% | 2284.90% | 6e-08 | 20 |
| JSON::Tiny::encode_json | json, serialize | 93300 | 10.7 | 2166.16% | 1850.47% | 3.3e-09 | 20 |
| YAML::Syck::Dump | yaml, serialize | 100000 | 9.8 | 2375.98% | 1685.18% | 1.6e-08 | 21 |
| YAML::XS::Dump | yaml, serialize | 148460 | 6.736 | 3507.55% | 1125.23% | 2.2e-11 | 20 |
| Storable::freeze | binary, storable, serialize, cant_handle_scalar | 331790 | 3.014 | 7962.66% | 448.21% | 2.6e-11 | 20 |
| JSON::MaybeXS::encode_json | json, serialize | 1300000 | 0.78 | 30930.46% | 42.44% | 5.9e-09 | 21 |
| Sereal::encode_sereal | binary, sereal, serialize | 1400000 | 0.7 | 34807.79% | 26.62% | 8.3e-10 | 20 |
| Cpanel::JSON::XS::encode_json | json, serialize | 1500000 | 0.69 | 35297.75% | 24.87% | 7.6e-10 | 24 |
| JSON::XS::encode_json | json, serialize | 1700000 | 0.6 | 40118.51% | 9.90% | 8.3e-10 | 20 |
| JSON::Create::create_json | json, serialize | 1700000 | 0.6 | 40553.09% | 8.73% | 3.2e-09 | 25 |
| Data::MessagePack::pack | binary, msgpack, serialize | 1800000 | 0.55 | 44100.70% | 0.00% | 8.3e-10 | 20 |
DM:p binary, msgpack, serialize 1800000/s 43536% 43536% 2445% 2263% 1845% 1681% 1124% ...
Legends:
CJX:e_j json, serialize: p_tags=json, serialize participant=Cpanel::JSON::XS::encode_json
DM:p binary, msgpack, serialize: p_tags=binary, msgpack, serialize participant=Data::MessagePack::pack
JC:c_j json, serialize: p_tags=json, serialize participant=JSON::Create::create_json
JM:e_j json, serialize: p_tags=json, serialize participant=JSON::MaybeXS::encode_json
JP:e_j json, serialize: p_tags=json, serialize participant=JSON::PP::encode_json
JT:e_j json, serialize: p_tags=json, serialize participant=JSON::Tiny::encode_json
JX:e_j json, serialize: p_tags=json, serialize participant=JSON::XS::encode_json
MEE:e json, serialize: p_tags=json, serialize participant=MarpaX::ESLIF::ECMA404::encode
S:e_s binary, sereal, serialize: p_tags=binary, sereal, serialize participant=Sereal::encode_sereal
S:f binary, storable, serialize, cant_handle_scalar: p_tags=binary, storable, serialize, cant_handle_scalar participant=Storable::freeze
Y:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Dump
YO:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Old::Dump
YS:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Syck::Dump
YX:D yaml, serialize: p_tags=yaml, serialize participant=YAML::XS::Dump
#table2#
{dataset=>"array_int_100"}
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | p_tags | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| YAML::Old::Dump | yaml, serialize | 540 | 1.9 | 0.00% | 58661.01% | 4e-06 | 22 |
| YAML::Dump | yaml, serialize | 540 | 1.9 | 0.24% | 58521.30% | 5.6e-06 | 20 |
| JSON::PP::encode_json | json, serialize | 9810 | 0.102 | 1727.38% | 3115.58% | 5.3e-08 | 20 |
| JSON::Tiny::encode_json | json, serialize | 12946.7 | 0.07724 | 2310.76% | 2337.44% | 2.1e-11 | 20 |
| YAML::Syck::Dump | yaml, serialize | 16000 | 0.062 | 2919.66% | 1845.95% | 2.4e-07 | 20 |
| YAML::XS::Dump | yaml, serialize | 21369.1 | 0.0467966 | 3879.08% | 1376.75% | 2.5e-11 | 20 |
| MarpaX::ESLIF::ECMA404::encode | json, serialize | 21000 | 0.047 | 3896.41% | 1370.34% | 2.8e-07 | 20 |
| Storable::freeze | binary, storable, serialize, cant_handle_scalar | 144520 | 0.0069194 | 26810.79% | 118.35% | 2.6e-11 | 20 |
| Cpanel::JSON::XS::encode_json | json, serialize | 170000 | 0.0059 | 31719.94% | 84.67% | 2.7e-08 | 20 |
| JSON::MaybeXS::encode_json | json, serialize | 180000 | 0.0055 | 33509.95% | 74.83% | 3.5e-08 | 20 |
| JSON::XS::encode_json | json, serialize | 247140 | 0.0040463 | 45919.66% | 27.69% | 2.2e-11 | 20 |
| Data::MessagePack::pack | binary, msgpack, serialize | 303520 | 0.0032946 | 56418.52% | 3.97% | 2.7e-11 | 21 |
| Sereal::encode_sereal | binary, sereal, serialize | 307000 | 0.00325 | 57132.72% | 2.67% | 1.6e-09 | 22 |
| JSON::Create::create_json | json, serialize | 315570 | 0.0031689 | 58661.01% | 0.00% | 2.4e-11 | 20 |
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
Formatted as Benchmark.pm result:
Rate YO:D yaml, serialize Y:D yaml, serialize JP:e_j json, serialize JT:e_j json, serialize YS:D yaml, serialize MEE:e json, serialize YX:D yaml, serialize S:f binary, storable, ...
YO:D yaml, serialize 540/s -- 0% -94% -95% -96% -97% -97% ...
Y:D yaml, serialize 540/s 0% -- -94% -95% -96% -97% -97% ...
JC:c_j json, serialize 315570/s 59857% 59857% 3118% 2337% 1856% 1383% 1376% ...
Legends:
CJX:e_j json, serialize: p_tags=json, serialize participant=Cpanel::JSON::XS::encode_json
DM:p binary, msgpack, serialize: p_tags=binary, msgpack, serialize participant=Data::MessagePack::pack
JC:c_j json, serialize: p_tags=json, serialize participant=JSON::Create::create_json
JM:e_j json, serialize: p_tags=json, serialize participant=JSON::MaybeXS::encode_json
JP:e_j json, serialize: p_tags=json, serialize participant=JSON::PP::encode_json
JT:e_j json, serialize: p_tags=json, serialize participant=JSON::Tiny::encode_json
JX:e_j json, serialize: p_tags=json, serialize participant=JSON::XS::encode_json
MEE:e json, serialize: p_tags=json, serialize participant=MarpaX::ESLIF::ECMA404::encode
S:e_s binary, sereal, serialize: p_tags=binary, sereal, serialize participant=Sereal::encode_sereal
S:f binary, storable, serialize, cant_handle_scalar: p_tags=binary, storable, serialize, cant_handle_scalar participant=Storable::freeze
Y:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Dump
YO:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Old::Dump
YS:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Syck::Dump
YX:D yaml, serialize: p_tags=yaml, serialize participant=YAML::XS::Dump
#table3#
{dataset=>"array_int_1000"}
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | p_tags | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| YAML::Old::Dump | yaml, serialize | 53 | 19 | 0.00% | 64425.97% | 9e-05 | 20 |
| YAML::Dump | yaml, serialize | 54 | 19 | 0.74% | 63952.79% | 5.4e-05 | 20 |
| JSON::PP::encode_json | json, serialize | 900 | 1 | 1519.37% | 3884.64% | 1.5e-05 | 23 |
| JSON::Tiny::encode_json | json, serialize | 1300 | 0.77 | 2338.55% | 2546.08% | 2.4e-06 | 21 |
| YAML::Syck::Dump | yaml, serialize | 1700 | 0.6 | 3004.02% | 1978.79% | 5e-06 | 20 |
| YAML::XS::Dump | yaml, serialize | 2260 | 0.442 | 4149.89% | 1418.30% | 2.7e-07 | 20 |
| MarpaX::ESLIF::ECMA404::encode | json, serialize | 2700 | 0.36 | 5061.21% | 1150.21% | 1.1e-06 | 22 |
| Storable::freeze | binary, storable, serialize, cant_handle_scalar | 18000 | 0.057 | 32850.30% | 95.83% | 1.1e-07 | 20 |
| Cpanel::JSON::XS::encode_json | json, serialize | 20000 | 0.051 | 36533.69% | 76.14% | 2.2e-07 | 21 |
| JSON::MaybeXS::encode_json | json, serialize | 24000 | 0.042 | 44545.23% | 44.53% | 5.3e-08 | 20 |
| JSON::XS::encode_json | json, serialize | 26000 | 0.039 | 48290.13% | 33.35% | 5.2e-08 | 21 |
| JSON::Create::create_json | json, serialize | 30900 | 0.0324 | 57886.15% | 11.28% | 1.3e-08 | 20 |
| Sereal::encode_sereal | binary, sereal, serialize | 34000 | 0.029 | 63771.57% | 1.02% | 6.7e-08 | 20 |
| Data::MessagePack::pack | binary, msgpack, serialize | 34400 | 0.0291 | 64425.97% | 0.00% | 1.3e-08 | 21 |
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
Formatted as Benchmark.pm result:
S:e_s binary, sereal, serialize 34000/s 65417% 65417% 3348% 2555% 1968% 1424% 1141% ...
Legends:
CJX:e_j json, serialize: p_tags=json, serialize participant=Cpanel::JSON::XS::encode_json
DM:p binary, msgpack, serialize: p_tags=binary, msgpack, serialize participant=Data::MessagePack::pack
JC:c_j json, serialize: p_tags=json, serialize participant=JSON::Create::create_json
JM:e_j json, serialize: p_tags=json, serialize participant=JSON::MaybeXS::encode_json
JP:e_j json, serialize: p_tags=json, serialize participant=JSON::PP::encode_json
JT:e_j json, serialize: p_tags=json, serialize participant=JSON::Tiny::encode_json
JX:e_j json, serialize: p_tags=json, serialize participant=JSON::XS::encode_json
MEE:e json, serialize: p_tags=json, serialize participant=MarpaX::ESLIF::ECMA404::encode
S:e_s binary, sereal, serialize: p_tags=binary, sereal, serialize participant=Sereal::encode_sereal
S:f binary, storable, serialize, cant_handle_scalar: p_tags=binary, storable, serialize, cant_handle_scalar participant=Storable::freeze
Y:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Dump
YO:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Old::Dump
YS:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Syck::Dump
YX:D yaml, serialize: p_tags=yaml, serialize participant=YAML::XS::Dump
#table4#
{dataset=>"array_str1k_10"}
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | p_tags | rate (/s) | time (μs) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| MarpaX::ESLIF::ECMA404::encode | json, serialize | 1100 | 940 | 0.00% | 50377.69% | 5.6e-06 | 20 |
| YAML::Dump | yaml, serialize | 3000 | 340 | 177.43% | 18094.45% | 1.1e-06 | 20 |
| YAML::Old::Dump | yaml, serialize | 3100 | 320 | 190.41% | 17281.69% | 3.7e-07 | 20 |
| YAML::XS::Dump | yaml, serialize | 8300 | 120 | 678.37% | 6385.08% | 1.6e-07 | 21 |
| JSON::PP::encode_json | json, serialize | 10000 | 70 | 1214.24% | 3740.83% | 8.8e-07 | 20 |
| JSON::Tiny::encode_json | json, serialize | 25000 | 41 | 2204.34% | 2090.55% | 5.3e-08 | 20 |
| YAML::Syck::Dump | yaml, serialize | 25300 | 39.6 | 2271.87% | 2028.18% | 1.3e-08 | 20 |
| JSON::Create::create_json | json, serialize | 32000 | 31 | 2898.93% | 1583.19% | 2.3e-07 | 20 |
| Cpanel::JSON::XS::encode_json | json, serialize | 46000 | 22 | 4236.16% | 1064.11% | 8e-08 | 20 |
| JSON::XS::encode_json | json, serialize | 51000 | 19 | 4718.61% | 947.56% | 2.6e-08 | 21 |
| JSON::MaybeXS::encode_json | json, serialize | 53705 | 18.62 | 4938.08% | 901.92% | 2.3e-11 | 21 |
DM:p binary, msgpack, serialize 540000/s 49373% 17794% 16742% 6215% 3584% 2057% 1984% 1531% ...
Legends:
CJX:e_j json, serialize: p_tags=json, serialize participant=Cpanel::JSON::XS::encode_json
DM:p binary, msgpack, serialize: p_tags=binary, msgpack, serialize participant=Data::MessagePack::pack
JC:c_j json, serialize: p_tags=json, serialize participant=JSON::Create::create_json
JM:e_j json, serialize: p_tags=json, serialize participant=JSON::MaybeXS::encode_json
JP:e_j json, serialize: p_tags=json, serialize participant=JSON::PP::encode_json
JT:e_j json, serialize: p_tags=json, serialize participant=JSON::Tiny::encode_json
JX:e_j json, serialize: p_tags=json, serialize participant=JSON::XS::encode_json
MEE:e json, serialize: p_tags=json, serialize participant=MarpaX::ESLIF::ECMA404::encode
S:e_s binary, sereal, serialize: p_tags=binary, sereal, serialize participant=Sereal::encode_sereal
S:f binary, storable, serialize, cant_handle_scalar: p_tags=binary, storable, serialize, cant_handle_scalar participant=Storable::freeze
Y:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Dump
YO:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Old::Dump
YS:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Syck::Dump
YX:D yaml, serialize: p_tags=yaml, serialize participant=YAML::XS::Dump
#table5#
{dataset=>"array_ustr1k_10"}
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | p_tags | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| MarpaX::ESLIF::ECMA404::encode | json, serialize | 580 | 1.7 | 0.00% | 46575.45% | 2.2e-06 | 20 |
| YAML::Dump | yaml, serialize | 1400 | 0.72 | 139.39% | 19397.80% | 2.7e-06 | 21 |
| YAML::Old::Dump | yaml, serialize | 1400 | 0.71 | 142.87% | 19118.43% | 2e-06 | 20 |
| JSON::PP::encode_json | json, serialize | 2000 | 0.4 | 299.65% | 11579.07% | 1.2e-05 | 21 |
| JSON::Tiny::encode_json | json, serialize | 3000 | 0.34 | 412.71% | 9003.61% | 6.8e-07 | 21 |
| JSON::XS::encode_json | json, serialize | 5000 | 0.2 | 689.10% | 5815.02% | 5.8e-06 | 20 |
| YAML::XS::Dump | yaml, serialize | 4700 | 0.21 | 710.65% | 5657.77% | 4.3e-07 | 20 |
| Cpanel::JSON::XS::encode_json | json, serialize | 5100 | 0.2 | 775.99% | 5228.31% | 1.1e-06 | 20 |
| JSON::MaybeXS::encode_json | json, serialize | 5000 | 0.2 | 789.91% | 5144.96% | 2.2e-06 | 30 |
| YAML::Syck::Dump | yaml, serialize | 9690 | 0.103 | 1579.13% | 2679.75% | 5.2e-08 | 21 |
| JSON::Create::create_json | json, serialize | 19000 | 0.054 | 3129.93% | 1345.09% | 1.6e-07 | 20 |
DM:p binary, msgpack, serialize 269000/s 45722% 19307% 19037% 10681% 9064% 5560% 5290% 529...
Legends:
CJX:e_j json, serialize: p_tags=json, serialize participant=Cpanel::JSON::XS::encode_json
DM:p binary, msgpack, serialize: p_tags=binary, msgpack, serialize participant=Data::MessagePack::pack
JC:c_j json, serialize: p_tags=json, serialize participant=JSON::Create::create_json
JM:e_j json, serialize: p_tags=json, serialize participant=JSON::MaybeXS::encode_json
JP:e_j json, serialize: p_tags=json, serialize participant=JSON::PP::encode_json
JT:e_j json, serialize: p_tags=json, serialize participant=JSON::Tiny::encode_json
JX:e_j json, serialize: p_tags=json, serialize participant=JSON::XS::encode_json
MEE:e json, serialize: p_tags=json, serialize participant=MarpaX::ESLIF::ECMA404::encode
S:e_s binary, sereal, serialize: p_tags=binary, sereal, serialize participant=Sereal::encode_sereal
S:f binary, storable, serialize, cant_handle_scalar: p_tags=binary, storable, serialize, cant_handle_scalar participant=Storable::freeze
Y:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Dump
YO:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Old::Dump
YS:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Syck::Dump
YX:D yaml, serialize: p_tags=yaml, serialize participant=YAML::XS::Dump
#table6#
{dataset=>"hash_int_10"}
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | p_tags | rate (/s) | time (μs) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| YAML::Dump | yaml, serialize | 3000 | 340 | 0.00% | 19527.58% | 9.1e-07 | 20 |
| YAML::Old::Dump | yaml, serialize | 3000 | 330 | 0.99% | 19335.96% | 1.2e-06 | 20 |
| MarpaX::ESLIF::ECMA404::encode | json, serialize | 43000 | 23 | 1362.30% | 1242.24% | 1.1e-07 | 20 |
| JSON::PP::encode_json | json, serialize | 44000 | 23 | 1402.10% | 1206.67% | 2.7e-08 | 20 |
| JSON::Tiny::encode_json | json, serialize | 53000 | 19 | 1677.78% | 1004.05% | 5.3e-08 | 20 |
| YAML::Syck::Dump | yaml, serialize | 66000 | 15 | 2144.51% | 774.47% | 2.7e-08 | 20 |
| YAML::XS::Dump | yaml, serialize | 73000 | 14 | 2384.77% | 689.92% | 2.7e-08 | 20 |
| Storable::freeze | binary, storable, serialize, cant_handle_scalar | 230000 | 4.3 | 7698.65% | 151.68% | 6.7e-09 | 20 |
| Data::MessagePack::pack | binary, msgpack, serialize | 485000 | 2.06 | 16291.30% | 19.74% | 7.6e-10 | 24 |
| Cpanel::JSON::XS::encode_json | json, serialize | 510000 | 1.9 | 17296.72% | 12.82% | 2.5e-09 | 20 |
| JSON::XS::encode_json | json, serialize | 500000 | 2 | 17759.94% | 9.90% | 2.2e-08 | 20 |
| Sereal::encode_sereal | binary, sereal, serialize | 544000 | 1.84 | 18316.30% | 6.58% | 7e-10 | 28 |
| JSON::MaybeXS::encode_json | json, serialize | 577600 | 1.731 | 19437.27% | 0.46% | 2.8e-11 | 20 |
Rate Y:D yaml, serialize YO:D yaml, serialize MEE:e json, serialize JP:e_j json, serialize JT:e_j json, serialize YS:D yaml, serialize YX:D yaml, serialize S:f binary, storable, s...
Y:D yaml, serialize 3000/s -- -2% -93% -93% -94% -95% -95% ...
YO:D yaml, serialize 3000/s 3% -- -93% -93% -94% -95% -95% ...
MEE:e json, serialize 43000/s 1378% 1334% -- 0% -17% -34% -39% ...
JP:e_j json, serialize 44000/s 1378% 1334% 0% -- -17% -34% -39% ...
JT:e_j json, serialize 53000/s 1689% 1636% 21% 21% -- -21% -26% ...
YS:D yaml, serialize 66000/s 2166% 2100% 53% 53% 26% -- -6% ...
YX:D yaml, serialize 73000/s 2328% 2257% 64% 64% 35% 7% -- ...
S:f binary, storable, serialize, cant_handle_scalar 230000/s 7806% 7574% 434% 434% 341% 248% 225% ...
DM:p binary, msgpack, serialize 485000/s 16404% 15919% 1016% 1016% 822% 628% 579% ...
JX:e_j json, serialize 500000/s 16900% 16400% 1050% 1050% 850% 650% 600% ...
JC:c_j json, serialize 600000/s 16900% 16400% 1050% 1050% 850% 650% 600% ...
CJX:e_j json, serialize 510000/s 17794% 17268% 1110% 1110% 900% 689% 636% ...
S:e_s binary, sereal, serialize 544000/s 18378% 17834% 1150% 1150% 932% 715% 660% ...
JM:e_j json, serialize 577600/s 19541% 18964% 1228% 1228% 997% 766% 708% ...
Legends:
CJX:e_j json, serialize: p_tags=json, serialize participant=Cpanel::JSON::XS::encode_json
DM:p binary, msgpack, serialize: p_tags=binary, msgpack, serialize participant=Data::MessagePack::pack
JC:c_j json, serialize: p_tags=json, serialize participant=JSON::Create::create_json
JM:e_j json, serialize: p_tags=json, serialize participant=JSON::MaybeXS::encode_json
JP:e_j json, serialize: p_tags=json, serialize participant=JSON::PP::encode_json
JT:e_j json, serialize: p_tags=json, serialize participant=JSON::Tiny::encode_json
JX:e_j json, serialize: p_tags=json, serialize participant=JSON::XS::encode_json
MEE:e json, serialize: p_tags=json, serialize participant=MarpaX::ESLIF::ECMA404::encode
S:e_s binary, sereal, serialize: p_tags=binary, sereal, serialize participant=Sereal::encode_sereal
S:f binary, storable, serialize, cant_handle_scalar: p_tags=binary, storable, serialize, cant_handle_scalar participant=Storable::freeze
Y:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Dump
YO:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Old::Dump
YS:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Syck::Dump
YX:D yaml, serialize: p_tags=yaml, serialize participant=YAML::XS::Dump
#table7#
{dataset=>"hash_int_100"}
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | p_tags | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| YAML::Dump | yaml, serialize | 350 | 2.8 | 0.00% | 17095.20% | 1.1e-05 | 20 |
| YAML::Old::Dump | yaml, serialize | 360 | 2.8 | 0.05% | 17086.54% | 1.8e-05 | 22 |
| JSON::PP::encode_json | json, serialize | 4800 | 0.21 | 1262.46% | 1162.07% | 4.8e-07 | 20 |
| JSON::Tiny::encode_json | json, serialize | 5800 | 0.17 | 1523.54% | 959.12% | 4.3e-07 | 25 |
| MarpaX::ESLIF::ECMA404::encode | json, serialize | 6900 | 0.14 | 1846.36% | 783.45% | 9.1e-07 | 20 |
| YAML::Syck::Dump | yaml, serialize | 7200 | 0.14 | 1922.10% | 750.36% | 4e-07 | 23 |
| YAML::XS::Dump | yaml, serialize | 7880 | 0.127 | 2120.06% | 674.54% | 5.3e-08 | 20 |
| Sereal::encode_sereal | binary, sereal, serialize | 47000 | 0.021 | 13061.48% | 30.65% | 6e-08 | 20 |
| Data::MessagePack::pack | binary, msgpack, serialize | 50000 | 0.02 | 13916.13% | 22.68% | 2.7e-08 | 20 |
| Storable::freeze | binary, storable, serialize, cant_handle_scalar | 51000 | 0.019 | 14358.29% | 18.93% | 2.6e-08 | 21 |
| JSON::MaybeXS::encode_json | json, serialize | 50000 | 0.02 | 15151.79% | 12.74% | 4.5e-07 | 20 |
| JSON::XS::encode_json | json, serialize | 50000 | 0.02 | 15369.22% | 11.16% | 2.3e-07 | 20 |
| Cpanel::JSON::XS::encode_json | json, serialize | 57000 | 0.018 | 15819.70% | 8.01% | 1.1e-07 | 20 |
| JSON::Create::create_json | json, serialize | 61000 | 0.016 | 17095.20% | 0.00% | 6e-08 | 20 |
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
JC:c_j json, serialize 61000/s 17399% 17399% 1212% 962% 775% 775% 693% ...
Legends:
CJX:e_j json, serialize: p_tags=json, serialize participant=Cpanel::JSON::XS::encode_json
DM:p binary, msgpack, serialize: p_tags=binary, msgpack, serialize participant=Data::MessagePack::pack
JC:c_j json, serialize: p_tags=json, serialize participant=JSON::Create::create_json
JM:e_j json, serialize: p_tags=json, serialize participant=JSON::MaybeXS::encode_json
JP:e_j json, serialize: p_tags=json, serialize participant=JSON::PP::encode_json
JT:e_j json, serialize: p_tags=json, serialize participant=JSON::Tiny::encode_json
JX:e_j json, serialize: p_tags=json, serialize participant=JSON::XS::encode_json
MEE:e json, serialize: p_tags=json, serialize participant=MarpaX::ESLIF::ECMA404::encode
S:e_s binary, sereal, serialize: p_tags=binary, sereal, serialize participant=Sereal::encode_sereal
S:f binary, storable, serialize, cant_handle_scalar: p_tags=binary, storable, serialize, cant_handle_scalar participant=Storable::freeze
Y:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Dump
YO:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Old::Dump
YS:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Syck::Dump
YX:D yaml, serialize: p_tags=yaml, serialize participant=YAML::XS::Dump
#table8#
{dataset=>"hash_int_1000"}
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+-----------+---------+
| participant | p_tags | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+-----------+---------+
| YAML::Old::Dump | yaml, serialize | 30 | 30 | 0.00% | 13875.67% | 0.00053 | 20 |
| YAML::Dump | yaml, serialize | 35 | 28 | 9.29% | 12687.44% | 7.2e-05 | 20 |
| JSON::PP::encode_json | json, serialize | 420 | 2.4 | 1197.65% | 977.00% | 2.2e-05 | 20 |
| JSON::Tiny::encode_json | json, serialize | 560 | 1.8 | 1636.48% | 704.83% | 6.2e-06 | 20 |
| MarpaX::ESLIF::ECMA404::encode | json, serialize | 600 | 2 | 1824.54% | 626.18% | 3.3e-05 | 21 |
| YAML::Syck::Dump | yaml, serialize | 730 | 1.4 | 2164.90% | 517.06% | 2.7e-06 | 20 |
| YAML::XS::Dump | yaml, serialize | 750 | 1.3 | 2215.93% | 503.46% | 5.6e-06 | 20 |
| Sereal::encode_sereal | binary, sereal, serialize | 3490 | 0.287 | 10661.97% | 29.86% | 2.7e-07 | 20 |
| JSON::XS::encode_json | json, serialize | 4000 | 0.3 | 11240.75% | 23.23% | 5.3e-06 | 21 |
| JSON::MaybeXS::encode_json | json, serialize | 3900 | 0.26 | 11889.01% | 16.57% | 1.5e-06 | 20 |
| Data::MessagePack::pack | binary, msgpack, serialize | 4100 | 0.24 | 12630.07% | 9.78% | 4.8e-07 | 20 |
| Storable::freeze | binary, storable, serialize, cant_handle_scalar | 4300 | 0.23 | 13246.87% | 4.71% | 4.3e-07 | 20 |
| Cpanel::JSON::XS::encode_json | json, serialize | 4300 | 0.23 | 13305.65% | 4.25% | 6.9e-07 | 20 |
| JSON::Create::create_json | json, serialize | 4500 | 0.22 | 13875.67% | 0.00% | 2.7e-07 | 20 |
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+-----------+---------+
JC:c_j json, serialize 4500/s 13536% 12627% 990% 809% 718% 536% 490% 36% ...
Legends:
CJX:e_j json, serialize: p_tags=json, serialize participant=Cpanel::JSON::XS::encode_json
DM:p binary, msgpack, serialize: p_tags=binary, msgpack, serialize participant=Data::MessagePack::pack
JC:c_j json, serialize: p_tags=json, serialize participant=JSON::Create::create_json
JM:e_j json, serialize: p_tags=json, serialize participant=JSON::MaybeXS::encode_json
JP:e_j json, serialize: p_tags=json, serialize participant=JSON::PP::encode_json
JT:e_j json, serialize: p_tags=json, serialize participant=JSON::Tiny::encode_json
JX:e_j json, serialize: p_tags=json, serialize participant=JSON::XS::encode_json
MEE:e json, serialize: p_tags=json, serialize participant=MarpaX::ESLIF::ECMA404::encode
S:e_s binary, sereal, serialize: p_tags=binary, sereal, serialize participant=Sereal::encode_sereal
S:f binary, storable, serialize, cant_handle_scalar: p_tags=binary, storable, serialize, cant_handle_scalar participant=Storable::freeze
Y:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Dump
YO:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Old::Dump
YS:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Syck::Dump
YX:D yaml, serialize: p_tags=yaml, serialize participant=YAML::XS::Dump
#table9#
{dataset=>"num"}
+--------------------------------+----------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | p_tags | rate (/s) | time (μs) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+--------------------------------+----------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| YAML::Old::Dump | yaml, serialize | 20000 | 51 | 0.00% | 24465.64% | 1.7e-07 | 20 |
| YAML::Dump | yaml, serialize | 20000 | 50 | 1.91% | 24006.26% | 2e-07 | 20 |
| MarpaX::ESLIF::ECMA404::encode | json, serialize | 100000 | 10 | 404.45% | 4769.83% | 1.9e-07 | 21 |
| YAML::Syck::Dump | yaml, serialize | 200000 | 5 | 894.97% | 2369.00% | 7e-08 | 20 |
| JSON::Tiny::encode_json | json, serialize | 240000 | 4.2 | 1124.80% | 1905.68% | 6.7e-09 | 20 |
| JSON::PP::encode_json | json, serialize | 270000 | 3.7 | 1277.26% | 1683.67% | 6.7e-09 | 20 |
| YAML::XS::Dump | yaml, serialize | 339000 | 2.95 | 1621.21% | 1327.23% | 8.3e-10 | 20 |
| Cpanel::JSON::XS::encode_json | json, serialize | 1800000 | 0.57 | 8845.91% | 174.60% | 1.4e-09 | 29 |
| JSON::MaybeXS::encode_json | json, serialize | 1840000 | 0.543 | 9267.82% | 162.23% | 2.1e-10 | 20 |
| JSON::XS::encode_json | json, serialize | 1967000 | 0.5084 | 9900.67% | 145.64% | 2.2e-11 | 20 |
| JSON::Create::create_json | json, serialize | 2200000 | 0.46 | 11049.43% | 120.33% | 4.4e-09 | 20 |
| Sereal::encode_sereal | binary, sereal, serialize | 3400000 | 0.294 | 17168.15% | 42.26% | 1.1e-10 | 20 |
| Data::MessagePack::pack | binary, msgpack, serialize | 4830000 | 0.207 | 24465.64% | 0.00% | 1e-10 | 21 |
DM:p binary, msgpack, serialize 4830000/s 24537% 24054% 4730% 2315% 1928% 1687% 1325% 175% ...
Legends:
CJX:e_j json, serialize: p_tags=json, serialize participant=Cpanel::JSON::XS::encode_json
DM:p binary, msgpack, serialize: p_tags=binary, msgpack, serialize participant=Data::MessagePack::pack
JC:c_j json, serialize: p_tags=json, serialize participant=JSON::Create::create_json
JM:e_j json, serialize: p_tags=json, serialize participant=JSON::MaybeXS::encode_json
JP:e_j json, serialize: p_tags=json, serialize participant=JSON::PP::encode_json
JT:e_j json, serialize: p_tags=json, serialize participant=JSON::Tiny::encode_json
JX:e_j json, serialize: p_tags=json, serialize participant=JSON::XS::encode_json
MEE:e json, serialize: p_tags=json, serialize participant=MarpaX::ESLIF::ECMA404::encode
S:e_s binary, sereal, serialize: p_tags=binary, sereal, serialize participant=Sereal::encode_sereal
Y:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Dump
YO:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Old::Dump
YS:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Syck::Dump
YX:D yaml, serialize: p_tags=yaml, serialize participant=YAML::XS::Dump
#table10#
{dataset=>"str1k"}
+--------------------------------+--------------------+----------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | ds_tags | p_tags | rate (/s) | time (μs) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+--------------------------------+--------------------+----------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| MarpaX::ESLIF::ECMA404::encode | serialize, unicode | json, serialize | 5000 | 200 | 0.00% | 74352.92% | 1.6e-06 | 21 |
| MarpaX::ESLIF::ECMA404::encode | serialize | json, serialize | 9300 | 110 | 86.76% | 39765.85% | 9.1e-07 | 20 |
| YAML::Old::Dump | serialize, unicode | yaml, serialize | 10000 | 97 | 107.20% | 35832.18% | 3.5e-07 | 20 |
| YAML::Dump | serialize, unicode | yaml, serialize | 10000 | 96 | 107.54% | 35774.49% | 2.4e-07 | 20 |
| YAML::Dump | serialize | yaml, serialize | 17000 | 58 | 242.47% | 21640.13% | 1.3e-07 | 22 |
| YAML::Old::Dump | serialize | yaml, serialize | 18000 | 57 | 254.11% | 20925.62% | 9.9e-08 | 23 |
| JSON::PP::encode_json | serialize, unicode | json, serialize | 25200 | 39.6 | 405.51% | 14628.21% | 1.2e-08 | 24 |
| JSON::Tiny::encode_json | serialize, unicode | json, serialize | 28000 | 36 | 461.07% | 13169.74% | 6.7e-08 | 20 |
| YAML::XS::Dump | serialize, unicode | yaml, serialize | 45000 | 22 | 793.86% | 8229.34% | 2.7e-08 | 20 |
| JSON::MaybeXS::encode_json | serialize, unicode | json, serialize | 49000 | 21 | 872.02% | 7559.58% | 1.1e-07 | 20 |
| Cpanel::JSON::XS::encode_json | serialize, unicode | json, serialize | 52000 | 19 | 950.18% | 6989.53% | 3.2e-08 | 22 |
| JSON::XS::encode_json | serialize, unicode | json, serialize | 57000 | 18 | 1043.39% | 6411.59% | 5.3e-08 | 20 |
YX:D yaml, serialize serialize 75000/s 1438% 746% 646% 638% ...
JP:e_j json, serialize serialize 140000/s 2639% 1406% 1228% 1215% ...
YS:D yaml, serialize serialize 100000/s 2757% 1471% 1285% 1271% ...
JT:e_j json, serialize serialize 170000/s 3348% 1796% 1572% 1555% ...
JC:c_j json, serialize serialize, unicode 180000/s 3603% 1937% 1696% 1677% ...
JC:c_j json, serialize serialize 300000/s 6566% 3566% 3133% 3100% 1...
CJX:e_j json, serialize serialize 400000/s 6566% 3566% 3133% 3100% 1...
JM:e_j json, serialize serialize 450000/s 8990% 4899% 4309% 4263% 2...
JX:e_j json, serialize serialize 521000/s 10316% 5629% 4952% 4900% 2...
S:e_s binary, sereal, serialize serialize, unicode 2580000/s 51446% 28250% 24900% 24642% 14...
S:e_s binary, sereal, serialize serialize 2790000/s 55610% 30540% 26919% 26640% 16...
DM:p binary, msgpack, serialize serialize, unicode 3400000/s 66566% 36566% 32233% 31900% 19...
DM:p binary, msgpack, serialize serialize 3720000/s 74249% 40792% 35959% 35587% 21...
Legends:
CJX:e_j json, serialize serialize: ds_tags=serialize p_tags=json, serialize participant=Cpanel::JSON::XS::encode_json
CJX:e_j json, serialize serialize, unicode: ds_tags=serialize, unicode p_tags=json, serialize participant=Cpanel::JSON::XS::encode_json
DM:p binary, msgpack, serialize serialize: ds_tags=serialize p_tags=binary, msgpack, serialize participant=Data::MessagePack::pack
DM:p binary, msgpack, serialize serialize, unicode: ds_tags=serialize, unicode p_tags=binary, msgpack, serialize participant=Data::MessagePack::pack
JC:c_j json, serialize serialize: ds_tags=serialize p_tags=json, serialize participant=JSON::Create::create_json
JC:c_j json, serialize serialize, unicode: ds_tags=serialize, unicode p_tags=json, serialize participant=JSON::Create::create_json
JM:e_j json, serialize serialize: ds_tags=serialize p_tags=json, serialize participant=JSON::MaybeXS::encode_json
JM:e_j json, serialize serialize, unicode: ds_tags=serialize, unicode p_tags=json, serialize participant=JSON::MaybeXS::encode_json
JP:e_j json, serialize serialize: ds_tags=serialize p_tags=json, serialize participant=JSON::PP::encode_json
JP:e_j json, serialize serialize, unicode: ds_tags=serialize, unicode p_tags=json, serialize participant=JSON::PP::encode_json
JT:e_j json, serialize serialize: ds_tags=serialize p_tags=json, serialize participant=JSON::Tiny::encode_json
JT:e_j json, serialize serialize, unicode: ds_tags=serialize, unicode p_tags=json, serialize participant=JSON::Tiny::encode_json
JX:e_j json, serialize serialize: ds_tags=serialize p_tags=json, serialize participant=JSON::XS::encode_json
JX:e_j json, serialize serialize, unicode: ds_tags=serialize, unicode p_tags=json, serialize participant=JSON::XS::encode_json
MEE:e json, serialize serialize: ds_tags=serialize p_tags=json, serialize participant=MarpaX::ESLIF::ECMA404::encode
MEE:e json, serialize serialize, unicode: ds_tags=serialize, unicode p_tags=json, serialize participant=MarpaX::ESLIF::ECMA404::encode
S:e_s binary, sereal, serialize serialize: ds_tags=serialize p_tags=binary, sereal, serialize participant=Sereal::encode_sereal
S:e_s binary, sereal, serialize serialize, unicode: ds_tags=serialize, unicode p_tags=binary, sereal, serialize participant=Sereal::encode_sereal
Y:D yaml, serialize serialize: ds_tags=serialize p_tags=yaml, serialize participant=YAML::Dump
Y:D yaml, serialize serialize, unicode: ds_tags=serialize, unicode p_tags=yaml, serialize participant=YAML::Dump
YO:D yaml, serialize serialize: ds_tags=serialize p_tags=yaml, serialize participant=YAML::Old::Dump
YO:D yaml, serialize serialize, unicode: ds_tags=serialize, unicode p_tags=yaml, serialize participant=YAML::Old::Dump
YS:D yaml, serialize serialize: ds_tags=serialize p_tags=yaml, serialize participant=YAML::Syck::Dump
YS:D yaml, serialize serialize, unicode: ds_tags=serialize, unicode p_tags=yaml, serialize participant=YAML::Syck::Dump
YX:D yaml, serialize serialize: ds_tags=serialize p_tags=yaml, serialize participant=YAML::XS::Dump
YX:D yaml, serialize serialize, unicode: ds_tags=serialize, unicode p_tags=yaml, serialize participant=YAML::XS::Dump
#table11#
{dataset=>"undef"}
+--------------------------------+----------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | p_tags | rate (/s) | time (μs) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+--------------------------------+----------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| YAML::Dump | yaml, serialize | 23000 | 44 | 0.00% | 27821.63% | 1.7e-07 | 20 |
| YAML::Old::Dump | yaml, serialize | 23000 | 44 | 0.80% | 27600.29% | 9.5e-08 | 25 |
| MarpaX::ESLIF::ECMA404::encode | json, serialize | 120000 | 8.2 | 438.15% | 5088.46% | 1.3e-08 | 20 |
| YAML::Syck::Dump | yaml, serialize | 240000 | 4.1 | 963.06% | 2526.53% | 2.2e-08 | 20 |
| JSON::Tiny::encode_json | json, serialize | 450000 | 2.22 | 1880.06% | 1310.14% | 7.8e-10 | 23 |
| JSON::PP::encode_json | json, serialize | 549000 | 1.82 | 2314.83% | 1056.26% | 8.3e-10 | 20 |
| YAML::XS::Dump | yaml, serialize | 598000 | 1.67 | 2529.80% | 961.74% | 8.3e-10 | 20 |
| Sereal::encode_sereal | binary, sereal, serialize | 3770000 | 0.266 | 16468.29% | 68.52% | 1e-10 | 23 |
| Data::MessagePack::pack | binary, msgpack, serialize | 5600000 | 0.18 | 24407.23% | 13.93% | 4.2e-10 | 20 |
| JSON::MaybeXS::encode_json | json, serialize | 5800000 | 0.17 | 25256.72% | 10.12% | 4.1e-10 | 21 |
| Cpanel::JSON::XS::encode_json | json, serialize | 5900000 | 0.17 | 26036.06% | 6.83% | 3.1e-10 | 20 |
| JSON::XS::encode_json | json, serialize | 6000000 | 0.17 | 26232.04% | 6.04% | 4.2e-10 | 20 |
| JSON::Create::create_json | json, serialize | 6000000 | 0.2 | 27821.63% | 0.00% | 5.5e-09 | 20 |
JX:e_j json, serialize 6000000/s 25782% 25782% 4723% 2311% 1205% 970% 882% 56% ...
Legends:
CJX:e_j json, serialize: p_tags=json, serialize participant=Cpanel::JSON::XS::encode_json
DM:p binary, msgpack, serialize: p_tags=binary, msgpack, serialize participant=Data::MessagePack::pack
JC:c_j json, serialize: p_tags=json, serialize participant=JSON::Create::create_json
JM:e_j json, serialize: p_tags=json, serialize participant=JSON::MaybeXS::encode_json
JP:e_j json, serialize: p_tags=json, serialize participant=JSON::PP::encode_json
JT:e_j json, serialize: p_tags=json, serialize participant=JSON::Tiny::encode_json
JX:e_j json, serialize: p_tags=json, serialize participant=JSON::XS::encode_json
MEE:e json, serialize: p_tags=json, serialize participant=MarpaX::ESLIF::ECMA404::encode
S:e_s binary, sereal, serialize: p_tags=binary, sereal, serialize participant=Sereal::encode_sereal
Y:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Dump
YO:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Old::Dump
YS:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Syck::Dump
YX:D yaml, serialize: p_tags=yaml, serialize participant=YAML::XS::Dump
Benchmark with "bencher -m Serializers --include-participant-tags
deserialize":
#table12#
{dataset=>"json:array_int_10"}
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | p_tags | rate (/s) | time (μs) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| JSON::Decode::Marpa::from_json | json, deserialize, cant_handle_scalar | 1000 | 900 | 0.00% | 157174.18% | 1.3e-05 | 20 |
| Pegex::JSON | json, deserialize | 1800 | 550 | 64.14% | 95717.41% | 1.1e-06 | 20 |
| JSON::Parser::Regexp | json, deserialize | 6400 | 160 | 472.94% | 27350.49% | 2.1e-07 | 20 |
| MarpaX::ESLIF::ECMA404::decode | json, deserialize | 12000 | 85 | 955.15% | 14805.37% | 2.1e-07 | 20 |
| JSON::PP::decode_json | json, deserialize | 34000 | 29 | 2984.51% | 4998.84% | 3.9e-08 | 21 |
| JSON::Decode::Regexp::from_json | json, deserialize | 44100 | 22.7 | 3862.21% | 3869.35% | 2e-08 | 20 |
| JSON::Tiny::decode_json | json, deserialize | 52700 | 19 | 4630.37% | 3224.77% | 6.7e-09 | 20 |
| JSON::MaybeXS::decode_json | json, deserialize | 1560000 | 0.641 | 139987.39% | 12.27% | 6.3e-10 | 20 |
| Cpanel::JSON::XS::decode_json | json, deserialize | 1590000 | 0.63 | 142281.47% | 10.46% | 2.1e-10 | 20 |
| JSON::XS::decode_json | json, deserialize | 1600000 | 0.62 | 144694.33% | 8.62% | 8.3e-10 | 20 |
| JSON::Parse::parse_json | json, deserialize | 1800000 | 0.57 | 157174.18% | 0.00% | 6.2e-10 | 20 |
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
Formatted as Benchmark.pm result:
Legends:
CJX:d_j json, deserialize: p_tags=json, deserialize participant=Cpanel::JSON::XS::decode_json
JDM:f_j json, deserialize, cant_handle_scalar: p_tags=json, deserialize, cant_handle_scalar participant=JSON::Decode::Marpa::from_json
JDR:f_j json, deserialize: p_tags=json, deserialize participant=JSON::Decode::Regexp::from_json
JM:d_j json, deserialize: p_tags=json, deserialize participant=JSON::MaybeXS::decode_json
JP:R json, deserialize: p_tags=json, deserialize participant=JSON::Parser::Regexp
JP:d_j json, deserialize: p_tags=json, deserialize participant=JSON::PP::decode_json
JP:p_j json, deserialize: p_tags=json, deserialize participant=JSON::Parse::parse_json
JT:d_j json, deserialize: p_tags=json, deserialize participant=JSON::Tiny::decode_json
JX:d_j json, deserialize: p_tags=json, deserialize participant=JSON::XS::decode_json
MEE:d json, deserialize: p_tags=json, deserialize participant=MarpaX::ESLIF::ECMA404::decode
P:J json, deserialize: p_tags=json, deserialize participant=Pegex::JSON
#table13#
{dataset=>"json:array_int_100"}
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | p_tags | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| Pegex::JSON | json, deserialize | 410 | 2.4 | 0.00% | 56872.59% | 1.2e-05 | 20 |
| JSON::Decode::Marpa::from_json | json, deserialize, cant_handle_scalar | 420 | 2.4 | 1.45% | 56058.30% | 7.5e-06 | 22 |
| JSON::Parser::Regexp | json, deserialize | 510 | 2 | 23.29% | 46110.67% | 3.4e-06 | 20 |
| MarpaX::ESLIF::ECMA404::decode | json, deserialize | 1700 | 0.59 | 310.19% | 13789.24% | 4.1e-06 | 21 |
| JSON::PP::decode_json | json, deserialize | 3400 | 0.29 | 729.87% | 6765.24% | 6.4e-07 | 20 |
| JSON::Decode::Regexp::from_json | json, deserialize | 4900 | 0.204 | 1083.18% | 4715.19% | 1.5e-07 | 22 |
| JSON::Tiny::decode_json | json, deserialize | 7200 | 0.14 | 1642.69% | 3169.24% | 2e-07 | 22 |
| Cpanel::JSON::XS::decode_json | json, deserialize | 210000 | 0.0047 | 51043.01% | 11.40% | 2.8e-08 | 21 |
| JSON::Parse::parse_json | json, deserialize | 230000 | 0.0044 | 54531.53% | 4.29% | 1.3e-08 | 20 |
| JSON::MaybeXS::decode_json | json, deserialize | 230000 | 0.0043 | 56191.85% | 1.21% | 2e-08 | 20 |
| JSON::XS::decode_json | json, deserialize | 240000 | 0.0042 | 56872.59% | 0.00% | 1.5e-08 | 20 |
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
Formatted as Benchmark.pm result:
Legends:
CJX:d_j json, deserialize: p_tags=json, deserialize participant=Cpanel::JSON::XS::decode_json
JDM:f_j json, deserialize, cant_handle_scalar: p_tags=json, deserialize, cant_handle_scalar participant=JSON::Decode::Marpa::from_json
JDR:f_j json, deserialize: p_tags=json, deserialize participant=JSON::Decode::Regexp::from_json
JM:d_j json, deserialize: p_tags=json, deserialize participant=JSON::MaybeXS::decode_json
JP:R json, deserialize: p_tags=json, deserialize participant=JSON::Parser::Regexp
JP:d_j json, deserialize: p_tags=json, deserialize participant=JSON::PP::decode_json
JP:p_j json, deserialize: p_tags=json, deserialize participant=JSON::Parse::parse_json
JT:d_j json, deserialize: p_tags=json, deserialize participant=JSON::Tiny::decode_json
JX:d_j json, deserialize: p_tags=json, deserialize participant=JSON::XS::decode_json
MEE:d json, deserialize: p_tags=json, deserialize participant=MarpaX::ESLIF::ECMA404::decode
P:J json, deserialize: p_tags=json, deserialize participant=Pegex::JSON
#table14#
{dataset=>"json:array_int_1000"}
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | p_tags | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| JSON::Parser::Regexp | json, deserialize | 37.6 | 26.6 | 0.00% | 84221.25% | 2.1e-05 | 20 |
| Pegex::JSON | json, deserialize | 46 | 22 | 21.72% | 69172.09% | 4.6e-05 | 20 |
| JSON::Decode::Marpa::from_json | json, deserialize, cant_handle_scalar | 49 | 20 | 30.91% | 64310.72% | 5.2e-05 | 20 |
| MarpaX::ESLIF::ECMA404::decode | json, deserialize | 140 | 7.2 | 267.33% | 22855.10% | 1.8e-05 | 20 |
| JSON::PP::decode_json | json, deserialize | 310 | 3.2 | 719.14% | 10193.82% | 4.2e-06 | 20 |
| JSON::Decode::Regexp::from_json | json, deserialize | 380 | 2.6 | 917.14% | 8190.03% | 1.1e-05 | 20 |
| JSON::Tiny::decode_json | json, deserialize | 760 | 1.3 | 1923.12% | 4067.88% | 2e-06 | 20 |
| JSON::Parse::parse_json | json, deserialize | 29000 | 0.035 | 76749.22% | 9.72% | 5.2e-08 | 21 |
| JSON::XS::decode_json | json, deserialize | 31000 | 0.033 | 81340.82% | 3.54% | 5.3e-08 | 20 |
| Cpanel::JSON::XS::decode_json | json, deserialize | 31000 | 0.032 | 82617.13% | 1.94% | 5.3e-08 | 20 |
| JSON::MaybeXS::decode_json | json, deserialize | 32000 | 0.032 | 84221.25% | 0.00% | 5.3e-08 | 20 |
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
Formatted as Benchmark.pm result:
Legends:
CJX:d_j json, deserialize: p_tags=json, deserialize participant=Cpanel::JSON::XS::decode_json
JDM:f_j json, deserialize, cant_handle_scalar: p_tags=json, deserialize, cant_handle_scalar participant=JSON::Decode::Marpa::from_json
JDR:f_j json, deserialize: p_tags=json, deserialize participant=JSON::Decode::Regexp::from_json
JM:d_j json, deserialize: p_tags=json, deserialize participant=JSON::MaybeXS::decode_json
JP:R json, deserialize: p_tags=json, deserialize participant=JSON::Parser::Regexp
JP:d_j json, deserialize: p_tags=json, deserialize participant=JSON::PP::decode_json
JP:p_j json, deserialize: p_tags=json, deserialize participant=JSON::Parse::parse_json
JT:d_j json, deserialize: p_tags=json, deserialize participant=JSON::Tiny::decode_json
JX:d_j json, deserialize: p_tags=json, deserialize participant=JSON::XS::decode_json
MEE:d json, deserialize: p_tags=json, deserialize participant=MarpaX::ESLIF::ECMA404::decode
P:J json, deserialize: p_tags=json, deserialize participant=Pegex::JSON
#table15#
{dataset=>"json:array_str1k_10"}
+---------------------------------+---------------------------------------+-----------+------------+-----------------------+-----------------------+-----------+---------+
| participant | p_tags | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+---------------------------------+---------------------------------------+-----------+------------+-----------------------+-----------------------+-----------+---------+
| JSON::Parser::Regexp | json, deserialize | 14 | 69 | 0.00% | 455081.62% | 0.00012 | 20 |
| JSON::Decode::Marpa::from_json | json, deserialize, cant_handle_scalar | 110 | 8.9 | 684.39% | 57930.25% | 3.6e-05 | 20 |
| JSON::PP::decode_json | json, deserialize | 220 | 4.6 | 1401.52% | 30214.66% | 1.3e-05 | 20 |
| Pegex::JSON | json, deserialize | 930 | 1.1 | 6357.21% | 6949.20% | 3.4e-06 | 22 |
| JSON::Tiny::decode_json | json, deserialize | 2090 | 0.479 | 14414.32% | 3036.09% | 2.1e-07 | 20 |
| MarpaX::ESLIF::ECMA404::decode | json, deserialize | 4000 | 0.25 | 27485.82% | 1550.06% | 6.4e-07 | 20 |
| JSON::Decode::Regexp::from_json | json, deserialize | 26000 | 0.038 | 181187.15% | 151.08% | 5.3e-08 | 20 |
| JSON::Parse::parse_json | json, deserialize | 34730.5 | 0.0287931 | 241271.38% | 88.58% | 2.4e-11 | 20 |
| JSON::MaybeXS::decode_json | json, deserialize | 53843 | 0.018573 | 374097.91% | 21.64% | 2.5e-11 | 20 |
| Cpanel::JSON::XS::decode_json | json, deserialize | 53979 | 0.018526 | 375042.07% | 21.34% | 4.3e-11 | 20 |
| JSON::XS::decode_json | json, deserialize | 65500 | 0.0153 | 455081.62% | 0.00% | 5e-09 | 35 |
+---------------------------------+---------------------------------------+-----------+------------+-----------------------+-----------------------+-----------+---------+
Formatted as Benchmark.pm result:
Rate JP:R json, deserialize JDM:f_j json, deserialize, cant_handle_scalar JP:d_j json, deserialize P:J json, deserialize JT:d_j json, deserialize MEE:d json, deserialize JDR:f_j json, d...
Legends:
CJX:d_j json, deserialize: p_tags=json, deserialize participant=Cpanel::JSON::XS::decode_json
JDM:f_j json, deserialize, cant_handle_scalar: p_tags=json, deserialize, cant_handle_scalar participant=JSON::Decode::Marpa::from_json
JDR:f_j json, deserialize: p_tags=json, deserialize participant=JSON::Decode::Regexp::from_json
JM:d_j json, deserialize: p_tags=json, deserialize participant=JSON::MaybeXS::decode_json
JP:R json, deserialize: p_tags=json, deserialize participant=JSON::Parser::Regexp
JP:d_j json, deserialize: p_tags=json, deserialize participant=JSON::PP::decode_json
JP:p_j json, deserialize: p_tags=json, deserialize participant=JSON::Parse::parse_json
JT:d_j json, deserialize: p_tags=json, deserialize participant=JSON::Tiny::decode_json
JX:d_j json, deserialize: p_tags=json, deserialize participant=JSON::XS::decode_json
MEE:d json, deserialize: p_tags=json, deserialize participant=MarpaX::ESLIF::ECMA404::decode
P:J json, deserialize: p_tags=json, deserialize participant=Pegex::JSON
#table16#
{dataset=>"json:hash_int_10"}
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | p_tags | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| JSON::Parser::Regexp | json, deserialize | 440 | 2.3 | 0.00% | 221113.17% | 2.2e-05 | 20 |
| JSON::Decode::Marpa::from_json | json, deserialize, cant_handle_scalar | 900 | 1 | 107.55% | 106483.02% | 2.1e-05 | 20 |
| Pegex::JSON | json, deserialize | 1400 | 0.73 | 210.35% | 71178.04% | 3.3e-06 | 20 |
| MarpaX::ESLIF::ECMA404::decode | json, deserialize | 5000 | 0.2 | 1122.42% | 17996.26% | 2.2e-06 | 20 |
| JSON::PP::decode_json | json, deserialize | 7800 | 0.13 | 1666.87% | 12420.08% | 6.4e-07 | 20 |
| JSON::Decode::Regexp::from_json | json, deserialize | 21000 | 0.049 | 4571.43% | 4635.45% | 5.3e-08 | 20 |
| JSON::Tiny::decode_json | json, deserialize | 27000 | 0.037 | 6105.88% | 3464.58% | 5.3e-08 | 20 |
| Cpanel::JSON::XS::decode_json | json, deserialize | 795000 | 0.00126 | 180204.25% | 22.69% | 4.3e-10 | 20 |
| JSON::MaybeXS::decode_json | json, deserialize | 799000 | 0.00125 | 181122.71% | 22.07% | 4e-10 | 22 |
| JSON::XS::decode_json | json, deserialize | 930000 | 0.0011 | 211074.16% | 4.75% | 1.7e-09 | 20 |
| JSON::Parse::parse_json | json, deserialize | 974900 | 0.001026 | 221113.17% | 0.00% | 2.2e-11 | 20 |
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
Formatted as Benchmark.pm result:
Legends:
CJX:d_j json, deserialize: p_tags=json, deserialize participant=Cpanel::JSON::XS::decode_json
JDM:f_j json, deserialize, cant_handle_scalar: p_tags=json, deserialize, cant_handle_scalar participant=JSON::Decode::Marpa::from_json
JDR:f_j json, deserialize: p_tags=json, deserialize participant=JSON::Decode::Regexp::from_json
JM:d_j json, deserialize: p_tags=json, deserialize participant=JSON::MaybeXS::decode_json
JP:R json, deserialize: p_tags=json, deserialize participant=JSON::Parser::Regexp
JP:d_j json, deserialize: p_tags=json, deserialize participant=JSON::PP::decode_json
JP:p_j json, deserialize: p_tags=json, deserialize participant=JSON::Parse::parse_json
JT:d_j json, deserialize: p_tags=json, deserialize participant=JSON::Tiny::decode_json
JX:d_j json, deserialize: p_tags=json, deserialize participant=JSON::XS::decode_json
MEE:d json, deserialize: p_tags=json, deserialize participant=MarpaX::ESLIF::ECMA404::decode
P:J json, deserialize: p_tags=json, deserialize participant=Pegex::JSON
#table17#
{dataset=>"json:hash_int_100"}
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+-----------+---------+
| participant | p_tags | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+-----------+---------+
| JSON::Parser::Regexp | json, deserialize | 35 | 28 | 0.00% | 258511.85% | 0.00011 | 21 |
| JSON::Decode::Marpa::from_json | json, deserialize, cant_handle_scalar | 200 | 5 | 499.33% | 43050.33% | 6e-05 | 20 |
| Pegex::JSON | json, deserialize | 240 | 4.2 | 570.43% | 38474.27% | 1.7e-05 | 21 |
| MarpaX::ESLIF::ECMA404::decode | json, deserialize | 700 | 2 | 1795.53% | 13543.27% | 1.7e-05 | 20 |
| JSON::PP::decode_json | json, deserialize | 1900 | 0.52 | 5377.87% | 4621.03% | 6.4e-07 | 20 |
| JSON::Decode::Regexp::from_json | json, deserialize | 2200 | 0.46 | 6053.54% | 4102.65% | 9.1e-07 | 20 |
| JSON::Tiny::decode_json | json, deserialize | 3300 | 0.31 | 9179.44% | 2686.93% | 4.3e-07 | 20 |
| Cpanel::JSON::XS::decode_json | json, deserialize | 77000 | 0.013 | 218953.33% | 18.06% | 5.2e-08 | 21 |
| JSON::MaybeXS::decode_json | json, deserialize | 77900 | 0.0128 | 221925.34% | 16.48% | 6.4e-09 | 22 |
| JSON::XS::decode_json | json, deserialize | 91000 | 0.011 | 258240.22% | 0.11% | 1.3e-08 | 20 |
| JSON::Parse::parse_json | json, deserialize | 91000 | 0.011 | 258511.85% | 0.00% | 1.3e-08 | 20 |
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+-----------+---------+
Formatted as Benchmark.pm result:
Legends:
CJX:d_j json, deserialize: p_tags=json, deserialize participant=Cpanel::JSON::XS::decode_json
JDM:f_j json, deserialize, cant_handle_scalar: p_tags=json, deserialize, cant_handle_scalar participant=JSON::Decode::Marpa::from_json
JDR:f_j json, deserialize: p_tags=json, deserialize participant=JSON::Decode::Regexp::from_json
JM:d_j json, deserialize: p_tags=json, deserialize participant=JSON::MaybeXS::decode_json
JP:R json, deserialize: p_tags=json, deserialize participant=JSON::Parser::Regexp
JP:d_j json, deserialize: p_tags=json, deserialize participant=JSON::PP::decode_json
JP:p_j json, deserialize: p_tags=json, deserialize participant=JSON::Parse::parse_json
JT:d_j json, deserialize: p_tags=json, deserialize participant=JSON::Tiny::decode_json
JX:d_j json, deserialize: p_tags=json, deserialize participant=JSON::XS::decode_json
MEE:d json, deserialize: p_tags=json, deserialize participant=MarpaX::ESLIF::ECMA404::decode
P:J json, deserialize: p_tags=json, deserialize participant=Pegex::JSON
#table18#
{dataset=>"json:hash_int_1000"}
+---------------------------------+---------------------------------------+-----------+------------+-----------------------+-----------------------+-----------+---------+
| participant | p_tags | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+---------------------------------+---------------------------------------+-----------+------------+-----------------------+-----------------------+-----------+---------+
| JSON::Parser::Regexp | json, deserialize | 3 | 300 | 0.00% | 224003.01% | 0.0034 | 20 |
| JSON::Decode::Marpa::from_json | json, deserialize, cant_handle_scalar | 23 | 43 | 651.15% | 29734.84% | 0.00011 | 20 |
| Pegex::JSON | json, deserialize | 24 | 42 | 660.60% | 29364.14% | 9.7e-05 | 20 |
| MarpaX::ESLIF::ECMA404::decode | json, deserialize | 56 | 18 | 1724.51% | 12182.89% | 3.9e-05 | 20 |
| JSON::Decode::Regexp::from_json | json, deserialize | 140 | 7.2 | 4358.82% | 4926.07% | 6.5e-05 | 20 |
| JSON::PP::decode_json | json, deserialize | 170 | 6 | 5284.49% | 4062.01% | 4e-05 | 20 |
| JSON::Tiny::decode_json | json, deserialize | 320 | 3.1 | 10304.19% | 2053.97% | 1.1e-05 | 21 |
| JSON::Parse::parse_json | json, deserialize | 5900 | 0.17 | 189507.39% | 18.19% | 8.5e-07 | 20 |
| Cpanel::JSON::XS::decode_json | json, deserialize | 6100 | 0.16 | 197942.04% | 13.16% | 2.7e-07 | 20 |
| JSON::MaybeXS::decode_json | json, deserialize | 6100 | 0.16 | 198173.71% | 13.03% | 2.1e-07 | 20 |
| JSON::XS::decode_json | json, deserialize | 6933.95 | 0.144218 | 224003.01% | 0.00% | 2e-11 | 20 |
+---------------------------------+---------------------------------------+-----------+------------+-----------------------+-----------------------+-----------+---------+
Formatted as Benchmark.pm result:
Legends:
CJX:d_j json, deserialize: p_tags=json, deserialize participant=Cpanel::JSON::XS::decode_json
JDM:f_j json, deserialize, cant_handle_scalar: p_tags=json, deserialize, cant_handle_scalar participant=JSON::Decode::Marpa::from_json
JDR:f_j json, deserialize: p_tags=json, deserialize participant=JSON::Decode::Regexp::from_json
JM:d_j json, deserialize: p_tags=json, deserialize participant=JSON::MaybeXS::decode_json
JP:R json, deserialize: p_tags=json, deserialize participant=JSON::Parser::Regexp
JP:d_j json, deserialize: p_tags=json, deserialize participant=JSON::PP::decode_json
JP:p_j json, deserialize: p_tags=json, deserialize participant=JSON::Parse::parse_json
JT:d_j json, deserialize: p_tags=json, deserialize participant=JSON::Tiny::decode_json
JX:d_j json, deserialize: p_tags=json, deserialize participant=JSON::XS::decode_json
MEE:d json, deserialize: p_tags=json, deserialize participant=MarpaX::ESLIF::ECMA404::decode
P:J json, deserialize: p_tags=json, deserialize participant=Pegex::JSON
#table19#
{dataset=>"json:null"}
+---------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | rate (/s) | time (μs) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+---------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| Pegex::JSON | 2900 | 340 | 0.00% | 432868.50% | 1.4e-06 | 20 |
| JSON::Parser::Regexp | 27000 | 37 | 813.86% | 47278.00% | 5.3e-08 | 20 |
| MarpaX::ESLIF::ECMA404::decode | 34000 | 29 | 1060.03% | 37223.78% | 1.2e-07 | 20 |
| JSON::Tiny::decode_json | 210000 | 4.8 | 7018.46% | 5982.34% | 8.3e-09 | 20 |
| JSON::PP::decode_json | 310000 | 3.2 | 10427.64% | 4012.68% | 2e-08 | 20 |
| JSON::Decode::Regexp::from_json | 450000 | 2.2 | 15130.12% | 2742.84% | 3.3e-09 | 20 |
| JSON::MaybeXS::decode_json | 7940000 | 0.126 | 269739.33% | 60.45% | 5.7e-11 | 20 |
| Cpanel::JSON::XS::decode_json | 8200000 | 0.12 | 277179.29% | 56.15% | 2.1e-10 | 20 |
| JSON::XS::decode_json | 9500000 | 0.11 | 322725.10% | 34.12% | 4.2e-10 | 20 |
| JSON::Parse::parse_json | 13000000 | 0.079 | 432868.50% | 0.00% | 1.5e-10 | 21 |
+---------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
Formatted as Benchmark.pm result:
Legends:
CJX:d_j: participant=Cpanel::JSON::XS::decode_json
JDR:f_j: participant=JSON::Decode::Regexp::from_json
JM:d_j: participant=JSON::MaybeXS::decode_json
JP:R: participant=JSON::Parser::Regexp
JP:d_j: participant=JSON::PP::decode_json
JP:p_j: participant=JSON::Parse::parse_json
JT:d_j: participant=JSON::Tiny::decode_json
JX:d_j: participant=JSON::XS::decode_json
MEE:d: participant=MarpaX::ESLIF::ECMA404::decode
P:J: participant=Pegex::JSON
#table20#
{dataset=>"json:num"}
+---------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | rate (/s) | time (μs) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+---------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| Pegex::JSON | 3100 | 320 | 0.00% | 46984.68% | 6.9e-07 | 20 |
| MarpaX::ESLIF::ECMA404::decode | 14000 | 70 | 358.01% | 10180.19% | 1e-07 | 21 |
| JSON::Parser::Regexp | 22000 | 44 | 618.07% | 6457.08% | 5.3e-08 | 20 |
| JSON::Tiny::decode_json | 150000 | 6.6 | 4730.25% | 874.79% | 1.3e-08 | 20 |
| JSON::PP::decode_json | 152000 | 6.56 | 4769.40% | 866.95% | 3.3e-09 | 21 |
| JSON::Decode::Regexp::from_json | 290000 | 3.5 | 9070.48% | 413.44% | 6.7e-09 | 20 |
| JSON::MaybeXS::decode_json | 1300000 | 0.77 | 41326.32% | 13.66% | 1.7e-09 | 20 |
| Cpanel::JSON::XS::decode_json | 1310000 | 0.766 | 41606.00% | 12.90% | 4.2e-10 | 20 |
| JSON::Parse::parse_json | 1452000 | 0.6887 | 46271.06% | 1.54% | 2.4e-11 | 20 |
| JSON::XS::decode_json | 1470000 | 0.678 | 46984.68% | 0.00% | 2.1e-10 | 20 |
+---------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
Legends:
CJX:d_j: participant=Cpanel::JSON::XS::decode_json
JDR:f_j: participant=JSON::Decode::Regexp::from_json
JM:d_j: participant=JSON::MaybeXS::decode_json
JP:R: participant=JSON::Parser::Regexp
JP:d_j: participant=JSON::PP::decode_json
JP:p_j: participant=JSON::Parse::parse_json
JT:d_j: participant=JSON::Tiny::decode_json
JX:d_j: participant=JSON::XS::decode_json
MEE:d: participant=MarpaX::ESLIF::ECMA404::decode
P:J: participant=Pegex::JSON
#table21#
{dataset=>"json:str1k"}
+---------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+---------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| JSON::Parser::Regexp | 150 | 6.9 | 0.00% | 445739.55% | 1e-05 | 20 |
| JSON::PP::decode_json | 2210 | 0.452 | 1421.30% | 29206.57% | 2.1e-07 | 20 |
| Pegex::JSON | 2600 | 0.38 | 1702.24% | 24638.06% | 2e-06 | 20 |
| JSON::Tiny::decode_json | 20300 | 0.0494 | 13842.37% | 3097.73% | 1.3e-08 | 20 |
| MarpaX::ESLIF::ECMA404::decode | 21000 | 0.047 | 14598.21% | 2933.29% | 6.7e-08 | 20 |
| JSON::Decode::Regexp::from_json | 240000 | 0.0041 | 167571.35% | 165.90% | 6.7e-09 | 20 |
| JSON::Parse::parse_json | 349150 | 0.0028641 | 240240.49% | 85.50% | 2.1e-11 | 20 |
| JSON::MaybeXS::decode_json | 533900 | 0.001873 | 367430.08% | 21.31% | 2.9e-11 | 21 |
| Cpanel::JSON::XS::decode_json | 536000 | 0.00186 | 369133.12% | 20.75% | 7.3e-10 | 26 |
| JSON::XS::decode_json | 647700 | 0.001544 | 445739.55% | 0.00% | 5.1e-11 | 20 |
+---------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
Formatted as Benchmark.pm result:
Rate JP:R JP:d_j P:J JT:d_j MEE:d JDR:f_j JP:p_j JM:d_j CJX:d_j JX:d_j
Legends:
CJX:d_j: participant=Cpanel::JSON::XS::decode_json
JDR:f_j: participant=JSON::Decode::Regexp::from_json
JM:d_j: participant=JSON::MaybeXS::decode_json
JP:R: participant=JSON::Parser::Regexp
JP:d_j: participant=JSON::PP::decode_json
JP:p_j: participant=JSON::Parse::parse_json
JT:d_j: participant=JSON::Tiny::decode_json
JX:d_j: participant=JSON::XS::decode_json
MEE:d: participant=MarpaX::ESLIF::ECMA404::decode
P:J: participant=Pegex::JSON
#table22#
{dataset=>"perl:hash_int_100"}
+-------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+-------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| Data::Undump::PPI | 41 | 24 | 0.00% | 205899.40% | 4.7e-05 | 20 |
| eval() | 16000 | 0.063 | 38777.09% | 429.87% | 2.1e-07 | 20 |
| Data::Undump | 84000 | 0.012 | 205899.40% | 0.00% | 1.3e-08 | 21 |
: dataset=sereal:hash_int_100 ds_tags=deserialize p_tags=binary, sereal, deserialize participant=Sereal::decode_sereal perl=perl
Benchmark module startup overhead ("bencher -m Serializers
--module-startup"):
#table24#
+------------------------+-----------+-------------------+-----------------------+-----------------------+-----------+---------+
| participant | time (ms) | mod_overhead_time | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+------------------------+-----------+-------------------+-----------------------+-----------------------+-----------+---------+
| JSON::Decode::Marpa | 110 | 94 | 0.00% | 570.99% | 0.00022 | 20 |
| MarpaX::ESLIF::ECMA404 | 92 | 76 | 14.98% | 483.55% | 0.00013 | 20 |
| Data::Undump::PPI | 66.2 | 50.2 | 59.18% | 321.52% | 4.8e-05 | 21 |
| JSON::Parser::Regexp | 51 | 35 | 107.40% | 223.52% | 0.00018 | 20 |
| JSON::Tiny | 33 | 17 | 223.58% | 107.36% | 4.4e-05 | 20 |
| JSON::PP | 29.1 | 13.1 | 262.44% | 85.13% | 2.7e-05 | 20 |
| Pegex::JSON | 28 | 12 | 270.48% | 81.12% | 5.7e-05 | 20 |
| JSON::MaybeXS | 25 | 9 | 322.92% | 58.65% | 4.8e-05 | 20 |
| YAML | 23 | 7 | 352.70% | 48.22% | 0.00013 | 20 |
| Storable | 23 | 7 | 354.09% | 47.77% | 3.9e-05 | 20 |
| Sereal | 23 | 7 | 354.51% | 47.63% | 4.3e-05 | 21 |
| YAML::Old | 23 | 7 | 365.71% | 44.08% | 5e-05 | 20 |
| YAML::Syck | 19 | 3 | 443.58% | 23.44% | 2.5e-05 | 20 |
| JSON::Decode::Regexp | 19 | 3 | 466.88% | 18.37% | 3e-05 | 20 |
| JSON::Create | 19 | 3 | 467.08% | 18.32% | 3.8e-05 | 20 |
| Data::Undump | 18 | 2 | 471.53% | 17.40% | 2.6e-05 | 20 |
| Data::MessagePack | 18 | 2 | 474.41% | 16.81% | 2.1e-05 | 20 |
| perl -e1 (baseline) | 16 | 0 | 570.99% | 0.00% | 5e-05 | 20 |
+------------------------+-----------+-------------------+-----------------------+-----------------------+-----------+---------+
Formatted as Benchmark.pm result:
Rate JSON::Decode::Marpa MarpaX::ESLIF::ECMA404 Data::Undump::PPI JSON::Parser::Regexp JSON::Tiny JSON::PP Pegex::JSON JSON::MaybeXS YAML Storable Sereal YAML::Old YAML::XS JSON::Parse JSON::XS Cpanel::...
JSON::Decode::Marpa 9.1/s -- -16% -39% -53% -70% -73% -74% -77% -79% -79% -79% -79% -80% -80% -81% ...
MarpaX::ESLIF::ECMA404 10.9/s 19% -- -28% -44% -64% -68% -69% -72% -75% -75% -75% -75% -77% -77% -77% ...
Data::Undump::PPI 15.1/s 66% 38% -- -22% -50% -56% -57% -62% -65% -65% -65% -65% -68% -68% -69% ...
JSON::Parser::Regexp 19.6/s 115% 80% 29% -- -35% -42% -45% -50% -54% -54% -54% -54% -58% -58% -60% ...
JSON::Tiny 30.3/s 233% 178% 100% 54% -- -11% -15% -24% -30% -30% -30% -30% -36% -36% -38% ...
JSON::PP 34.4/s 278% 216% 127% 75% 13% -- -3% -14% -20% -20% -20% -20% -27% -27% -29% ...
Pegex::JSON 35.7/s 292% 228% 136% 82% 17% 3% -- -10% -17% -17% -17% -17% -25% -25% -27% ...
JSON::MaybeXS 40.0/s 340% 268% 164% 104% 32% 16% 12% -- -7% -7% -7% -7% -16% -16% -18% ...
YAML 43.5/s 378% 300% 187% 121% 43% 26% 21% 8% -- 0% 0% 0% -8% -8% -11% ...
Storable 43.5/s 378% 300% 187% 121% 43% 26% 21% 8% 0% -- 0% 0% -8% -8% -11% ...
Sereal 43.5/s 378% 300% 187% 121% 43% 26% 21% 8% 0% 0% -- 0% -8% -8% -11% ...
YAML::Old 43.5/s 378% 300% 187% 121% 43% 26% 21% 8% 0% 0% 0% -- -8% -8% -11% ...
Data::Undump::PPI: mod_overhead_time=50.2 participant=Data::Undump::PPI
JSON::Create: mod_overhead_time=3 participant=JSON::Create
JSON::Decode::Marpa: mod_overhead_time=94 participant=JSON::Decode::Marpa
JSON::Decode::Regexp: mod_overhead_time=3 participant=JSON::Decode::Regexp
JSON::MaybeXS: mod_overhead_time=9 participant=JSON::MaybeXS
JSON::PP: mod_overhead_time=13.1 participant=JSON::PP
JSON::Parse: mod_overhead_time=5 participant=JSON::Parse
JSON::Parser::Regexp: mod_overhead_time=35 participant=JSON::Parser::Regexp
JSON::Tiny: mod_overhead_time=17 participant=JSON::Tiny
JSON::XS: mod_overhead_time=4.4 participant=JSON::XS
MarpaX::ESLIF::ECMA404: mod_overhead_time=76 participant=MarpaX::ESLIF::ECMA404
Pegex::JSON: mod_overhead_time=12 participant=Pegex::JSON
Sereal: mod_overhead_time=7 participant=Sereal
Storable: mod_overhead_time=7 participant=Storable
YAML: mod_overhead_time=7 participant=YAML
YAML::Old: mod_overhead_time=7 participant=YAML::Old
YAML::Syck: mod_overhead_time=3 participant=YAML::Syck
YAML::XS: mod_overhead_time=5 participant=YAML::XS
perl -e1 (baseline): mod_overhead_time=0 participant=perl -e1 (baseline)
To display as an interactive HTML table on a browser, you can add option
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
{
tags => ['json', 'serialize'],
fcall_template => 'JSON::Create::create_json(<data>)',
},
{
tags => ['json', 'deserialize'],
fcall_template => 'JSON::Parse::parse_json(<data>)',
},
{
tags => ['json', 'serialize'],
fcall_template => 'MarpaX::ESLIF::ECMA404->encode(<data>)',
},
{
tags => ['json', 'deserialize'],
fcall_template => 'MarpaX::ESLIF::ECMA404->decode(<data>)',
},
{
tags => ['yaml', 'serialize'],
fcall_template => 'YAML::Dump(<data>)',
},
{
tags => ['yaml', 'deserialize'],
fcall_template => 'YAML::Load(<data>)',
},
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
L<JSON::Parser::Regexp> 0.18
L<JSON::Decode::Marpa> 0.02
L<Pegex::JSON> 0.31
L<JSON::Create> 0.34
L<JSON::Parse> 0.61
L<MarpaX::ESLIF::ECMA404> 0.014
L<YAML> 1.30
L<YAML::Old> 1.23
L<YAML::Syck> 1.34
L<YAML::XS> 0.83
L<Storable> 3.23
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
=item * JSON::Parse::parse_json (perl_code) [json, deserialize]
Function call template:
JSON::Parse::parse_json(<data>)
=item * MarpaX::ESLIF::ECMA404::encode (perl_code) [json, serialize]
Function call template:
MarpaX::ESLIF::ECMA404->encode(<data>)
=item * MarpaX::ESLIF::ECMA404::decode (perl_code) [json, deserialize]
Function call template:
MarpaX::ESLIF::ECMA404->decode(<data>)
=item * YAML::Dump (perl_code) [yaml, serialize]
Function call template:
YAML::Dump(<data>)
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
Benchmark with C<< bencher -m Serializers --include-participant-tags serialize >>:
#table1#
{dataset=>"array_int_10"}
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | p_tags | rate (/s) | time (μs) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| YAML::Dump | yaml, serialize | 4100 | 240 | 0.00% | 44100.70% | 6.9e-07 | 20 |
| YAML::Old::Dump | yaml, serialize | 4100 | 240 | 0.62% | 43827.69% | 6.4e-07 | 20 |
| JSON::PP::encode_json | json, serialize | 71000 | 14 | 1614.24% | 2478.44% | 8.5e-08 | 21 |
| MarpaX::ESLIF::ECMA404::encode | json, serialize | 76000 | 13 | 1753.36% | 2284.90% | 6e-08 | 20 |
| JSON::Tiny::encode_json | json, serialize | 93300 | 10.7 | 2166.16% | 1850.47% | 3.3e-09 | 20 |
| YAML::Syck::Dump | yaml, serialize | 100000 | 9.8 | 2375.98% | 1685.18% | 1.6e-08 | 21 |
| YAML::XS::Dump | yaml, serialize | 148460 | 6.736 | 3507.55% | 1125.23% | 2.2e-11 | 20 |
| Storable::freeze | binary, storable, serialize, cant_handle_scalar | 331790 | 3.014 | 7962.66% | 448.21% | 2.6e-11 | 20 |
| JSON::MaybeXS::encode_json | json, serialize | 1300000 | 0.78 | 30930.46% | 42.44% | 5.9e-09 | 21 |
| Sereal::encode_sereal | binary, sereal, serialize | 1400000 | 0.7 | 34807.79% | 26.62% | 8.3e-10 | 20 |
| Cpanel::JSON::XS::encode_json | json, serialize | 1500000 | 0.69 | 35297.75% | 24.87% | 7.6e-10 | 24 |
| JSON::XS::encode_json | json, serialize | 1700000 | 0.6 | 40118.51% | 9.90% | 8.3e-10 | 20 |
| JSON::Create::create_json | json, serialize | 1700000 | 0.6 | 40553.09% | 8.73% | 3.2e-09 | 25 |
| Data::MessagePack::pack | binary, msgpack, serialize | 1800000 | 0.55 | 44100.70% | 0.00% | 8.3e-10 | 20 |
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
DM:p binary, msgpack, serialize 1800000/s 43536% 43536% 2445% 2263% 1845% 1681% 1124% ...
Legends:
CJX:e_j json, serialize: p_tags=json, serialize participant=Cpanel::JSON::XS::encode_json
DM:p binary, msgpack, serialize: p_tags=binary, msgpack, serialize participant=Data::MessagePack::pack
JC:c_j json, serialize: p_tags=json, serialize participant=JSON::Create::create_json
JM:e_j json, serialize: p_tags=json, serialize participant=JSON::MaybeXS::encode_json
JP:e_j json, serialize: p_tags=json, serialize participant=JSON::PP::encode_json
JT:e_j json, serialize: p_tags=json, serialize participant=JSON::Tiny::encode_json
JX:e_j json, serialize: p_tags=json, serialize participant=JSON::XS::encode_json
MEE:e json, serialize: p_tags=json, serialize participant=MarpaX::ESLIF::ECMA404::encode
S:e_s binary, sereal, serialize: p_tags=binary, sereal, serialize participant=Sereal::encode_sereal
S:f binary, storable, serialize, cant_handle_scalar: p_tags=binary, storable, serialize, cant_handle_scalar participant=Storable::freeze
Y:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Dump
YO:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Old::Dump
YS:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Syck::Dump
YX:D yaml, serialize: p_tags=yaml, serialize participant=YAML::XS::Dump
#table2#
{dataset=>"array_int_100"}
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | p_tags | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| YAML::Old::Dump | yaml, serialize | 540 | 1.9 | 0.00% | 58661.01% | 4e-06 | 22 |
| YAML::Dump | yaml, serialize | 540 | 1.9 | 0.24% | 58521.30% | 5.6e-06 | 20 |
| JSON::PP::encode_json | json, serialize | 9810 | 0.102 | 1727.38% | 3115.58% | 5.3e-08 | 20 |
| JSON::Tiny::encode_json | json, serialize | 12946.7 | 0.07724 | 2310.76% | 2337.44% | 2.1e-11 | 20 |
| YAML::Syck::Dump | yaml, serialize | 16000 | 0.062 | 2919.66% | 1845.95% | 2.4e-07 | 20 |
| YAML::XS::Dump | yaml, serialize | 21369.1 | 0.0467966 | 3879.08% | 1376.75% | 2.5e-11 | 20 |
| MarpaX::ESLIF::ECMA404::encode | json, serialize | 21000 | 0.047 | 3896.41% | 1370.34% | 2.8e-07 | 20 |
| Storable::freeze | binary, storable, serialize, cant_handle_scalar | 144520 | 0.0069194 | 26810.79% | 118.35% | 2.6e-11 | 20 |
| Cpanel::JSON::XS::encode_json | json, serialize | 170000 | 0.0059 | 31719.94% | 84.67% | 2.7e-08 | 20 |
| JSON::MaybeXS::encode_json | json, serialize | 180000 | 0.0055 | 33509.95% | 74.83% | 3.5e-08 | 20 |
| JSON::XS::encode_json | json, serialize | 247140 | 0.0040463 | 45919.66% | 27.69% | 2.2e-11 | 20 |
| Data::MessagePack::pack | binary, msgpack, serialize | 303520 | 0.0032946 | 56418.52% | 3.97% | 2.7e-11 | 21 |
| Sereal::encode_sereal | binary, sereal, serialize | 307000 | 0.00325 | 57132.72% | 2.67% | 1.6e-09 | 22 |
| JSON::Create::create_json | json, serialize | 315570 | 0.0031689 | 58661.01% | 0.00% | 2.4e-11 | 20 |
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
Formatted as L<Benchmark.pm|Benchmark> result:
Rate YO:D yaml, serialize Y:D yaml, serialize JP:e_j json, serialize JT:e_j json, serialize YS:D yaml, serialize MEE:e json, serialize YX:D yaml, serialize S:f binary, storable, seri...
YO:D yaml, serialize 540/s -- 0% -94% -95% -96% -97% -97% ...
Y:D yaml, serialize 540/s 0% -- -94% -95% -96% -97% -97% ...
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
JC:c_j json, serialize 315570/s 59857% 59857% 3118% 2337% 1856% 1383% 1376% ...
Legends:
CJX:e_j json, serialize: p_tags=json, serialize participant=Cpanel::JSON::XS::encode_json
DM:p binary, msgpack, serialize: p_tags=binary, msgpack, serialize participant=Data::MessagePack::pack
JC:c_j json, serialize: p_tags=json, serialize participant=JSON::Create::create_json
JM:e_j json, serialize: p_tags=json, serialize participant=JSON::MaybeXS::encode_json
JP:e_j json, serialize: p_tags=json, serialize participant=JSON::PP::encode_json
JT:e_j json, serialize: p_tags=json, serialize participant=JSON::Tiny::encode_json
JX:e_j json, serialize: p_tags=json, serialize participant=JSON::XS::encode_json
MEE:e json, serialize: p_tags=json, serialize participant=MarpaX::ESLIF::ECMA404::encode
S:e_s binary, sereal, serialize: p_tags=binary, sereal, serialize participant=Sereal::encode_sereal
S:f binary, storable, serialize, cant_handle_scalar: p_tags=binary, storable, serialize, cant_handle_scalar participant=Storable::freeze
Y:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Dump
YO:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Old::Dump
YS:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Syck::Dump
YX:D yaml, serialize: p_tags=yaml, serialize participant=YAML::XS::Dump
#table3#
{dataset=>"array_int_1000"}
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | p_tags | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| YAML::Old::Dump | yaml, serialize | 53 | 19 | 0.00% | 64425.97% | 9e-05 | 20 |
| YAML::Dump | yaml, serialize | 54 | 19 | 0.74% | 63952.79% | 5.4e-05 | 20 |
| JSON::PP::encode_json | json, serialize | 900 | 1 | 1519.37% | 3884.64% | 1.5e-05 | 23 |
| JSON::Tiny::encode_json | json, serialize | 1300 | 0.77 | 2338.55% | 2546.08% | 2.4e-06 | 21 |
| YAML::Syck::Dump | yaml, serialize | 1700 | 0.6 | 3004.02% | 1978.79% | 5e-06 | 20 |
| YAML::XS::Dump | yaml, serialize | 2260 | 0.442 | 4149.89% | 1418.30% | 2.7e-07 | 20 |
| MarpaX::ESLIF::ECMA404::encode | json, serialize | 2700 | 0.36 | 5061.21% | 1150.21% | 1.1e-06 | 22 |
| Storable::freeze | binary, storable, serialize, cant_handle_scalar | 18000 | 0.057 | 32850.30% | 95.83% | 1.1e-07 | 20 |
| Cpanel::JSON::XS::encode_json | json, serialize | 20000 | 0.051 | 36533.69% | 76.14% | 2.2e-07 | 21 |
| JSON::MaybeXS::encode_json | json, serialize | 24000 | 0.042 | 44545.23% | 44.53% | 5.3e-08 | 20 |
| JSON::XS::encode_json | json, serialize | 26000 | 0.039 | 48290.13% | 33.35% | 5.2e-08 | 21 |
| JSON::Create::create_json | json, serialize | 30900 | 0.0324 | 57886.15% | 11.28% | 1.3e-08 | 20 |
| Sereal::encode_sereal | binary, sereal, serialize | 34000 | 0.029 | 63771.57% | 1.02% | 6.7e-08 | 20 |
| Data::MessagePack::pack | binary, msgpack, serialize | 34400 | 0.0291 | 64425.97% | 0.00% | 1.3e-08 | 21 |
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
Formatted as L<Benchmark.pm|Benchmark> result:
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
S:e_s binary, sereal, serialize 34000/s 65417% 65417% 3348% 2555% 1968% 1424% 1141% ...
Legends:
CJX:e_j json, serialize: p_tags=json, serialize participant=Cpanel::JSON::XS::encode_json
DM:p binary, msgpack, serialize: p_tags=binary, msgpack, serialize participant=Data::MessagePack::pack
JC:c_j json, serialize: p_tags=json, serialize participant=JSON::Create::create_json
JM:e_j json, serialize: p_tags=json, serialize participant=JSON::MaybeXS::encode_json
JP:e_j json, serialize: p_tags=json, serialize participant=JSON::PP::encode_json
JT:e_j json, serialize: p_tags=json, serialize participant=JSON::Tiny::encode_json
JX:e_j json, serialize: p_tags=json, serialize participant=JSON::XS::encode_json
MEE:e json, serialize: p_tags=json, serialize participant=MarpaX::ESLIF::ECMA404::encode
S:e_s binary, sereal, serialize: p_tags=binary, sereal, serialize participant=Sereal::encode_sereal
S:f binary, storable, serialize, cant_handle_scalar: p_tags=binary, storable, serialize, cant_handle_scalar participant=Storable::freeze
Y:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Dump
YO:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Old::Dump
YS:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Syck::Dump
YX:D yaml, serialize: p_tags=yaml, serialize participant=YAML::XS::Dump
#table4#
{dataset=>"array_str1k_10"}
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | p_tags | rate (/s) | time (μs) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| MarpaX::ESLIF::ECMA404::encode | json, serialize | 1100 | 940 | 0.00% | 50377.69% | 5.6e-06 | 20 |
| YAML::Dump | yaml, serialize | 3000 | 340 | 177.43% | 18094.45% | 1.1e-06 | 20 |
| YAML::Old::Dump | yaml, serialize | 3100 | 320 | 190.41% | 17281.69% | 3.7e-07 | 20 |
| YAML::XS::Dump | yaml, serialize | 8300 | 120 | 678.37% | 6385.08% | 1.6e-07 | 21 |
| JSON::PP::encode_json | json, serialize | 10000 | 70 | 1214.24% | 3740.83% | 8.8e-07 | 20 |
| JSON::Tiny::encode_json | json, serialize | 25000 | 41 | 2204.34% | 2090.55% | 5.3e-08 | 20 |
| YAML::Syck::Dump | yaml, serialize | 25300 | 39.6 | 2271.87% | 2028.18% | 1.3e-08 | 20 |
| JSON::Create::create_json | json, serialize | 32000 | 31 | 2898.93% | 1583.19% | 2.3e-07 | 20 |
| Cpanel::JSON::XS::encode_json | json, serialize | 46000 | 22 | 4236.16% | 1064.11% | 8e-08 | 20 |
| JSON::XS::encode_json | json, serialize | 51000 | 19 | 4718.61% | 947.56% | 2.6e-08 | 21 |
| JSON::MaybeXS::encode_json | json, serialize | 53705 | 18.62 | 4938.08% | 901.92% | 2.3e-11 | 21 |
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
DM:p binary, msgpack, serialize 540000/s 49373% 17794% 16742% 6215% 3584% 2057% 1984% 1531% ...
Legends:
CJX:e_j json, serialize: p_tags=json, serialize participant=Cpanel::JSON::XS::encode_json
DM:p binary, msgpack, serialize: p_tags=binary, msgpack, serialize participant=Data::MessagePack::pack
JC:c_j json, serialize: p_tags=json, serialize participant=JSON::Create::create_json
JM:e_j json, serialize: p_tags=json, serialize participant=JSON::MaybeXS::encode_json
JP:e_j json, serialize: p_tags=json, serialize participant=JSON::PP::encode_json
JT:e_j json, serialize: p_tags=json, serialize participant=JSON::Tiny::encode_json
JX:e_j json, serialize: p_tags=json, serialize participant=JSON::XS::encode_json
MEE:e json, serialize: p_tags=json, serialize participant=MarpaX::ESLIF::ECMA404::encode
S:e_s binary, sereal, serialize: p_tags=binary, sereal, serialize participant=Sereal::encode_sereal
S:f binary, storable, serialize, cant_handle_scalar: p_tags=binary, storable, serialize, cant_handle_scalar participant=Storable::freeze
Y:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Dump
YO:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Old::Dump
YS:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Syck::Dump
YX:D yaml, serialize: p_tags=yaml, serialize participant=YAML::XS::Dump
#table5#
{dataset=>"array_ustr1k_10"}
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | p_tags | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| MarpaX::ESLIF::ECMA404::encode | json, serialize | 580 | 1.7 | 0.00% | 46575.45% | 2.2e-06 | 20 |
| YAML::Dump | yaml, serialize | 1400 | 0.72 | 139.39% | 19397.80% | 2.7e-06 | 21 |
| YAML::Old::Dump | yaml, serialize | 1400 | 0.71 | 142.87% | 19118.43% | 2e-06 | 20 |
| JSON::PP::encode_json | json, serialize | 2000 | 0.4 | 299.65% | 11579.07% | 1.2e-05 | 21 |
| JSON::Tiny::encode_json | json, serialize | 3000 | 0.34 | 412.71% | 9003.61% | 6.8e-07 | 21 |
| JSON::XS::encode_json | json, serialize | 5000 | 0.2 | 689.10% | 5815.02% | 5.8e-06 | 20 |
| YAML::XS::Dump | yaml, serialize | 4700 | 0.21 | 710.65% | 5657.77% | 4.3e-07 | 20 |
| Cpanel::JSON::XS::encode_json | json, serialize | 5100 | 0.2 | 775.99% | 5228.31% | 1.1e-06 | 20 |
| JSON::MaybeXS::encode_json | json, serialize | 5000 | 0.2 | 789.91% | 5144.96% | 2.2e-06 | 30 |
| YAML::Syck::Dump | yaml, serialize | 9690 | 0.103 | 1579.13% | 2679.75% | 5.2e-08 | 21 |
| JSON::Create::create_json | json, serialize | 19000 | 0.054 | 3129.93% | 1345.09% | 1.6e-07 | 20 |
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
DM:p binary, msgpack, serialize 269000/s 45722% 19307% 19037% 10681% 9064% 5560% 5290% 5290% ...
Legends:
CJX:e_j json, serialize: p_tags=json, serialize participant=Cpanel::JSON::XS::encode_json
DM:p binary, msgpack, serialize: p_tags=binary, msgpack, serialize participant=Data::MessagePack::pack
JC:c_j json, serialize: p_tags=json, serialize participant=JSON::Create::create_json
JM:e_j json, serialize: p_tags=json, serialize participant=JSON::MaybeXS::encode_json
JP:e_j json, serialize: p_tags=json, serialize participant=JSON::PP::encode_json
JT:e_j json, serialize: p_tags=json, serialize participant=JSON::Tiny::encode_json
JX:e_j json, serialize: p_tags=json, serialize participant=JSON::XS::encode_json
MEE:e json, serialize: p_tags=json, serialize participant=MarpaX::ESLIF::ECMA404::encode
S:e_s binary, sereal, serialize: p_tags=binary, sereal, serialize participant=Sereal::encode_sereal
S:f binary, storable, serialize, cant_handle_scalar: p_tags=binary, storable, serialize, cant_handle_scalar participant=Storable::freeze
Y:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Dump
YO:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Old::Dump
YS:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Syck::Dump
YX:D yaml, serialize: p_tags=yaml, serialize participant=YAML::XS::Dump
#table6#
{dataset=>"hash_int_10"}
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | p_tags | rate (/s) | time (μs) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| YAML::Dump | yaml, serialize | 3000 | 340 | 0.00% | 19527.58% | 9.1e-07 | 20 |
| YAML::Old::Dump | yaml, serialize | 3000 | 330 | 0.99% | 19335.96% | 1.2e-06 | 20 |
| MarpaX::ESLIF::ECMA404::encode | json, serialize | 43000 | 23 | 1362.30% | 1242.24% | 1.1e-07 | 20 |
| JSON::PP::encode_json | json, serialize | 44000 | 23 | 1402.10% | 1206.67% | 2.7e-08 | 20 |
| JSON::Tiny::encode_json | json, serialize | 53000 | 19 | 1677.78% | 1004.05% | 5.3e-08 | 20 |
| YAML::Syck::Dump | yaml, serialize | 66000 | 15 | 2144.51% | 774.47% | 2.7e-08 | 20 |
| YAML::XS::Dump | yaml, serialize | 73000 | 14 | 2384.77% | 689.92% | 2.7e-08 | 20 |
| Storable::freeze | binary, storable, serialize, cant_handle_scalar | 230000 | 4.3 | 7698.65% | 151.68% | 6.7e-09 | 20 |
| Data::MessagePack::pack | binary, msgpack, serialize | 485000 | 2.06 | 16291.30% | 19.74% | 7.6e-10 | 24 |
| Cpanel::JSON::XS::encode_json | json, serialize | 510000 | 1.9 | 17296.72% | 12.82% | 2.5e-09 | 20 |
| JSON::XS::encode_json | json, serialize | 500000 | 2 | 17759.94% | 9.90% | 2.2e-08 | 20 |
| Sereal::encode_sereal | binary, sereal, serialize | 544000 | 1.84 | 18316.30% | 6.58% | 7e-10 | 28 |
| JSON::MaybeXS::encode_json | json, serialize | 577600 | 1.731 | 19437.27% | 0.46% | 2.8e-11 | 20 |
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
Rate Y:D yaml, serialize YO:D yaml, serialize MEE:e json, serialize JP:e_j json, serialize JT:e_j json, serialize YS:D yaml, serialize YX:D yaml, serialize S:f binary, storable, seria...
Y:D yaml, serialize 3000/s -- -2% -93% -93% -94% -95% -95% ...
YO:D yaml, serialize 3000/s 3% -- -93% -93% -94% -95% -95% ...
MEE:e json, serialize 43000/s 1378% 1334% -- 0% -17% -34% -39% ...
JP:e_j json, serialize 44000/s 1378% 1334% 0% -- -17% -34% -39% ...
JT:e_j json, serialize 53000/s 1689% 1636% 21% 21% -- -21% -26% ...
YS:D yaml, serialize 66000/s 2166% 2100% 53% 53% 26% -- -6% ...
YX:D yaml, serialize 73000/s 2328% 2257% 64% 64% 35% 7% -- ...
S:f binary, storable, serialize, cant_handle_scalar 230000/s 7806% 7574% 434% 434% 341% 248% 225% ...
DM:p binary, msgpack, serialize 485000/s 16404% 15919% 1016% 1016% 822% 628% 579% ...
JX:e_j json, serialize 500000/s 16900% 16400% 1050% 1050% 850% 650% 600% ...
JC:c_j json, serialize 600000/s 16900% 16400% 1050% 1050% 850% 650% 600% ...
CJX:e_j json, serialize 510000/s 17794% 17268% 1110% 1110% 900% 689% 636% ...
S:e_s binary, sereal, serialize 544000/s 18378% 17834% 1150% 1150% 932% 715% 660% ...
JM:e_j json, serialize 577600/s 19541% 18964% 1228% 1228% 997% 766% 708% ...
Legends:
CJX:e_j json, serialize: p_tags=json, serialize participant=Cpanel::JSON::XS::encode_json
DM:p binary, msgpack, serialize: p_tags=binary, msgpack, serialize participant=Data::MessagePack::pack
JC:c_j json, serialize: p_tags=json, serialize participant=JSON::Create::create_json
JM:e_j json, serialize: p_tags=json, serialize participant=JSON::MaybeXS::encode_json
JP:e_j json, serialize: p_tags=json, serialize participant=JSON::PP::encode_json
JT:e_j json, serialize: p_tags=json, serialize participant=JSON::Tiny::encode_json
JX:e_j json, serialize: p_tags=json, serialize participant=JSON::XS::encode_json
MEE:e json, serialize: p_tags=json, serialize participant=MarpaX::ESLIF::ECMA404::encode
S:e_s binary, sereal, serialize: p_tags=binary, sereal, serialize participant=Sereal::encode_sereal
S:f binary, storable, serialize, cant_handle_scalar: p_tags=binary, storable, serialize, cant_handle_scalar participant=Storable::freeze
Y:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Dump
YO:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Old::Dump
YS:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Syck::Dump
YX:D yaml, serialize: p_tags=yaml, serialize participant=YAML::XS::Dump
#table7#
{dataset=>"hash_int_100"}
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | p_tags | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| YAML::Dump | yaml, serialize | 350 | 2.8 | 0.00% | 17095.20% | 1.1e-05 | 20 |
| YAML::Old::Dump | yaml, serialize | 360 | 2.8 | 0.05% | 17086.54% | 1.8e-05 | 22 |
| JSON::PP::encode_json | json, serialize | 4800 | 0.21 | 1262.46% | 1162.07% | 4.8e-07 | 20 |
| JSON::Tiny::encode_json | json, serialize | 5800 | 0.17 | 1523.54% | 959.12% | 4.3e-07 | 25 |
| MarpaX::ESLIF::ECMA404::encode | json, serialize | 6900 | 0.14 | 1846.36% | 783.45% | 9.1e-07 | 20 |
| YAML::Syck::Dump | yaml, serialize | 7200 | 0.14 | 1922.10% | 750.36% | 4e-07 | 23 |
| YAML::XS::Dump | yaml, serialize | 7880 | 0.127 | 2120.06% | 674.54% | 5.3e-08 | 20 |
| Sereal::encode_sereal | binary, sereal, serialize | 47000 | 0.021 | 13061.48% | 30.65% | 6e-08 | 20 |
| Data::MessagePack::pack | binary, msgpack, serialize | 50000 | 0.02 | 13916.13% | 22.68% | 2.7e-08 | 20 |
| Storable::freeze | binary, storable, serialize, cant_handle_scalar | 51000 | 0.019 | 14358.29% | 18.93% | 2.6e-08 | 21 |
| JSON::MaybeXS::encode_json | json, serialize | 50000 | 0.02 | 15151.79% | 12.74% | 4.5e-07 | 20 |
| JSON::XS::encode_json | json, serialize | 50000 | 0.02 | 15369.22% | 11.16% | 2.3e-07 | 20 |
| Cpanel::JSON::XS::encode_json | json, serialize | 57000 | 0.018 | 15819.70% | 8.01% | 1.1e-07 | 20 |
| JSON::Create::create_json | json, serialize | 61000 | 0.016 | 17095.20% | 0.00% | 6e-08 | 20 |
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
JC:c_j json, serialize 61000/s 17399% 17399% 1212% 962% 775% 775% 693% ...
Legends:
CJX:e_j json, serialize: p_tags=json, serialize participant=Cpanel::JSON::XS::encode_json
DM:p binary, msgpack, serialize: p_tags=binary, msgpack, serialize participant=Data::MessagePack::pack
JC:c_j json, serialize: p_tags=json, serialize participant=JSON::Create::create_json
JM:e_j json, serialize: p_tags=json, serialize participant=JSON::MaybeXS::encode_json
JP:e_j json, serialize: p_tags=json, serialize participant=JSON::PP::encode_json
JT:e_j json, serialize: p_tags=json, serialize participant=JSON::Tiny::encode_json
JX:e_j json, serialize: p_tags=json, serialize participant=JSON::XS::encode_json
MEE:e json, serialize: p_tags=json, serialize participant=MarpaX::ESLIF::ECMA404::encode
S:e_s binary, sereal, serialize: p_tags=binary, sereal, serialize participant=Sereal::encode_sereal
S:f binary, storable, serialize, cant_handle_scalar: p_tags=binary, storable, serialize, cant_handle_scalar participant=Storable::freeze
Y:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Dump
YO:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Old::Dump
YS:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Syck::Dump
YX:D yaml, serialize: p_tags=yaml, serialize participant=YAML::XS::Dump
#table8#
{dataset=>"hash_int_1000"}
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+-----------+---------+
| participant | p_tags | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+-----------+---------+
| YAML::Old::Dump | yaml, serialize | 30 | 30 | 0.00% | 13875.67% | 0.00053 | 20 |
| YAML::Dump | yaml, serialize | 35 | 28 | 9.29% | 12687.44% | 7.2e-05 | 20 |
| JSON::PP::encode_json | json, serialize | 420 | 2.4 | 1197.65% | 977.00% | 2.2e-05 | 20 |
| JSON::Tiny::encode_json | json, serialize | 560 | 1.8 | 1636.48% | 704.83% | 6.2e-06 | 20 |
| MarpaX::ESLIF::ECMA404::encode | json, serialize | 600 | 2 | 1824.54% | 626.18% | 3.3e-05 | 21 |
| YAML::Syck::Dump | yaml, serialize | 730 | 1.4 | 2164.90% | 517.06% | 2.7e-06 | 20 |
| YAML::XS::Dump | yaml, serialize | 750 | 1.3 | 2215.93% | 503.46% | 5.6e-06 | 20 |
| Sereal::encode_sereal | binary, sereal, serialize | 3490 | 0.287 | 10661.97% | 29.86% | 2.7e-07 | 20 |
| JSON::XS::encode_json | json, serialize | 4000 | 0.3 | 11240.75% | 23.23% | 5.3e-06 | 21 |
| JSON::MaybeXS::encode_json | json, serialize | 3900 | 0.26 | 11889.01% | 16.57% | 1.5e-06 | 20 |
| Data::MessagePack::pack | binary, msgpack, serialize | 4100 | 0.24 | 12630.07% | 9.78% | 4.8e-07 | 20 |
| Storable::freeze | binary, storable, serialize, cant_handle_scalar | 4300 | 0.23 | 13246.87% | 4.71% | 4.3e-07 | 20 |
| Cpanel::JSON::XS::encode_json | json, serialize | 4300 | 0.23 | 13305.65% | 4.25% | 6.9e-07 | 20 |
| JSON::Create::create_json | json, serialize | 4500 | 0.22 | 13875.67% | 0.00% | 2.7e-07 | 20 |
+--------------------------------+-------------------------------------------------+-----------+-----------+-----------------------+-----------------------+-----------+---------+
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
JC:c_j json, serialize 4500/s 13536% 12627% 990% 809% 718% 536% 490% 36% ...
Legends:
CJX:e_j json, serialize: p_tags=json, serialize participant=Cpanel::JSON::XS::encode_json
DM:p binary, msgpack, serialize: p_tags=binary, msgpack, serialize participant=Data::MessagePack::pack
JC:c_j json, serialize: p_tags=json, serialize participant=JSON::Create::create_json
JM:e_j json, serialize: p_tags=json, serialize participant=JSON::MaybeXS::encode_json
JP:e_j json, serialize: p_tags=json, serialize participant=JSON::PP::encode_json
JT:e_j json, serialize: p_tags=json, serialize participant=JSON::Tiny::encode_json
JX:e_j json, serialize: p_tags=json, serialize participant=JSON::XS::encode_json
MEE:e json, serialize: p_tags=json, serialize participant=MarpaX::ESLIF::ECMA404::encode
S:e_s binary, sereal, serialize: p_tags=binary, sereal, serialize participant=Sereal::encode_sereal
S:f binary, storable, serialize, cant_handle_scalar: p_tags=binary, storable, serialize, cant_handle_scalar participant=Storable::freeze
Y:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Dump
YO:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Old::Dump
YS:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Syck::Dump
YX:D yaml, serialize: p_tags=yaml, serialize participant=YAML::XS::Dump
#table9#
{dataset=>"num"}
+--------------------------------+----------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | p_tags | rate (/s) | time (μs) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+--------------------------------+----------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| YAML::Old::Dump | yaml, serialize | 20000 | 51 | 0.00% | 24465.64% | 1.7e-07 | 20 |
| YAML::Dump | yaml, serialize | 20000 | 50 | 1.91% | 24006.26% | 2e-07 | 20 |
| MarpaX::ESLIF::ECMA404::encode | json, serialize | 100000 | 10 | 404.45% | 4769.83% | 1.9e-07 | 21 |
| YAML::Syck::Dump | yaml, serialize | 200000 | 5 | 894.97% | 2369.00% | 7e-08 | 20 |
| JSON::Tiny::encode_json | json, serialize | 240000 | 4.2 | 1124.80% | 1905.68% | 6.7e-09 | 20 |
| JSON::PP::encode_json | json, serialize | 270000 | 3.7 | 1277.26% | 1683.67% | 6.7e-09 | 20 |
| YAML::XS::Dump | yaml, serialize | 339000 | 2.95 | 1621.21% | 1327.23% | 8.3e-10 | 20 |
| Cpanel::JSON::XS::encode_json | json, serialize | 1800000 | 0.57 | 8845.91% | 174.60% | 1.4e-09 | 29 |
| JSON::MaybeXS::encode_json | json, serialize | 1840000 | 0.543 | 9267.82% | 162.23% | 2.1e-10 | 20 |
| JSON::XS::encode_json | json, serialize | 1967000 | 0.5084 | 9900.67% | 145.64% | 2.2e-11 | 20 |
| JSON::Create::create_json | json, serialize | 2200000 | 0.46 | 11049.43% | 120.33% | 4.4e-09 | 20 |
| Sereal::encode_sereal | binary, sereal, serialize | 3400000 | 0.294 | 17168.15% | 42.26% | 1.1e-10 | 20 |
| Data::MessagePack::pack | binary, msgpack, serialize | 4830000 | 0.207 | 24465.64% | 0.00% | 1e-10 | 21 |
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
DM:p binary, msgpack, serialize 4830000/s 24537% 24054% 4730% 2315% 1928% 1687% 1325% 175% 162...
Legends:
CJX:e_j json, serialize: p_tags=json, serialize participant=Cpanel::JSON::XS::encode_json
DM:p binary, msgpack, serialize: p_tags=binary, msgpack, serialize participant=Data::MessagePack::pack
JC:c_j json, serialize: p_tags=json, serialize participant=JSON::Create::create_json
JM:e_j json, serialize: p_tags=json, serialize participant=JSON::MaybeXS::encode_json
JP:e_j json, serialize: p_tags=json, serialize participant=JSON::PP::encode_json
JT:e_j json, serialize: p_tags=json, serialize participant=JSON::Tiny::encode_json
JX:e_j json, serialize: p_tags=json, serialize participant=JSON::XS::encode_json
MEE:e json, serialize: p_tags=json, serialize participant=MarpaX::ESLIF::ECMA404::encode
S:e_s binary, sereal, serialize: p_tags=binary, sereal, serialize participant=Sereal::encode_sereal
Y:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Dump
YO:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Old::Dump
YS:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Syck::Dump
YX:D yaml, serialize: p_tags=yaml, serialize participant=YAML::XS::Dump
#table10#
{dataset=>"str1k"}
+--------------------------------+--------------------+----------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | ds_tags | p_tags | rate (/s) | time (μs) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+--------------------------------+--------------------+----------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| MarpaX::ESLIF::ECMA404::encode | serialize, unicode | json, serialize | 5000 | 200 | 0.00% | 74352.92% | 1.6e-06 | 21 |
| MarpaX::ESLIF::ECMA404::encode | serialize | json, serialize | 9300 | 110 | 86.76% | 39765.85% | 9.1e-07 | 20 |
| YAML::Old::Dump | serialize, unicode | yaml, serialize | 10000 | 97 | 107.20% | 35832.18% | 3.5e-07 | 20 |
| YAML::Dump | serialize, unicode | yaml, serialize | 10000 | 96 | 107.54% | 35774.49% | 2.4e-07 | 20 |
| YAML::Dump | serialize | yaml, serialize | 17000 | 58 | 242.47% | 21640.13% | 1.3e-07 | 22 |
| YAML::Old::Dump | serialize | yaml, serialize | 18000 | 57 | 254.11% | 20925.62% | 9.9e-08 | 23 |
| JSON::PP::encode_json | serialize, unicode | json, serialize | 25200 | 39.6 | 405.51% | 14628.21% | 1.2e-08 | 24 |
| JSON::Tiny::encode_json | serialize, unicode | json, serialize | 28000 | 36 | 461.07% | 13169.74% | 6.7e-08 | 20 |
| YAML::XS::Dump | serialize, unicode | yaml, serialize | 45000 | 22 | 793.86% | 8229.34% | 2.7e-08 | 20 |
| JSON::MaybeXS::encode_json | serialize, unicode | json, serialize | 49000 | 21 | 872.02% | 7559.58% | 1.1e-07 | 20 |
| Cpanel::JSON::XS::encode_json | serialize, unicode | json, serialize | 52000 | 19 | 950.18% | 6989.53% | 3.2e-08 | 22 |
| JSON::XS::encode_json | serialize, unicode | json, serialize | 57000 | 18 | 1043.39% | 6411.59% | 5.3e-08 | 20 |
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
YX:D yaml, serialize serialize 75000/s 1438% 746% 646% 638% 346%...
JP:e_j json, serialize serialize 140000/s 2639% 1406% 1228% 1215% 694%...
YS:D yaml, serialize serialize 100000/s 2757% 1471% 1285% 1271% 728%...
JT:e_j json, serialize serialize 170000/s 3348% 1796% 1572% 1555% 900%...
JC:c_j json, serialize serialize, unicode 180000/s 3603% 1937% 1696% 1677% 974%...
JC:c_j json, serialize serialize 300000/s 6566% 3566% 3133% 3100% 1833%...
CJX:e_j json, serialize serialize 400000/s 6566% 3566% 3133% 3100% 1833%...
JM:e_j json, serialize serialize 450000/s 8990% 4899% 4309% 4263% 2536%...
JX:e_j json, serialize serialize 521000/s 10316% 5629% 4952% 4900% 2920%...
S:e_s binary, sereal, serialize serialize, unicode 2580000/s 51446% 28250% 24900% 24642% 14848%...
S:e_s binary, sereal, serialize serialize 2790000/s 55610% 30540% 26919% 26640% 16055%...
DM:p binary, msgpack, serialize serialize, unicode 3400000/s 66566% 36566% 32233% 31900% 19233%...
DM:p binary, msgpack, serialize serialize 3720000/s 74249% 40792% 35959% 35587% 21461%...
Legends:
CJX:e_j json, serialize serialize: ds_tags=serialize p_tags=json, serialize participant=Cpanel::JSON::XS::encode_json
CJX:e_j json, serialize serialize, unicode: ds_tags=serialize, unicode p_tags=json, serialize participant=Cpanel::JSON::XS::encode_json
DM:p binary, msgpack, serialize serialize: ds_tags=serialize p_tags=binary, msgpack, serialize participant=Data::MessagePack::pack
DM:p binary, msgpack, serialize serialize, unicode: ds_tags=serialize, unicode p_tags=binary, msgpack, serialize participant=Data::MessagePack::pack
JC:c_j json, serialize serialize: ds_tags=serialize p_tags=json, serialize participant=JSON::Create::create_json
JC:c_j json, serialize serialize, unicode: ds_tags=serialize, unicode p_tags=json, serialize participant=JSON::Create::create_json
JM:e_j json, serialize serialize: ds_tags=serialize p_tags=json, serialize participant=JSON::MaybeXS::encode_json
JM:e_j json, serialize serialize, unicode: ds_tags=serialize, unicode p_tags=json, serialize participant=JSON::MaybeXS::encode_json
JP:e_j json, serialize serialize: ds_tags=serialize p_tags=json, serialize participant=JSON::PP::encode_json
JP:e_j json, serialize serialize, unicode: ds_tags=serialize, unicode p_tags=json, serialize participant=JSON::PP::encode_json
JT:e_j json, serialize serialize: ds_tags=serialize p_tags=json, serialize participant=JSON::Tiny::encode_json
JT:e_j json, serialize serialize, unicode: ds_tags=serialize, unicode p_tags=json, serialize participant=JSON::Tiny::encode_json
JX:e_j json, serialize serialize: ds_tags=serialize p_tags=json, serialize participant=JSON::XS::encode_json
JX:e_j json, serialize serialize, unicode: ds_tags=serialize, unicode p_tags=json, serialize participant=JSON::XS::encode_json
MEE:e json, serialize serialize: ds_tags=serialize p_tags=json, serialize participant=MarpaX::ESLIF::ECMA404::encode
MEE:e json, serialize serialize, unicode: ds_tags=serialize, unicode p_tags=json, serialize participant=MarpaX::ESLIF::ECMA404::encode
S:e_s binary, sereal, serialize serialize: ds_tags=serialize p_tags=binary, sereal, serialize participant=Sereal::encode_sereal
S:e_s binary, sereal, serialize serialize, unicode: ds_tags=serialize, unicode p_tags=binary, sereal, serialize participant=Sereal::encode_sereal
Y:D yaml, serialize serialize: ds_tags=serialize p_tags=yaml, serialize participant=YAML::Dump
Y:D yaml, serialize serialize, unicode: ds_tags=serialize, unicode p_tags=yaml, serialize participant=YAML::Dump
YO:D yaml, serialize serialize: ds_tags=serialize p_tags=yaml, serialize participant=YAML::Old::Dump
YO:D yaml, serialize serialize, unicode: ds_tags=serialize, unicode p_tags=yaml, serialize participant=YAML::Old::Dump
YS:D yaml, serialize serialize: ds_tags=serialize p_tags=yaml, serialize participant=YAML::Syck::Dump
YS:D yaml, serialize serialize, unicode: ds_tags=serialize, unicode p_tags=yaml, serialize participant=YAML::Syck::Dump
YX:D yaml, serialize serialize: ds_tags=serialize p_tags=yaml, serialize participant=YAML::XS::Dump
YX:D yaml, serialize serialize, unicode: ds_tags=serialize, unicode p_tags=yaml, serialize participant=YAML::XS::Dump
#table11#
{dataset=>"undef"}
+--------------------------------+----------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | p_tags | rate (/s) | time (μs) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+--------------------------------+----------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| YAML::Dump | yaml, serialize | 23000 | 44 | 0.00% | 27821.63% | 1.7e-07 | 20 |
| YAML::Old::Dump | yaml, serialize | 23000 | 44 | 0.80% | 27600.29% | 9.5e-08 | 25 |
| MarpaX::ESLIF::ECMA404::encode | json, serialize | 120000 | 8.2 | 438.15% | 5088.46% | 1.3e-08 | 20 |
| YAML::Syck::Dump | yaml, serialize | 240000 | 4.1 | 963.06% | 2526.53% | 2.2e-08 | 20 |
| JSON::Tiny::encode_json | json, serialize | 450000 | 2.22 | 1880.06% | 1310.14% | 7.8e-10 | 23 |
| JSON::PP::encode_json | json, serialize | 549000 | 1.82 | 2314.83% | 1056.26% | 8.3e-10 | 20 |
| YAML::XS::Dump | yaml, serialize | 598000 | 1.67 | 2529.80% | 961.74% | 8.3e-10 | 20 |
| Sereal::encode_sereal | binary, sereal, serialize | 3770000 | 0.266 | 16468.29% | 68.52% | 1e-10 | 23 |
| Data::MessagePack::pack | binary, msgpack, serialize | 5600000 | 0.18 | 24407.23% | 13.93% | 4.2e-10 | 20 |
| JSON::MaybeXS::encode_json | json, serialize | 5800000 | 0.17 | 25256.72% | 10.12% | 4.1e-10 | 21 |
| Cpanel::JSON::XS::encode_json | json, serialize | 5900000 | 0.17 | 26036.06% | 6.83% | 3.1e-10 | 20 |
| JSON::XS::encode_json | json, serialize | 6000000 | 0.17 | 26232.04% | 6.04% | 4.2e-10 | 20 |
| JSON::Create::create_json | json, serialize | 6000000 | 0.2 | 27821.63% | 0.00% | 5.5e-09 | 20 |
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
JX:e_j json, serialize 6000000/s 25782% 25782% 4723% 2311% 1205% 970% 882% 56% ...
Legends:
CJX:e_j json, serialize: p_tags=json, serialize participant=Cpanel::JSON::XS::encode_json
DM:p binary, msgpack, serialize: p_tags=binary, msgpack, serialize participant=Data::MessagePack::pack
JC:c_j json, serialize: p_tags=json, serialize participant=JSON::Create::create_json
JM:e_j json, serialize: p_tags=json, serialize participant=JSON::MaybeXS::encode_json
JP:e_j json, serialize: p_tags=json, serialize participant=JSON::PP::encode_json
JT:e_j json, serialize: p_tags=json, serialize participant=JSON::Tiny::encode_json
JX:e_j json, serialize: p_tags=json, serialize participant=JSON::XS::encode_json
MEE:e json, serialize: p_tags=json, serialize participant=MarpaX::ESLIF::ECMA404::encode
S:e_s binary, sereal, serialize: p_tags=binary, sereal, serialize participant=Sereal::encode_sereal
Y:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Dump
YO:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Old::Dump
YS:D yaml, serialize: p_tags=yaml, serialize participant=YAML::Syck::Dump
YX:D yaml, serialize: p_tags=yaml, serialize participant=YAML::XS::Dump
Benchmark with C<< bencher -m Serializers --include-participant-tags deserialize >>:
#table12#
{dataset=>"json:array_int_10"}
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | p_tags | rate (/s) | time (μs) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| JSON::Decode::Marpa::from_json | json, deserialize, cant_handle_scalar | 1000 | 900 | 0.00% | 157174.18% | 1.3e-05 | 20 |
| Pegex::JSON | json, deserialize | 1800 | 550 | 64.14% | 95717.41% | 1.1e-06 | 20 |
| JSON::Parser::Regexp | json, deserialize | 6400 | 160 | 472.94% | 27350.49% | 2.1e-07 | 20 |
| MarpaX::ESLIF::ECMA404::decode | json, deserialize | 12000 | 85 | 955.15% | 14805.37% | 2.1e-07 | 20 |
| JSON::PP::decode_json | json, deserialize | 34000 | 29 | 2984.51% | 4998.84% | 3.9e-08 | 21 |
| JSON::Decode::Regexp::from_json | json, deserialize | 44100 | 22.7 | 3862.21% | 3869.35% | 2e-08 | 20 |
| JSON::Tiny::decode_json | json, deserialize | 52700 | 19 | 4630.37% | 3224.77% | 6.7e-09 | 20 |
| JSON::MaybeXS::decode_json | json, deserialize | 1560000 | 0.641 | 139987.39% | 12.27% | 6.3e-10 | 20 |
| Cpanel::JSON::XS::decode_json | json, deserialize | 1590000 | 0.63 | 142281.47% | 10.46% | 2.1e-10 | 20 |
| JSON::XS::decode_json | json, deserialize | 1600000 | 0.62 | 144694.33% | 8.62% | 8.3e-10 | 20 |
| JSON::Parse::parse_json | json, deserialize | 1800000 | 0.57 | 157174.18% | 0.00% | 6.2e-10 | 20 |
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
Formatted as L<Benchmark.pm|Benchmark> result:
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
Legends:
CJX:d_j json, deserialize: p_tags=json, deserialize participant=Cpanel::JSON::XS::decode_json
JDM:f_j json, deserialize, cant_handle_scalar: p_tags=json, deserialize, cant_handle_scalar participant=JSON::Decode::Marpa::from_json
JDR:f_j json, deserialize: p_tags=json, deserialize participant=JSON::Decode::Regexp::from_json
JM:d_j json, deserialize: p_tags=json, deserialize participant=JSON::MaybeXS::decode_json
JP:R json, deserialize: p_tags=json, deserialize participant=JSON::Parser::Regexp
JP:d_j json, deserialize: p_tags=json, deserialize participant=JSON::PP::decode_json
JP:p_j json, deserialize: p_tags=json, deserialize participant=JSON::Parse::parse_json
JT:d_j json, deserialize: p_tags=json, deserialize participant=JSON::Tiny::decode_json
JX:d_j json, deserialize: p_tags=json, deserialize participant=JSON::XS::decode_json
MEE:d json, deserialize: p_tags=json, deserialize participant=MarpaX::ESLIF::ECMA404::decode
P:J json, deserialize: p_tags=json, deserialize participant=Pegex::JSON
#table13#
{dataset=>"json:array_int_100"}
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | p_tags | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| Pegex::JSON | json, deserialize | 410 | 2.4 | 0.00% | 56872.59% | 1.2e-05 | 20 |
| JSON::Decode::Marpa::from_json | json, deserialize, cant_handle_scalar | 420 | 2.4 | 1.45% | 56058.30% | 7.5e-06 | 22 |
| JSON::Parser::Regexp | json, deserialize | 510 | 2 | 23.29% | 46110.67% | 3.4e-06 | 20 |
| MarpaX::ESLIF::ECMA404::decode | json, deserialize | 1700 | 0.59 | 310.19% | 13789.24% | 4.1e-06 | 21 |
| JSON::PP::decode_json | json, deserialize | 3400 | 0.29 | 729.87% | 6765.24% | 6.4e-07 | 20 |
| JSON::Decode::Regexp::from_json | json, deserialize | 4900 | 0.204 | 1083.18% | 4715.19% | 1.5e-07 | 22 |
| JSON::Tiny::decode_json | json, deserialize | 7200 | 0.14 | 1642.69% | 3169.24% | 2e-07 | 22 |
| Cpanel::JSON::XS::decode_json | json, deserialize | 210000 | 0.0047 | 51043.01% | 11.40% | 2.8e-08 | 21 |
| JSON::Parse::parse_json | json, deserialize | 230000 | 0.0044 | 54531.53% | 4.29% | 1.3e-08 | 20 |
| JSON::MaybeXS::decode_json | json, deserialize | 230000 | 0.0043 | 56191.85% | 1.21% | 2e-08 | 20 |
| JSON::XS::decode_json | json, deserialize | 240000 | 0.0042 | 56872.59% | 0.00% | 1.5e-08 | 20 |
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
Formatted as L<Benchmark.pm|Benchmark> result:
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
Legends:
CJX:d_j json, deserialize: p_tags=json, deserialize participant=Cpanel::JSON::XS::decode_json
JDM:f_j json, deserialize, cant_handle_scalar: p_tags=json, deserialize, cant_handle_scalar participant=JSON::Decode::Marpa::from_json
JDR:f_j json, deserialize: p_tags=json, deserialize participant=JSON::Decode::Regexp::from_json
JM:d_j json, deserialize: p_tags=json, deserialize participant=JSON::MaybeXS::decode_json
JP:R json, deserialize: p_tags=json, deserialize participant=JSON::Parser::Regexp
JP:d_j json, deserialize: p_tags=json, deserialize participant=JSON::PP::decode_json
JP:p_j json, deserialize: p_tags=json, deserialize participant=JSON::Parse::parse_json
JT:d_j json, deserialize: p_tags=json, deserialize participant=JSON::Tiny::decode_json
JX:d_j json, deserialize: p_tags=json, deserialize participant=JSON::XS::decode_json
MEE:d json, deserialize: p_tags=json, deserialize participant=MarpaX::ESLIF::ECMA404::decode
P:J json, deserialize: p_tags=json, deserialize participant=Pegex::JSON
#table14#
{dataset=>"json:array_int_1000"}
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | p_tags | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| JSON::Parser::Regexp | json, deserialize | 37.6 | 26.6 | 0.00% | 84221.25% | 2.1e-05 | 20 |
| Pegex::JSON | json, deserialize | 46 | 22 | 21.72% | 69172.09% | 4.6e-05 | 20 |
| JSON::Decode::Marpa::from_json | json, deserialize, cant_handle_scalar | 49 | 20 | 30.91% | 64310.72% | 5.2e-05 | 20 |
| MarpaX::ESLIF::ECMA404::decode | json, deserialize | 140 | 7.2 | 267.33% | 22855.10% | 1.8e-05 | 20 |
| JSON::PP::decode_json | json, deserialize | 310 | 3.2 | 719.14% | 10193.82% | 4.2e-06 | 20 |
| JSON::Decode::Regexp::from_json | json, deserialize | 380 | 2.6 | 917.14% | 8190.03% | 1.1e-05 | 20 |
| JSON::Tiny::decode_json | json, deserialize | 760 | 1.3 | 1923.12% | 4067.88% | 2e-06 | 20 |
| JSON::Parse::parse_json | json, deserialize | 29000 | 0.035 | 76749.22% | 9.72% | 5.2e-08 | 21 |
| JSON::XS::decode_json | json, deserialize | 31000 | 0.033 | 81340.82% | 3.54% | 5.3e-08 | 20 |
| Cpanel::JSON::XS::decode_json | json, deserialize | 31000 | 0.032 | 82617.13% | 1.94% | 5.3e-08 | 20 |
| JSON::MaybeXS::decode_json | json, deserialize | 32000 | 0.032 | 84221.25% | 0.00% | 5.3e-08 | 20 |
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
Formatted as L<Benchmark.pm|Benchmark> result:
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
Legends:
CJX:d_j json, deserialize: p_tags=json, deserialize participant=Cpanel::JSON::XS::decode_json
JDM:f_j json, deserialize, cant_handle_scalar: p_tags=json, deserialize, cant_handle_scalar participant=JSON::Decode::Marpa::from_json
JDR:f_j json, deserialize: p_tags=json, deserialize participant=JSON::Decode::Regexp::from_json
JM:d_j json, deserialize: p_tags=json, deserialize participant=JSON::MaybeXS::decode_json
JP:R json, deserialize: p_tags=json, deserialize participant=JSON::Parser::Regexp
JP:d_j json, deserialize: p_tags=json, deserialize participant=JSON::PP::decode_json
JP:p_j json, deserialize: p_tags=json, deserialize participant=JSON::Parse::parse_json
JT:d_j json, deserialize: p_tags=json, deserialize participant=JSON::Tiny::decode_json
JX:d_j json, deserialize: p_tags=json, deserialize participant=JSON::XS::decode_json
MEE:d json, deserialize: p_tags=json, deserialize participant=MarpaX::ESLIF::ECMA404::decode
P:J json, deserialize: p_tags=json, deserialize participant=Pegex::JSON
#table15#
{dataset=>"json:array_str1k_10"}
+---------------------------------+---------------------------------------+-----------+------------+-----------------------+-----------------------+-----------+---------+
| participant | p_tags | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+---------------------------------+---------------------------------------+-----------+------------+-----------------------+-----------------------+-----------+---------+
| JSON::Parser::Regexp | json, deserialize | 14 | 69 | 0.00% | 455081.62% | 0.00012 | 20 |
| JSON::Decode::Marpa::from_json | json, deserialize, cant_handle_scalar | 110 | 8.9 | 684.39% | 57930.25% | 3.6e-05 | 20 |
| JSON::PP::decode_json | json, deserialize | 220 | 4.6 | 1401.52% | 30214.66% | 1.3e-05 | 20 |
| Pegex::JSON | json, deserialize | 930 | 1.1 | 6357.21% | 6949.20% | 3.4e-06 | 22 |
| JSON::Tiny::decode_json | json, deserialize | 2090 | 0.479 | 14414.32% | 3036.09% | 2.1e-07 | 20 |
| MarpaX::ESLIF::ECMA404::decode | json, deserialize | 4000 | 0.25 | 27485.82% | 1550.06% | 6.4e-07 | 20 |
| JSON::Decode::Regexp::from_json | json, deserialize | 26000 | 0.038 | 181187.15% | 151.08% | 5.3e-08 | 20 |
| JSON::Parse::parse_json | json, deserialize | 34730.5 | 0.0287931 | 241271.38% | 88.58% | 2.4e-11 | 20 |
| JSON::MaybeXS::decode_json | json, deserialize | 53843 | 0.018573 | 374097.91% | 21.64% | 2.5e-11 | 20 |
| Cpanel::JSON::XS::decode_json | json, deserialize | 53979 | 0.018526 | 375042.07% | 21.34% | 4.3e-11 | 20 |
| JSON::XS::decode_json | json, deserialize | 65500 | 0.0153 | 455081.62% | 0.00% | 5e-09 | 35 |
+---------------------------------+---------------------------------------+-----------+------------+-----------------------+-----------------------+-----------+---------+
Formatted as L<Benchmark.pm|Benchmark> result:
Rate JP:R json, deserialize JDM:f_j json, deserialize, cant_handle_scalar JP:d_j json, deserialize P:J json, deserialize JT:d_j json, deserialize MEE:d json, deserialize JDR:f_j json, deser...
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
Legends:
CJX:d_j json, deserialize: p_tags=json, deserialize participant=Cpanel::JSON::XS::decode_json
JDM:f_j json, deserialize, cant_handle_scalar: p_tags=json, deserialize, cant_handle_scalar participant=JSON::Decode::Marpa::from_json
JDR:f_j json, deserialize: p_tags=json, deserialize participant=JSON::Decode::Regexp::from_json
JM:d_j json, deserialize: p_tags=json, deserialize participant=JSON::MaybeXS::decode_json
JP:R json, deserialize: p_tags=json, deserialize participant=JSON::Parser::Regexp
JP:d_j json, deserialize: p_tags=json, deserialize participant=JSON::PP::decode_json
JP:p_j json, deserialize: p_tags=json, deserialize participant=JSON::Parse::parse_json
JT:d_j json, deserialize: p_tags=json, deserialize participant=JSON::Tiny::decode_json
JX:d_j json, deserialize: p_tags=json, deserialize participant=JSON::XS::decode_json
MEE:d json, deserialize: p_tags=json, deserialize participant=MarpaX::ESLIF::ECMA404::decode
P:J json, deserialize: p_tags=json, deserialize participant=Pegex::JSON
#table16#
{dataset=>"json:hash_int_10"}
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | p_tags | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| JSON::Parser::Regexp | json, deserialize | 440 | 2.3 | 0.00% | 221113.17% | 2.2e-05 | 20 |
| JSON::Decode::Marpa::from_json | json, deserialize, cant_handle_scalar | 900 | 1 | 107.55% | 106483.02% | 2.1e-05 | 20 |
| Pegex::JSON | json, deserialize | 1400 | 0.73 | 210.35% | 71178.04% | 3.3e-06 | 20 |
| MarpaX::ESLIF::ECMA404::decode | json, deserialize | 5000 | 0.2 | 1122.42% | 17996.26% | 2.2e-06 | 20 |
| JSON::PP::decode_json | json, deserialize | 7800 | 0.13 | 1666.87% | 12420.08% | 6.4e-07 | 20 |
| JSON::Decode::Regexp::from_json | json, deserialize | 21000 | 0.049 | 4571.43% | 4635.45% | 5.3e-08 | 20 |
| JSON::Tiny::decode_json | json, deserialize | 27000 | 0.037 | 6105.88% | 3464.58% | 5.3e-08 | 20 |
| Cpanel::JSON::XS::decode_json | json, deserialize | 795000 | 0.00126 | 180204.25% | 22.69% | 4.3e-10 | 20 |
| JSON::MaybeXS::decode_json | json, deserialize | 799000 | 0.00125 | 181122.71% | 22.07% | 4e-10 | 22 |
| JSON::XS::decode_json | json, deserialize | 930000 | 0.0011 | 211074.16% | 4.75% | 1.7e-09 | 20 |
| JSON::Parse::parse_json | json, deserialize | 974900 | 0.001026 | 221113.17% | 0.00% | 2.2e-11 | 20 |
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
Formatted as L<Benchmark.pm|Benchmark> result:
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
Legends:
CJX:d_j json, deserialize: p_tags=json, deserialize participant=Cpanel::JSON::XS::decode_json
JDM:f_j json, deserialize, cant_handle_scalar: p_tags=json, deserialize, cant_handle_scalar participant=JSON::Decode::Marpa::from_json
JDR:f_j json, deserialize: p_tags=json, deserialize participant=JSON::Decode::Regexp::from_json
JM:d_j json, deserialize: p_tags=json, deserialize participant=JSON::MaybeXS::decode_json
JP:R json, deserialize: p_tags=json, deserialize participant=JSON::Parser::Regexp
JP:d_j json, deserialize: p_tags=json, deserialize participant=JSON::PP::decode_json
JP:p_j json, deserialize: p_tags=json, deserialize participant=JSON::Parse::parse_json
JT:d_j json, deserialize: p_tags=json, deserialize participant=JSON::Tiny::decode_json
JX:d_j json, deserialize: p_tags=json, deserialize participant=JSON::XS::decode_json
MEE:d json, deserialize: p_tags=json, deserialize participant=MarpaX::ESLIF::ECMA404::decode
P:J json, deserialize: p_tags=json, deserialize participant=Pegex::JSON
#table17#
{dataset=>"json:hash_int_100"}
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+-----------+---------+
| participant | p_tags | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+-----------+---------+
| JSON::Parser::Regexp | json, deserialize | 35 | 28 | 0.00% | 258511.85% | 0.00011 | 21 |
| JSON::Decode::Marpa::from_json | json, deserialize, cant_handle_scalar | 200 | 5 | 499.33% | 43050.33% | 6e-05 | 20 |
| Pegex::JSON | json, deserialize | 240 | 4.2 | 570.43% | 38474.27% | 1.7e-05 | 21 |
| MarpaX::ESLIF::ECMA404::decode | json, deserialize | 700 | 2 | 1795.53% | 13543.27% | 1.7e-05 | 20 |
| JSON::PP::decode_json | json, deserialize | 1900 | 0.52 | 5377.87% | 4621.03% | 6.4e-07 | 20 |
| JSON::Decode::Regexp::from_json | json, deserialize | 2200 | 0.46 | 6053.54% | 4102.65% | 9.1e-07 | 20 |
| JSON::Tiny::decode_json | json, deserialize | 3300 | 0.31 | 9179.44% | 2686.93% | 4.3e-07 | 20 |
| Cpanel::JSON::XS::decode_json | json, deserialize | 77000 | 0.013 | 218953.33% | 18.06% | 5.2e-08 | 21 |
| JSON::MaybeXS::decode_json | json, deserialize | 77900 | 0.0128 | 221925.34% | 16.48% | 6.4e-09 | 22 |
| JSON::XS::decode_json | json, deserialize | 91000 | 0.011 | 258240.22% | 0.11% | 1.3e-08 | 20 |
| JSON::Parse::parse_json | json, deserialize | 91000 | 0.011 | 258511.85% | 0.00% | 1.3e-08 | 20 |
+---------------------------------+---------------------------------------+-----------+-----------+-----------------------+-----------------------+-----------+---------+
Formatted as L<Benchmark.pm|Benchmark> result:
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
Legends:
CJX:d_j json, deserialize: p_tags=json, deserialize participant=Cpanel::JSON::XS::decode_json
JDM:f_j json, deserialize, cant_handle_scalar: p_tags=json, deserialize, cant_handle_scalar participant=JSON::Decode::Marpa::from_json
JDR:f_j json, deserialize: p_tags=json, deserialize participant=JSON::Decode::Regexp::from_json
JM:d_j json, deserialize: p_tags=json, deserialize participant=JSON::MaybeXS::decode_json
JP:R json, deserialize: p_tags=json, deserialize participant=JSON::Parser::Regexp
JP:d_j json, deserialize: p_tags=json, deserialize participant=JSON::PP::decode_json
JP:p_j json, deserialize: p_tags=json, deserialize participant=JSON::Parse::parse_json
JT:d_j json, deserialize: p_tags=json, deserialize participant=JSON::Tiny::decode_json
JX:d_j json, deserialize: p_tags=json, deserialize participant=JSON::XS::decode_json
MEE:d json, deserialize: p_tags=json, deserialize participant=MarpaX::ESLIF::ECMA404::decode
P:J json, deserialize: p_tags=json, deserialize participant=Pegex::JSON
#table18#
{dataset=>"json:hash_int_1000"}
+---------------------------------+---------------------------------------+-----------+------------+-----------------------+-----------------------+-----------+---------+
| participant | p_tags | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+---------------------------------+---------------------------------------+-----------+------------+-----------------------+-----------------------+-----------+---------+
| JSON::Parser::Regexp | json, deserialize | 3 | 300 | 0.00% | 224003.01% | 0.0034 | 20 |
| JSON::Decode::Marpa::from_json | json, deserialize, cant_handle_scalar | 23 | 43 | 651.15% | 29734.84% | 0.00011 | 20 |
| Pegex::JSON | json, deserialize | 24 | 42 | 660.60% | 29364.14% | 9.7e-05 | 20 |
| MarpaX::ESLIF::ECMA404::decode | json, deserialize | 56 | 18 | 1724.51% | 12182.89% | 3.9e-05 | 20 |
| JSON::Decode::Regexp::from_json | json, deserialize | 140 | 7.2 | 4358.82% | 4926.07% | 6.5e-05 | 20 |
| JSON::PP::decode_json | json, deserialize | 170 | 6 | 5284.49% | 4062.01% | 4e-05 | 20 |
| JSON::Tiny::decode_json | json, deserialize | 320 | 3.1 | 10304.19% | 2053.97% | 1.1e-05 | 21 |
| JSON::Parse::parse_json | json, deserialize | 5900 | 0.17 | 189507.39% | 18.19% | 8.5e-07 | 20 |
| Cpanel::JSON::XS::decode_json | json, deserialize | 6100 | 0.16 | 197942.04% | 13.16% | 2.7e-07 | 20 |
| JSON::MaybeXS::decode_json | json, deserialize | 6100 | 0.16 | 198173.71% | 13.03% | 2.1e-07 | 20 |
| JSON::XS::decode_json | json, deserialize | 6933.95 | 0.144218 | 224003.01% | 0.00% | 2e-11 | 20 |
+---------------------------------+---------------------------------------+-----------+------------+-----------------------+-----------------------+-----------+---------+
Formatted as L<Benchmark.pm|Benchmark> result:
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
Legends:
CJX:d_j json, deserialize: p_tags=json, deserialize participant=Cpanel::JSON::XS::decode_json
JDM:f_j json, deserialize, cant_handle_scalar: p_tags=json, deserialize, cant_handle_scalar participant=JSON::Decode::Marpa::from_json
JDR:f_j json, deserialize: p_tags=json, deserialize participant=JSON::Decode::Regexp::from_json
JM:d_j json, deserialize: p_tags=json, deserialize participant=JSON::MaybeXS::decode_json
JP:R json, deserialize: p_tags=json, deserialize participant=JSON::Parser::Regexp
JP:d_j json, deserialize: p_tags=json, deserialize participant=JSON::PP::decode_json
JP:p_j json, deserialize: p_tags=json, deserialize participant=JSON::Parse::parse_json
JT:d_j json, deserialize: p_tags=json, deserialize participant=JSON::Tiny::decode_json
JX:d_j json, deserialize: p_tags=json, deserialize participant=JSON::XS::decode_json
MEE:d json, deserialize: p_tags=json, deserialize participant=MarpaX::ESLIF::ECMA404::decode
P:J json, deserialize: p_tags=json, deserialize participant=Pegex::JSON
#table19#
{dataset=>"json:null"}
+---------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | rate (/s) | time (μs) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+---------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| Pegex::JSON | 2900 | 340 | 0.00% | 432868.50% | 1.4e-06 | 20 |
| JSON::Parser::Regexp | 27000 | 37 | 813.86% | 47278.00% | 5.3e-08 | 20 |
| MarpaX::ESLIF::ECMA404::decode | 34000 | 29 | 1060.03% | 37223.78% | 1.2e-07 | 20 |
| JSON::Tiny::decode_json | 210000 | 4.8 | 7018.46% | 5982.34% | 8.3e-09 | 20 |
| JSON::PP::decode_json | 310000 | 3.2 | 10427.64% | 4012.68% | 2e-08 | 20 |
| JSON::Decode::Regexp::from_json | 450000 | 2.2 | 15130.12% | 2742.84% | 3.3e-09 | 20 |
| JSON::MaybeXS::decode_json | 7940000 | 0.126 | 269739.33% | 60.45% | 5.7e-11 | 20 |
| Cpanel::JSON::XS::decode_json | 8200000 | 0.12 | 277179.29% | 56.15% | 2.1e-10 | 20 |
| JSON::XS::decode_json | 9500000 | 0.11 | 322725.10% | 34.12% | 4.2e-10 | 20 |
| JSON::Parse::parse_json | 13000000 | 0.079 | 432868.50% | 0.00% | 1.5e-10 | 21 |
+---------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
Formatted as L<Benchmark.pm|Benchmark> result:
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
Legends:
CJX:d_j: participant=Cpanel::JSON::XS::decode_json
JDR:f_j: participant=JSON::Decode::Regexp::from_json
JM:d_j: participant=JSON::MaybeXS::decode_json
JP:R: participant=JSON::Parser::Regexp
JP:d_j: participant=JSON::PP::decode_json
JP:p_j: participant=JSON::Parse::parse_json
JT:d_j: participant=JSON::Tiny::decode_json
JX:d_j: participant=JSON::XS::decode_json
MEE:d: participant=MarpaX::ESLIF::ECMA404::decode
P:J: participant=Pegex::JSON
#table20#
{dataset=>"json:num"}
+---------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | rate (/s) | time (μs) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+---------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| Pegex::JSON | 3100 | 320 | 0.00% | 46984.68% | 6.9e-07 | 20 |
| MarpaX::ESLIF::ECMA404::decode | 14000 | 70 | 358.01% | 10180.19% | 1e-07 | 21 |
| JSON::Parser::Regexp | 22000 | 44 | 618.07% | 6457.08% | 5.3e-08 | 20 |
| JSON::Tiny::decode_json | 150000 | 6.6 | 4730.25% | 874.79% | 1.3e-08 | 20 |
| JSON::PP::decode_json | 152000 | 6.56 | 4769.40% | 866.95% | 3.3e-09 | 21 |
| JSON::Decode::Regexp::from_json | 290000 | 3.5 | 9070.48% | 413.44% | 6.7e-09 | 20 |
| JSON::MaybeXS::decode_json | 1300000 | 0.77 | 41326.32% | 13.66% | 1.7e-09 | 20 |
| Cpanel::JSON::XS::decode_json | 1310000 | 0.766 | 41606.00% | 12.90% | 4.2e-10 | 20 |
| JSON::Parse::parse_json | 1452000 | 0.6887 | 46271.06% | 1.54% | 2.4e-11 | 20 |
| JSON::XS::decode_json | 1470000 | 0.678 | 46984.68% | 0.00% | 2.1e-10 | 20 |
+---------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
Legends:
CJX:d_j: participant=Cpanel::JSON::XS::decode_json
JDR:f_j: participant=JSON::Decode::Regexp::from_json
JM:d_j: participant=JSON::MaybeXS::decode_json
JP:R: participant=JSON::Parser::Regexp
JP:d_j: participant=JSON::PP::decode_json
JP:p_j: participant=JSON::Parse::parse_json
JT:d_j: participant=JSON::Tiny::decode_json
JX:d_j: participant=JSON::XS::decode_json
MEE:d: participant=MarpaX::ESLIF::ECMA404::decode
P:J: participant=Pegex::JSON
#table21#
{dataset=>"json:str1k"}
+---------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+---------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| JSON::Parser::Regexp | 150 | 6.9 | 0.00% | 445739.55% | 1e-05 | 20 |
| JSON::PP::decode_json | 2210 | 0.452 | 1421.30% | 29206.57% | 2.1e-07 | 20 |
| Pegex::JSON | 2600 | 0.38 | 1702.24% | 24638.06% | 2e-06 | 20 |
| JSON::Tiny::decode_json | 20300 | 0.0494 | 13842.37% | 3097.73% | 1.3e-08 | 20 |
| MarpaX::ESLIF::ECMA404::decode | 21000 | 0.047 | 14598.21% | 2933.29% | 6.7e-08 | 20 |
| JSON::Decode::Regexp::from_json | 240000 | 0.0041 | 167571.35% | 165.90% | 6.7e-09 | 20 |
| JSON::Parse::parse_json | 349150 | 0.0028641 | 240240.49% | 85.50% | 2.1e-11 | 20 |
| JSON::MaybeXS::decode_json | 533900 | 0.001873 | 367430.08% | 21.31% | 2.9e-11 | 21 |
| Cpanel::JSON::XS::decode_json | 536000 | 0.00186 | 369133.12% | 20.75% | 7.3e-10 | 26 |
| JSON::XS::decode_json | 647700 | 0.001544 | 445739.55% | 0.00% | 5.1e-11 | 20 |
+---------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
Formatted as L<Benchmark.pm|Benchmark> result:
Rate JP:R JP:d_j P:J JT:d_j MEE:d JDR:f_j JP:p_j JM:d_j CJX:d_j JX:d_j
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
Legends:
CJX:d_j: participant=Cpanel::JSON::XS::decode_json
JDR:f_j: participant=JSON::Decode::Regexp::from_json
JM:d_j: participant=JSON::MaybeXS::decode_json
JP:R: participant=JSON::Parser::Regexp
JP:d_j: participant=JSON::PP::decode_json
JP:p_j: participant=JSON::Parse::parse_json
JT:d_j: participant=JSON::Tiny::decode_json
JX:d_j: participant=JSON::XS::decode_json
MEE:d: participant=MarpaX::ESLIF::ECMA404::decode
P:J: participant=Pegex::JSON
#table22#
{dataset=>"perl:hash_int_100"}
+-------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+-------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| Data::Undump::PPI | 41 | 24 | 0.00% | 205899.40% | 4.7e-05 | 20 |
| eval() | 16000 | 0.063 | 38777.09% | 429.87% | 2.1e-07 | 20 |
| Data::Undump | 84000 | 0.012 | 205899.40% | 0.00% | 1.3e-08 | 21 |
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
: dataset=sereal:hash_int_100 ds_tags=deserialize p_tags=binary, sereal, deserialize participant=Sereal::decode_sereal perl=perl
Benchmark module startup overhead (C<< bencher -m Serializers --module-startup >>):
#table24#
+------------------------+-----------+-------------------+-----------------------+-----------------------+-----------+---------+
| participant | time (ms) | mod_overhead_time | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+------------------------+-----------+-------------------+-----------------------+-----------------------+-----------+---------+
| JSON::Decode::Marpa | 110 | 94 | 0.00% | 570.99% | 0.00022 | 20 |
| MarpaX::ESLIF::ECMA404 | 92 | 76 | 14.98% | 483.55% | 0.00013 | 20 |
| Data::Undump::PPI | 66.2 | 50.2 | 59.18% | 321.52% | 4.8e-05 | 21 |
| JSON::Parser::Regexp | 51 | 35 | 107.40% | 223.52% | 0.00018 | 20 |
| JSON::Tiny | 33 | 17 | 223.58% | 107.36% | 4.4e-05 | 20 |
| JSON::PP | 29.1 | 13.1 | 262.44% | 85.13% | 2.7e-05 | 20 |
| Pegex::JSON | 28 | 12 | 270.48% | 81.12% | 5.7e-05 | 20 |
| JSON::MaybeXS | 25 | 9 | 322.92% | 58.65% | 4.8e-05 | 20 |
| YAML | 23 | 7 | 352.70% | 48.22% | 0.00013 | 20 |
| Storable | 23 | 7 | 354.09% | 47.77% | 3.9e-05 | 20 |
| Sereal | 23 | 7 | 354.51% | 47.63% | 4.3e-05 | 21 |
| YAML::Old | 23 | 7 | 365.71% | 44.08% | 5e-05 | 20 |
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
| JSON::Decode::Regexp | 19 | 3 | 466.88% | 18.37% | 3e-05 | 20 |
| JSON::Create | 19 | 3 | 467.08% | 18.32% | 3.8e-05 | 20 |
| Data::Undump | 18 | 2 | 471.53% | 17.40% | 2.6e-05 | 20 |
| Data::MessagePack | 18 | 2 | 474.41% | 16.81% | 2.1e-05 | 20 |
| perl -e1 (baseline) | 16 | 0 | 570.99% | 0.00% | 5e-05 | 20 |
+------------------------+-----------+-------------------+-----------------------+-----------------------+-----------+---------+
Formatted as L<Benchmark.pm|Benchmark> result:
Rate JSON::Decode::Marpa MarpaX::ESLIF::ECMA404 Data::Undump::PPI JSON::Parser::Regexp JSON::Tiny JSON::PP Pegex::JSON JSON::MaybeXS YAML Storable Sereal YAML::Old YAML::XS JSON::Parse JSON::XS Cpanel::JSON...
JSON::Decode::Marpa 9.1/s -- -16% -39% -53% -70% -73% -74% -77% -79% -79% -79% -79% -80% -80% -81% ...
MarpaX::ESLIF::ECMA404 10.9/s 19% -- -28% -44% -64% -68% -69% -72% -75% -75% -75% -75% -77% -77% -77% ...
Data::Undump::PPI 15.1/s 66% 38% -- -22% -50% -56% -57% -62% -65% -65% -65% -65% -68% -68% -69% ...
JSON::Parser::Regexp 19.6/s 115% 80% 29% -- -35% -42% -45% -50% -54% -54% -54% -54% -58% -58% -60% ...
JSON::Tiny 30.3/s 233% 178% 100% 54% -- -11% -15% -24% -30% -30% -30% -30% -36% -36% -38% ...
JSON::PP 34.4/s 278% 216% 127% 75% 13% -- -3% -14% -20% -20% -20% -20% -27% -27% -29% ...
Pegex::JSON 35.7/s 292% 228% 136% 82% 17% 3% -- -10% -17% -17% -17% -17% -25% -25% -27% ...
JSON::MaybeXS 40.0/s 340% 268% 164% 104% 32% 16% 12% -- -7% -7% -7% -7% -16% -16% -18% ...
YAML 43.5/s 378% 300% 187% 121% 43% 26% 21% 8% -- 0% 0% 0% -8% -8% -11% ...
Storable 43.5/s 378% 300% 187% 121% 43% 26% 21% 8% 0% -- 0% 0% -8% -8% -11% ...
Sereal 43.5/s 378% 300% 187% 121% 43% 26% 21% 8% 0% 0% -- 0% -8% -8% -11% ...
YAML::Old 43.5/s 378% 300% 187% 121% 43% 26% 21% 8% 0% 0% 0% -- -8% -8% -11% ...
lib/Bencher/Scenario/Serializers.pm view on Meta::CPAN
Data::Undump::PPI: mod_overhead_time=50.2 participant=Data::Undump::PPI
JSON::Create: mod_overhead_time=3 participant=JSON::Create
JSON::Decode::Marpa: mod_overhead_time=94 participant=JSON::Decode::Marpa
JSON::Decode::Regexp: mod_overhead_time=3 participant=JSON::Decode::Regexp
JSON::MaybeXS: mod_overhead_time=9 participant=JSON::MaybeXS
JSON::PP: mod_overhead_time=13.1 participant=JSON::PP
JSON::Parse: mod_overhead_time=5 participant=JSON::Parse
JSON::Parser::Regexp: mod_overhead_time=35 participant=JSON::Parser::Regexp
JSON::Tiny: mod_overhead_time=17 participant=JSON::Tiny
JSON::XS: mod_overhead_time=4.4 participant=JSON::XS
MarpaX::ESLIF::ECMA404: mod_overhead_time=76 participant=MarpaX::ESLIF::ECMA404
Pegex::JSON: mod_overhead_time=12 participant=Pegex::JSON
Sereal: mod_overhead_time=7 participant=Sereal
Storable: mod_overhead_time=7 participant=Storable
YAML: mod_overhead_time=7 participant=YAML
YAML::Old: mod_overhead_time=7 participant=YAML::Old
YAML::Syck: mod_overhead_time=3 participant=YAML::Syck
YAML::XS: mod_overhead_time=5 participant=YAML::XS
perl -e1 (baseline): mod_overhead_time=0 participant=perl -e1 (baseline)
To display as an interactive HTML table on a browser, you can add option C<--format html+datatables>.
lib/Bencher/ScenarioR/Serializers.pm view on Meta::CPAN
## no critic
package Bencher::ScenarioR::Serializers;
our $VERSION = 0.161; # VERSION
our $results = [[200,"OK",[{_name=>"p_tags=yaml, serialize participant=YAML::Dump",_succinct_name=>"Y:D yaml, serialize",errors=>6.9e-07,p_tags=>"yaml, serialize",participant=>"YAML::Dump",pct_faster_vs_slowest=>0,pct_slower_vs_fastest=>435.363636363...
1;
# ABSTRACT: Benchmark Perl data serialization modules
=head1 DESCRIPTION
This module is automatically generated by Pod::Weaver::Plugin::Bencher::Scenario during distribution build.
A Bencher::ScenarioR::* module contains the raw result of sample benchmark and might be useful for some stuffs later.