[issue15596] pickle: Faster serialization of Unicode strings

STINNER Victor report at bugs.python.org
Thu Aug 9 23:49:42 CEST 2012


STINNER Victor added the comment:

Here is a benchmark comparing Python 3.3 without and with my patch

ned$ python3 perf.py -b fastpickle,pickle_dict,pickle_list,slowpickle ../default/python ../fasterpickle/python
Running fastpickle...
INFO:root:Running ../fasterpickle/python performance/bm_pickle.py -n 50 --use_cpickle pickle
INFO:root:Running ../default/python performance/bm_pickle.py -n 50 --use_cpickle pickle
Running pickle_dict...
INFO:root:Running ../fasterpickle/python performance/bm_pickle.py -n 50 --use_cpickle pickle_dict
INFO:root:Running ../default/python performance/bm_pickle.py -n 50 --use_cpickle pickle_dict
Running pickle_list...
INFO:root:Running ../fasterpickle/python performance/bm_pickle.py -n 50 --use_cpickle pickle_list
INFO:root:Running ../default/python performance/bm_pickle.py -n 50 --use_cpickle pickle_list
Running slowpickle...
INFO:root:Running ../fasterpickle/python performance/bm_pickle.py -n 50 pickle
INFO:root:Running ../default/python performance/bm_pickle.py -n 50 pickle

Report on Linux ned 3.4.4-4.fc16.x86_64 #1 SMP Thu Jul 5 20:01:38 UTC 2012 x86_64 x86_64
Total CPU cores: 8

### fastpickle ###
Min: 0.530622 -> 0.332841: 1.59x faster
Avg: 0.539450 -> 0.336833: 1.60x faster
Significant (t=232.04)
Stddev: 0.00552 -> 0.00276: 2.0032x smaller
Timeline: b'http://tinyurl.com/dyu3vap'

The following not significant results are hidden, use -v to show them:
pickle_dict, pickle_list, slowpickle.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15596>
_______________________________________


More information about the Python-bugs-list mailing list