Yep, in my benchmark JSON::XS was faster than Storable too. Fun, I saw this module before several times, but always stopped reading doc just after "JavaScript" words thinking that this is something useless for me.
Update: In case somebody interested, here's the results of testing for some serializing engines. I've just got simple XML example from wikipedia, encoded it using different methods and benchmarked the parsers.
Here's the code:
And here's the result:
Rate XML::Simple XML::Twig YAML::Syck Data::Dumper Sto
+rable JSON::XS
XML::Simple 422/s -- -24% -96% -97%
+ -99% -99%
XML::Twig 556/s 32% -- -95% -96%
+ -99% -99%
YAML::Syck 11622/s 2652% 1989% -- -11%
+ -81% -84%
Data::Dumper 13039/s 2988% 2244% 12% --
+ -79% -82%
Storable 60964/s 14335% 10859% 425% 368%
+ -- -18%
JSON::XS 74479/s 17535% 13289% 541% 471%
+ 22% --
|