Skip to content

Instantly share code, notes, and snippets.

@jeffreykegler
Created November 16, 2021 01:39
Show Gist options
  • Save jeffreykegler/895e4136578ec9563468e6c103d1b9ae to your computer and use it in GitHub Desktop.
Save jeffreykegler/895e4136578ec9563468e6c103d1b9ae to your computer and use it in GitHub Desktop.
ESLIF benchmark for 847K file
perl bench.pl /usr/share/iso-codes/json/iso_639-3.json
Using /usr/share/iso-codes/json/iso_639-3.json
Using Marpa::R2 8
(warning: too few iterations for a reliable count)
(warning: too few iterations for a reliable count)
(warning: too few iterations for a reliable count)
s/iter ESLIF JSON SLIF JSON JSON::PP JSON::XS
ESLIF JSON 7.43 -- -10% -71% -100%
SLIF JSON 6.68 11% -- -68% -100%
JSON::PP 2.13 249% 214% -- -99%
JSON::XS 2.79e-02 26536% 23847% 7536% --
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment