# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1686964662 -7200
#      Sat Jun 17 03:17:42 2023 +0200
# Node ID a999904b491010e96118c352494eb34bb4eec261
# Parent  796b52394d7889269003017bebda2a65d9fb3e39
benchmarks: add a filepath version of the cat and files benchmark

diff --git a/suites/hg/benchmarks/cat.pbd b/suites/hg/benchmarks/cat.pbd
--- a/suites/hg/benchmarks/cat.pbd
+++ b/suites/hg/benchmarks/cat.pbd
@@ -14,11 +14,12 @@
 # each run, especially the one who do not need them.
 
 hg files $REV --template 'path:{path}\n' | sort > ../all_sorted.path;
-
 shuf ../all_sorted.path --random-source=../all_sorted.path > ../all_suffled.path;
 
+hg files $REV --template 'filepath:{path}\n' | sort > ../all_sorted.filepath;
+shuf ../all_sorted.filepath --random-source=../all_sorted.filepath > ../all_suffled.filepath;
+
 hg files $REV | sed 's/\\({\\|}\\|\\[\\|\\]\\|*\\|?\\)/\\\\\\1/g' | sort > ../all_sorted.pattern;
-
 shuf ../all_sorted.pattern --random-source=../all_sorted.pattern > ../all_suffled.pattern;
 """
 
@@ -47,6 +48,12 @@
 [simple-command.variants.dimensions.files.all-list-path-shuffled]
 environment.FILES='set:listfile:../all_suffled.path'
 
+[simple-command.variants.dimensions.files.all-list-filepath-sorted]
+environment.FILES='set:listfile:../all_sorted.filepath'
+
+[simple-command.variants.dimensions.files.all-list-filepath-shuffled]
+environment.FILES='set:listfile:../all_suffled.filepath'
+
 [simple-command.variants.dimensions.files.all-list-pattern-sorted]
 environment.FILES='set:listfile:../all_sorted.pattern'
 
diff --git a/suites/hg/benchmarks/files.pbd b/suites/hg/benchmarks/files.pbd
--- a/suites/hg/benchmarks/files.pbd
+++ b/suites/hg/benchmarks/files.pbd
@@ -16,11 +16,12 @@
 # each run, especially the one who do not need them.
 
 hg files $REV --template 'path:{path}\n' | sort > ../all_sorted.path;
-
 shuf ../all_sorted.path --random-source=../all_sorted.path > ../all_suffled.path;
 
+hg files $REV --template 'filepath:{path}\n' | sort > ../all_sorted.filepath;
+shuf ../all_sorted.filepath --random-source=../all_sorted.filepath > ../all_suffled.filepath;
+
 hg files $REV | sed 's/\\({\\|}\\|\\[\\|\\]\\|*\\|?\\)/\\\\\\1/g' | sort > ../all_sorted.pattern;
-
 shuf ../all_sorted.pattern --random-source=../all_sorted.pattern > ../all_suffled.pattern;
 """
 
@@ -53,6 +54,12 @@
 [simple-command.variants.dimensions.files.all-list-path-shuffled]
 environment.FILES='set:listfile:../all_suffled.path'
 
+[simple-command.variants.dimensions.files.all-list-filepath-sorted]
+environment.FILES='set:listfile:../all_sorted.filepath'
+
+[simple-command.variants.dimensions.files.all-list-filepath-shuffled]
+environment.FILES='set:listfile:../all_suffled.filepath'
+
 [simple-command.variants.dimensions.files.all-list-pattern-sorted]
 environment.FILES='set:listfile:../all_sorted.pattern'