# HG changeset patch # User Pierre-Yves David <pierre-yves.david@octobus.net> # Date 1541591278 -3600 # Wed Nov 07 12:47:58 2018 +0100 # Node ID e99253dc7d95fb57298647ef4c6ca9f30fba1a5f # Parent 353526291c8a55c329c59264ae3942cd159eab68 benchmark: also track the `decompress` section of `perfrevlogrevision` diff --git a/benchmarks/others.py b/benchmarks/others.py --- a/benchmarks/others.py +++ b/benchmarks/others.py @@ -224,3 +224,11 @@ return float('nan') return data["patch"].get('median', float('nan')) + @params_as_kwargs + def track_decompress(self, *args, **kwargs): + cmd = ["perfrevlogrevision", "--manifest", "--", "-1"] + data = self.getperfdata((-1,), cmd) + if data is None: + return float('nan') + return data["decompress"].get('median', float('nan')) +