On Fri, Feb 10, 2017 at 1:06 PM, Simon Farnsworth <simon...@fb.com> wrote:

> +    def write():
> +        ui.write(('Testing write performance\n'))
>

You'll want to do this in a loop 10,000 times or something instead of just
once, so that the numbers you get actually give you some idea of what's
going on. When you just measure one call, the cost of the call is probably
lower than the resolution of time.time().
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to