[PATCH 1 of 3 STABLE] revsetbenchmarks: modify existing benchmark to perform more work
Gregory Szorc
gregory.szorc at gmail.com
Mon Sep 8 01:44:34 UTC 2014
# HG changeset patch
# User Gregory Szorc <gregory.szorc at gmail.com>
# Date 1410114802 25200
# Sun Sep 07 11:33:22 2014 -0700
# Node ID 473612a52fabce06be2851d64f8a45f314d30ac6
# Parent 188b8aa2120b03eead618ba150319074f4e3b42b
revsetbenchmarks: modify existing benchmark to perform more work
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 is a
better benchmark.
diff --git a/contrib/revsetbenchmarks.txt b/contrib/revsetbenchmarks.txt
--- a/contrib/revsetbenchmarks.txt
+++ b/contrib/revsetbenchmarks.txt
@@ -13,9 +13,9 @@ tip:0
max(tip:0)
min(0:tip)
0::
min(0::)
-roots((tip~100::) - (tip~100::tip))
+roots((0::) - (0::tip))
::p1(p1(tip))::
public()
:10000 and public()
draft()
More information about the Mercurial-devel
mailing list