# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1668313556 -3600
#      Sun Nov 13 05:25:56 2022 +0100
# Node ID 6f2c771509c1c1956e05d1bbd81b2d50281725e8
# Parent  3d78b02cd8c1ff4ba4433a5c2908108964c5bb97
benchmark: add a benchmark for `hg debugupdatecache` runs

These are stupidly slow, lets measure the improvements

diff --git a/suites/hg/benchmarks/debug-update-cache.pbd b/suites/hg/benchmarks/debug-update-cache.pbd
new file mode 100644
--- /dev/null
+++ b/suites/hg/benchmarks/debug-update-cache.pbd
@@ -0,0 +1,14 @@
+[meta]
+format="0"
+name="debug-update-cache"
+method="simple-command"
+
+[run]
+copy-data-env = true
+
+[simple-command]
+command='hg debugupdatecache'
+cwd = "DATA-VARS:mercurial.main-repo-path"
+
+[simple-command.variants.dimensions.pre-state.warm]
+default=true