Hi all,
I'd like to run pyperformance (https://github.com/python/performance)
for exploring Python 3.6 x64 speed on Windows. Apparently, "Windows is
now supported" since version 0.1.2, but I'm observing errors such as
the below when trying to run pyperformance, which at first glance seem
pretty fatal for doing anything on Windows - am I missing something?
-----
Execute: venv\cpython3.6-68187c45ff81\Scripts\python.exe -m
performance run --inside-venv
Python benchmark suite 0.5.0
INFO:root:Skipping Python2-only benchmark pyflate; not compatible with
Python sys.version_info(major=3, minor=6, micro=0,
releaselevel='final', serial=0)
INFO:root:Skipping Python2-only benchmark spambayes; not compatible
with Python sys.version_info(major=3, minor=6, micro=0,
releaselevel='final', serial=0)
INFO:root:Skipping Python2-only benchmark hg_startup; not compatible
with Python sys.version_info(major=3, minor=6, micro=0,
releaselevel='final', serial=0)
[ 1/51] 2to3...
INFO:root:Running `c:\program
files\python36\venv\cpython3.6-68187c45ff81\Scripts\python.exe
c:\program files\python36\venv\cpython3.6-68187c45ff81\lib\site-packages\performance\benchmarks\bm_2to3.py
--output C:\Users\Peter\AppData\Local\Temp\tmpwc1mjawc`
Traceback (most recent call last):
File "c:\program
files\python36\venv\cpython3.6-68187c45ff81\lib\site-packages\performance\benchmarks\bm_2to3.py",
line 30, in <module>
runner.bench_func('2to3', bench_2to3, command, devnull_out)
File "c:\program
files\python36\venv\cpython3.6-68187c45ff81\lib\site-packages\perf\_runner.py",
line 573, in bench_func
return self._main(name, sample_func, inner_loops)
File "c:\program
files\python36\venv\cpython3.6-68187c45ff81\lib\site-packages\perf\_runner.py",
line 496, in _main
bench = self._master()
File "c:\program
files\python36\venv\cpython3.6-68187c45ff81\lib\site-packages\perf\_runner.py",
line 735, in _master
bench = self._spawn_workers()
File "c:\program
files\python36\venv\cpython3.6-68187c45ff81\lib\site-packages\perf\_runner.py",
line 698, in _spawn_workers
worker_bench = self._spawn_worker_bench(calibrate)
File "c:\program
files\python36\venv\cpython3.6-68187c45ff81\lib\site-packages\perf\_runner.py",
line 631, in _spawn_worker_bench
suite = self._spawn_worker_suite(calibrate)
File "c:\program
files\python36\venv\cpython3.6-68187c45ff81\lib\site-packages\perf\_runner.py",
line 617, in _spawn_worker_suite
proc = subprocess.Popen(cmd, env=env, **kw)
File "c:\program files\python36\lib\subprocess.py", line 707, in __init__
restore_signals, start_new_session)
File "c:\program files\python36\lib\subprocess.py", line 961, in
_execute_child
assert not pass_fds, "pass_fds not supported on Windows."
AssertionError: pass_fds not supported on Windows.
ERROR: Benchmark 2to3 failed: Benchmark died
Traceback (most recent call last):
File "c:\program
files\python36\venv\cpython3.6-68187c45ff81\lib\site-packages\performance\run.py",
line 126, in run_benchmarks
bench = func(cmd_prefix, options)
File "c:\program
files\python36\venv\cpython3.6-68187c45ff81\lib\site-packages\performance\benchmarks\__init__.py",
line 121, in BM_2to3
return run_perf_script(python, options, "2to3")
File "c:\program
files\python36\venv\cpython3.6-68187c45ff81\lib\site-packages\performance\run.py",
line 92, in run_perf_script
run_command(cmd, hide_stderr=not options.verbose)
File "c:\program
files\python36\venv\cpython3.6-68187c45ff81\lib\site-packages\performance\run.py",
line 61, in run_command
raise RuntimeError("Benchmark died")
RuntimeError: Benchmark died
-----
Thanks,
Peter
_______________________________________________
Speed mailing list
Speed@python.org
https://mail.python.org/mailman/listinfo/speed