[PATCH 6 of 6] perf: add perfrevlogrevision

Matt Mackall mpm at selenic.com
Mon Dec 21 12:01:31 CST 2015


On Sun, 2015-12-20 at 20:04 -0800, Gregory Szorc wrote:
> # HG changeset patch
> # User Gregory Szorc <gregory.szorc at gmail.com>
> # Date 1450665501 28800
> #      Sun Dec 20 18:38:21 2015 -0800
> # Node ID 85c0fa263fdcbdc0ee19aa3708dce1a854c18bf9
> # Parent  f43c3343c6888d7f1c960872091ebd86b3a54d3a
> perf: add perfrevlogrevision

Looks good, queued for default. I'd really like to see sample output in
commit messages though. For people reading along at home, it looks like
this:

$ hg perfrevlogrevision -m 30000
! full
! wall 0.003581 comb 0.000000 user 0.000000 sys 0.000000 (best of 811)
! deltachain
! wall 0.000216 comb 0.000000 user 0.000000 sys 0.000000 (best of 11433)
! read
! wall 0.000090 comb 0.000000 user 0.000000 sys 0.000000 (best of 30815)
! decompress
! wall 0.002893 comb 0.000000 user 0.000000 sys 0.000000 (best of 1014)
! patch
! wall 0.000217 comb 0.000000 user 0.000000 sys 0.000000 (best of 13106)
! hash
! wall 0.000279 comb 0.000000 user 0.000000 sys 0.000000 (best of 10310)

(One wonders if the zlib code is spending a lot of time resizing Python
strings.)

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial-devel mailing list