diff tests/test-contrib-perf.t @ 40768:f723014677a5

perf: add a `perfbranchmapupdate` command This command benchmark the time necessary to update the branchmap between two sets of revisions. This changeset introduce a first version, doing nothing fancy regarding cache or other internal details.
author Boris Feld <boris.feld@octobus.net>
date Wed, 21 Nov 2018 12:02:25 +0000
parents 45a0047c0ebc
children 008f3491dc53
line wrap: on
line diff
--- a/tests/test-contrib-perf.t	Mon Nov 05 13:52:19 2018 +0800
+++ b/tests/test-contrib-perf.t	Wed Nov 21 12:02:25 2018 +0000
@@ -57,6 +57,9 @@
                  benchmark the update of a branchmap
    perfbranchmapload
                  benchmark reading the branchmap
+   perfbranchmapupdate
+                 benchmark branchmap update from for <base> revs to <target>
+                 revs
    perfbundleread
                  Benchmark reading of bundle files.
    perfcca       (no help text available)
@@ -145,6 +148,8 @@
   $ hg perfbookmarks
   $ hg perfbranchmap
   $ hg perfbranchmapload
+  $ hg perfbranchmapupdate --base "not tip" --target "tip"
+  benchmark of branchmap with 3 revisions with 1 new ones
   $ hg perfcca
   $ hg perfchangegroupchangelog
   $ hg perfchangegroupchangelog --cgversion 01