[New-bugs-announce] [issue40669] PEG Parser benchmarks fail if memory_profiler is not installed

Lysandros Nikolaou report at bugs.python.org
Mon May 18 06:52:40 EDT 2020


New submission from Lysandros Nikolaou <lisandrosnik at gmail.com>:

Running the PEG Parser benchmarks requires having memory_profiler installed.

In Tools/peg_generator:

➜  peg_generator git:(master) make time_stdlib
../../python -m zipfile -e data/xxl.zip data
../../python scripts/benchmark.py --parser=cpython --target=xxl compile
Traceback (most recent call last):
  File "/home/lysnikolaou/repos/cpython/Tools/peg_generator/scripts/benchmark.py", line 9, in <module>
    import memory_profiler
ModuleNotFoundError: No module named 'memory_profiler'

I propose to make that optional and only compute the timing benchmarks, in case memory_profiler is not available, since it's these benchmarks that are most important and most frequently run.

----------
assignee: lys.nikolaou
messages: 369204
nosy: gvanrossum, lys.nikolaou, pablogsal
priority: normal
severity: normal
status: open
title: PEG Parser benchmarks fail if memory_profiler is not installed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40669>
_______________________________________


More information about the New-bugs-announce mailing list