Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Bulat Ziganshin <bulat.ziganshin <at> gmail.com>
Subject: speed of Binary serialization libraries
Newsgroups: gmane.comp.lang.haskell.general
Date: Wednesday 26th April 2006 16:02:51 UTC (over 11 years ago)
Hello haskell,

i have performed a small test of serialization libraries speed, more
to compare GHC's solution with my own. Tests was runned on 1GHz Duron.
Each test reads or writes 100 mb of data splitted to 10 kb chunks -
arrays or lists. Results are:

GHC Binary (memory):
Writing UArray: 21.652 secs
Reading UArray: 17.064 secs
Writing list: 21.231 secs
Reading list: 22.562 secs

GHC Binary (file):
Writing UArray: 198.835 secs
Reading UArray: 99.463 secs
Writing list: 195.812 secs
Reading list: 129.707 secs

Other reincarnations of this module (jhc Binary, NewBinary) are
slightly slower. Results of my own lib:

AltBinary (memory, without bounds checking):
Writing UArray: 1.933 secs
Reading UArray: 1.683 secs
Writing list: 1.832 secs
Reading list: 2.744 secs

AltBinary (memory):
Writing UArray: 4.847 secs
Reading UArray: 6.930 secs
Writing list: 4.246 secs
Reading list: 8.232 secs

AltBinary (file):
Writing UArray: 12.368 secs
Reading UArray: 8.312 secs
Writing list: 9.814 secs
Reading list: 9.744 secs


Testbed is included.

-- 
Best regards,
 Bulat                          mailto:[email protected]
 
CD: 3ms