# HG changeset patch # User Pierre-Yves David <pierre-yves.david@octobus.net> # Date 1548339101 18000 # Thu Jan 24 09:11:41 2019 -0500 # Node ID 5e5dc5d981179b8db3ddb401cdd2e140a2a442bc # Parent e514cde1328376a9813374d68a1e7955dd62ee4f revset: add benchmark for some revset we have been working on diff --git a/benchmarks/revset.py b/benchmarks/revset.py --- a/benchmarks/revset.py +++ b/benchmarks/revset.py @@ -54,6 +54,11 @@ "(20000::) - (20000)", # The one below is used by rebase "(children(ancestor(tip~5, tip)) and ::(tip~5))::", + "heads(commonancestors(last(head(), 2)))", + "heads(-10000:-1)", + "roots(-10000:-1)", + "only(max(head()), min(head()))", + ): func = create_revset_benchmark(baseset) setattr(RevsetTestSuite, func.__name__, func)