[Haskell] speed of Binary serialization libraries
Bulat Ziganshin
bulat.ziganshin at gmail.com
Wed Apr 26 12:02:51 EDT 2006
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:Bulat.Ziganshin at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BinaryBenchmark.hs
Type: application/octet-stream
Size: 4275 bytes
Desc: not available
Url : http://www.haskell.org//pipermail/haskell/attachments/20060426/6d0a3989/BinaryBenchmark.obj
More information about the Haskell
mailing list