[issue4714] print opcode stats at the end of pybench runs
Antoine Pitrou
report at bugs.python.org
Mon Dec 22 11:15:17 CET 2008
Antoine Pitrou <pitrou at free.fr> added the comment:
> I don't think it's worth doing this for low-level and highly
> artificial benchmarks like the ones run by pybench.
Well, it can help to know which opcodes are executed when running a
particular bunch of sub-tests :)
> If at all, then opcode statistics should be an optional feature
> enabled by a command line switch. I'd then create new methods
> bench.start_opcode_stats(), bench.stop_opcode_stats() and
> bench.get_opcode_stats().
>
> Also note that this line will result in wrong results:
>
> + if opstats:
> + opstats = [new - old
> + for new, old in zip(sys.getdxp(), opstats)]
You are right, my assumption was simply that the error would be in the
noise.
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4714>
_______________________________________
More information about the Python-bugs-list
mailing list