revsetbenchmarks: add an additional roots() benchmark
authorGregory Szorc <gregory.szorc@gmail.com>
Sun, 07 Sep 2014 11:33:22 -0700
changeset 22458 a476ee0b8e79
parent 22457 48791c2bea1c
child 22459 0c7b018d3258
revsetbenchmarks: add an additional roots() benchmark The existing roots(x - y) revset only considered the most recent 100 revisions. This was a good start. But expanding it to the full history of the repository can dramatically increase execution time and thus constitutes a useful benchmark.
contrib/revsetbenchmarks.txt
--- a/contrib/revsetbenchmarks.txt	Tue Sep 16 14:49:56 2014 -0500
+++ b/contrib/revsetbenchmarks.txt	Sun Sep 07 11:33:22 2014 -0700
@@ -23,6 +23,7 @@
 max(::(tip~20) - obsolete())
 roots((0:tip)::)
 (not public() - obsolete())
+roots((0::) - (0::tip))
 (_intlist('20000\x0020001')) and merge()
 parents(20000)
 (20000::) - (20000)