Author ncoghlan
Recipients amaury.forgeotdarc, eric.araujo, ncoghlan, pitrou, rhettinger, scott_daniels, tshepang
Date 2012-06-26.12:37:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1340714260.59.0.11027008172.issue6422@psf.upfronthosting.co.za>
In-reply-to
Content
In #5442, I proposed leaving the architecture of the module alone, and simply exposing the main module functionality as a high level helper function:

def measure(stmt="pass", setup="pass", timer=default_timer,
            repeat=default_repeat, number=default_number,
            verbosity=0, precision=3)

The return value would simply be a (number, results) 2-tuple with the number of iterations per test (which may have been calculated automatically), and then a list of the results. To get "timeit" style behavior, simply set "repeat=1".
History
Date User Action Args
2012-06-26 12:37:40ncoghlansetrecipients: + ncoghlan, rhettinger, scott_daniels, amaury.forgeotdarc, pitrou, eric.araujo, tshepang
2012-06-26 12:37:40ncoghlansetmessageid: <1340714260.59.0.11027008172.issue6422@psf.upfronthosting.co.za>
2012-06-26 12:37:40ncoghlanlinkissue6422 messages
2012-06-26 12:37:39ncoghlancreate