[PATCH 3 of 3] run-tests: add --time option to log times for each test

Matt Mackall mpm at selenic.com
Mon Nov 12 10:00:53 CST 2012


On Fri, 2012-11-09 at 15:17 -0800, Siddharth Agarwal wrote:
> +    if options.time:
> +        starttime = time.time()
>      ret, out = runner(testpath, testtmp, options, replacements)
> +    if options.time:
> +        endtime = time.time()

Wall time by itself isn't terribly useful, especially when using -j. For
instance, on my 2 core, 4 thread laptop i7, I find that -j 8 runs
through the test suite fastest.

Much more interesting is user+sys time from os.times, though it's often
useful to have these split out.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list