Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Creating Storable objects from the C

by Your Mother (Chancellor)
on Dec 24, 2008 at 22:44 UTC ( #732520=note: print w/replies, xml ) Need Help??


in reply to Re: Creating Storable objects from the C
in thread Creating Storable objects from the C

Just adding to this JSON::XS was faster than Storable in the last benchmark I saw/ran. Benchmarks can be misleading (size, data, versions) but even if it's not faster it's probably roughly as fast and if there are C libs available it would be easy to see if it worked well for you.

  • Comment on Re^2: Creating Storable objects from the C

Replies are listed 'Best First'.
Re^3: Creating Storable objects from the C
by diotalevi (Canon) on Dec 25, 2008 at 08:49 UTC

    In the last benchmark I ran, Storable was faster than JSON::XS, fwiw.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

      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% --

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://732520]
help
Chatterbox?
[Corion]: thezip: If you want to open vim and can live with opening a second console window, use start "The results" vim.exe c:\path\to\logfile .log
[thezip]: Ooops... I lied. I guess Cygwin is back. I'll just do a tail -f instead. Better. Sorry for the noise.
[Corion]: Once more, I'm looking for a sane client-side framework, but I guess these don't exist. Everything I look at either uses a weirdo home-grown templating language (like Angular in all its incarnations) or uses weirdo Javascript incarnations (like ...
[Corion]: ... Inferno.js, which uses ES2015) or uses some horrible amount of Javascript infrastructure before you can even render a single file.

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (13)
As of 2017-03-27 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (321 votes). Check out past polls.