Guido van Rossum <gu...@python.org> added the comment:

> Interesting. What code did you use to collect statistics?

For static statistics I wrote my own script: 
https://github.com/python/cpython/pull/25090/files#diff-994d3592c951c78cbe71084d562590d1507ddfed767e2ec040f5e2610845a11c.
 I can add that to Tools permanently (I have a slightly improved version that 
can look for different things).

> I used patches in issue27255. Perhaps it is worth to add an optionally 
> compiled code for collecting dynamic opcode statistics permanently.

We have that already: compile with -DDYNAMIC_EXECUTION_PROFILE -DDXPAIRS. 
There's a script (Tools/scripts/analyze_dxp.py) that works with such data, but 
it's primitive. Eric is working on improvements; I added my own hacky script to 
run an app and collect the data.

I collected a few different sets of statistics: static stats for the stdlib and 
for mypy, dynamic stats for running mypy and a few of the benchmarks in 
pyperformance. Eric and I have plans to do this more systematically; we'll then 
publish our tools and results.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43684>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to