[Python-Dev] Performance of various marshallers

Fred L. Drake, Jr. fdrake@acm.org
Mon, 1 Oct 2001 22:42:38 -0400


Skip Montanaro writes:
 > total test time (approximately 5 seconds).  Each test was run 3 times.  The
 > largest number is recorded below, rounded to three significant digits.
 > 
 >                         encode          decode
 >                         ------          ------
 >     marshal             25900           7830
 >     cPickle              1230            149

  Were the cPickle tests run in binary or original flavor?

 >     xmlrpclib 0.9.8
 >         w/ sgmlop         416            107
 >         w/o sgmlop        415             16.3  <--+
 >     xmlrpclib 1.0b4                                |
 >         w/ sgmlop         365             92.0     |
 >         w/o sgmlop        363             74.9  <--+
 >     py-xmlrpc            2780           2260       |
                                                      |
  +---------------------------------------------------+
  |
  +----> I presume that Expat was available for the second run and not
         for the first?  These should probably be broken into three
         categories: sgmlop, expat, and xmllib.

         I also presume that py-xmlrpc never calls from C->Python
         during the parse phase, but I've not yet had a chance to look
         at this code.


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Zope Corporation