Python 2 times slower than Perl
Skip Montanaro
skip at pobox.com
Wed Jul 18 14:10:12 EDT 2001
Johann> cc -O2 0.28
Johann> cc 0.62
Johann> ocamlopt 1.26 (compiled)
Johann> ocaml 9.42 (interpreted)
Johann> perl 28.9
Johann> python 66.8
Johann> Hm. I'm beginning to wonder if I compiled python with -O2 or
Johann> not. Plus, I'm becoming more and more fond of ocaml.
I pass along a couple tips that were mentioned to me recently on python-dev:
1. Grep sys.prefix + "/config/Makefile" for OPT
2. Import distutils.sysconfig then execute
distutils.sysconfig.get_config_var("OPT")
--
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/
More information about the Python-list
mailing list