[mnet-devel] fast dump to mencode format
Zooko
zooko at zooko.com
Sat Aug 9 15:36:09 BST 2003
I've added C and Python implementations of "dump a dict containing only
strings to mencode format". Disappointingly, it is noticeably slower than the
minimal binary format:
HACK pion:~/playground/mnet/mnet_new$ /usr/local/stow/python2.3-O2-athlon-xp/bin/python -OO ~/playground/mnet/mnet_new/mnetlib/scripts/benchpickle.py
NOTE: c_mencode found, using accelerated C version of mencode
NOTE: c_fastdumper found, using accelerated C version of fastdumper
cstringdictdumps
N: 16384, time: ave: 0.01, 5th-best: 0.01, 5th-worst: 0.01 (of 128), ave rate: 1814218
N: 65536, time: ave: 0.04, 5th-best: 0.04, 5th-worst: 0.04 (of 128), ave rate: 1745717
N: 262144, time: ave: 0.16, 5th-best: 0.16, 5th-worst: 0.17 (of 128), ave rate: 1658501
N: 1048576, time: ave: 0.68, 5th-best: 0.67, 5th-worst: 0.69 (of 80), ave rate: 1552074
cstringdictdumpsmencode
N: 16384, time: ave: 0.04, 5th-best: 0.04, 5th-worst: 0.04 (of 128), ave rate: 448628
N: 65536, time: ave: 0.15, 5th-best: 0.14, 5th-worst: 0.16 (of 128), ave rate: 441444
N: 262144, time: ave: 0.60, 5th-best: 0.59, 5th-worst: 0.62 (of 100), ave rate: 434666
N: 1048576, time: ave: 2.45, 4th-best: 2.43, 4th-worst: 2.47 (of 25), ave rate: 428697
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
mnet-devel mailing list
mnet-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mnet-devel
More information about the Mnet-devel
mailing list