Antoine Pitrou added the comment:
Pushed in 40e80cede832, thank you.
(2to3'ed Mako appears 3x slower than on 2x, but it's not obvious whether it's
Python 3 itself or the constructs added by 2to3; I think running 2to3ed
benchmarks is a bit pointless in itself, because it's not idiomatic code)
Bobby Impollonia added the comment:
It's working okay for me using a python binary that I just built off the the
py3k branch on 64-bit linux.
FWIW, in the crashing line
util.SetLikeDict(**parent.topleveldefs)
, util.SetLikeDict is a subclass of dict defined in python that just adds an
extra m
Antoine Pitrou added the comment:
> Did you convert the project using make_perf3.sh?
Yes. But given the error (SystemError) I guess this is a regression in
py3k. I'll apply your patch and open a separate issue to try and make
sense of the regression.
--
___
Bobby Impollonia added the comment:
Did you convert the project using make_perf3.sh? This benchmark is in the 2to3
group and not the 2n3 group because it won't work without conversion.
Using the attached patch, the following sequence of commands works for me to
run the benchmark with python 3
Antoine Pitrou added the comment:
Uh, after translation I get a SystemError when trying to run the Mako bench
under the current py3k SVN:
$ PYTHONPATH=lib/mako/ /home/antoine/py3k/py3k/python ./performance/bm_mako.py
-n 25
Traceback (most recent call last):
File "./performance/bm_mako.py",
New submission from Bobby Impollonia :
The Benchmark Suite currently contains two template benchmarks (Django and
Spitfire) for Python 2.x, but none that support 3.x.
The attached patch adds a benchmark using Mako (http://www.makotemplates.org/),
a popular, pure-Python, performance-oriented te