machine-independant bench

Tarek Ziadé tziade at
Sat Oct 15 02:32:51 CEST 2005

Hi list,

I am trying to code some utilities to bench code performances, 
to be able to measure the absolute cost of a piece of code.

So i came up with the pystone idea (i've been told too in fact ;)).

so I just run pystones on the test machines and use it as a ratio over
 code performance measurement. This is pretty good, but the major caveat 
is that if the CPU is busy
, it can be slower than expected.

So i've introduced a tolerance flag, (another approach than the three 
times run like hotshot does).

Any comment ?

Any alternatives to pystone in mind ?


Tarek Ziadé | Nuxeo R&D (Paris, France)
CPS Plateform :
mail: tziade at | tel: +33 (0) 6 30 37 02 63
You need Zope 3 -

More information about the Python-list mailing list