This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: can't run py3 benchmarks
Type: Stage: resolved
Components: Benchmarks Versions: 3rd party
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: pitrou Nosy List: brett.cannon, pitrou, python-dev
Priority: normal Keywords:

Created on 2013-09-21 21:05 by pitrou, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (6)
msg198224 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2013-09-21 21:05
After the latest changes I don't understand how I'm supposed to run translated Python 3 benchmarks:

$ ./ -fb mako_v2 ../opt/python ../x32opt/python 
Running mako_v2...
INFO:root:Running ../x32opt/python ./performance/ -n 50
Traceback (most recent call last):
  File "./", line 2460, in <module>
  File "./", line 2416, in main
  File "./", line 1528, in BM_mako_v2
    return SimpleBenchmark(MeasureMakoV2, *args, **kwargs)
  File "./", line 714, in SimpleBenchmark
    *args, **kwargs)
  File "./", line 1524, in MeasureMakoV2
  File "./", line 1113, in MeasureGeneric
  File "./", line 1071, in CallAndCaptureOutput
    raise RuntimeError("Benchmark died: " + stderr.decode('latin1'))
RuntimeError: Benchmark died: Traceback (most recent call last):
  File "./performance/", line 26, in <module>
    from mako.template import Template
  File "/home/antoine/cpython/benchmarks/lib/Mako-0.7.3/mako/", line 622
    exec code in module.__dict__, module.__dict__
SyntaxError: invalid syntax
msg198282 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2013-09-22 14:37
``python3 -fb mako_v2 ../opt/python ../x32opt/python`` obviously assuming you are specifying Python 3 interpreters. =)

Feel free to tweak any docs you think should be touched up to make that more obvious.
msg198283 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2013-09-22 14:41
Well... It wasn't really obvious to me :-)
Why shouldn't the child interpreter decide which lib to use, though? "" is just an executable script (and its shebang specifies python, not python3).
msg198285 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2013-09-22 14:46
Originally that didn't work too well because the benchmark suite could run Python 2 and Python 3 benchmarks simultaneously, but I don't know if that still works after the 2/3 merge.

As for having interpreter under test make the choice of what version to use is fine by me, it's just the current solution was the easiest to implement. If you want to change than go for it!
msg198328 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-09-23 19:37
New changeset 88b6ef9aa9e9 by Antoine Pitrou in branch 'default':
Issue #19064: let decide which library path is required for which interpreter
msg198329 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2013-09-23 19:37
Now done.
Date User Action Args
2022-04-11 14:57:51adminsetgithub: 63264
2013-09-23 19:37:56pitrousetstatus: open -> closed
resolution: fixed
messages: + msg198329

stage: resolved
2013-09-23 19:37:18python-devsetnosy: + python-dev
messages: + msg198328
2013-09-22 14:46:04brett.cannonsetmessages: + msg198285
2013-09-22 14:41:47pitrousetmessages: + msg198283
2013-09-22 14:37:44brett.cannonsetassignee: brett.cannon -> pitrou
messages: + msg198282
2013-09-21 21:05:42pitroucreate