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.

Author pitrou
Recipients lemburg, pitrou
Date 2008-12-22.10:15:12
SpamBayes Score 1.8973167e-10
Marked as misclassified No
Message-id <1229940895.6263.5.camel@localhost>
In-reply-to <494F667D.6000301@egenix.com>
Content
> 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.
History
Date User Action Args
2008-12-22 10:15:17pitrousetrecipients: + pitrou, lemburg
2008-12-22 10:15:12pitroulinkissue4714 messages
2008-12-22 10:15:12pitroucreate