Patchwork [1,of,5,STABLE,v2] revsetbenchmarks: add an additional roots() benchmark

login
register
mail settings
Submitter Gregory Szorc
Date Sept. 8, 2014, 9:59 p.m.
Message ID <eb5a18f2feaa61d48166.1410213583@gps-mbp.local>
Download mbox | patch
Permalink /patch/5728/
State Accepted
Commit a476ee0b8e799c1b9b82ad2db350c90a31274879
Headers show

Comments

Gregory Szorc - Sept. 8, 2014, 9:59 p.m.
# HG changeset patch
# User Gregory Szorc <gregory.szorc@gmail.com>
# Date 1410114802 25200
#      Sun Sep 07 11:33:22 2014 -0700
# Node ID eb5a18f2feaa61d48166198558035e82b8672a04
# Parent  188b8aa2120b03eead618ba150319074f4e3b42b
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.
Pierre-Yves David - Sept. 17, 2014, 5:27 p.m.
On 09/08/2014 02:59 PM, Gregory Szorc wrote:
> # HG changeset patch
> # User Gregory Szorc <gregory.szorc@gmail.com>
> # Date 1410114802 25200
> #      Sun Sep 07 11:33:22 2014 -0700
> # Node ID eb5a18f2feaa61d48166198558035e82b8672a04
> # Parent  188b8aa2120b03eead618ba150319074f4e3b42b
> revsetbenchmarks: add an additional roots() benchmark

I pushed the first one to default, still looking into the rest of the 
series.

Patch

diff --git a/contrib/revsetbenchmarks.txt b/contrib/revsetbenchmarks.txt
--- a/contrib/revsetbenchmarks.txt
+++ b/contrib/revsetbenchmarks.txt
@@ -22,4 +22,5 @@  draft()
 :10000 and draft()
 max(::(tip~20) - obsolete())
 roots((0:tip)::)
 (not public() - obsolete())
+roots((0::) - (0::tip))