lib.fileset: Add benchmark for unions

This commit is contained in:
Silvan Mosberger
2023-09-21 00:21:01 +02:00
parent 631ad21692
commit c8bac6ea0f
+4
View File
@@ -101,3 +101,7 @@ touch d{0..5}/d{0..5}/d{0..5}/d{0..5}/f{0..5}
bench 'toSource { root = ./.; fileset = ./.; }'
rm -rf -- *
touch {0..1000}
bench 'toSource { root = ./.; fileset = unions (mapAttrsToList (name: value: ./. + "/${name}") (builtins.readDir ./.)); }'
rm -rf -- *