summaryrefslogtreecommitdiff
path: root/benchmark/bench/_util.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/bench/_util.js')
-rw-r--r--benchmark/bench/_util.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/benchmark/bench/_util.js b/benchmark/bench/_util.js
index b16a16e1c..d9dfe5b19 100644
--- a/benchmark/bench/_util.js
+++ b/benchmark/bench/_util.js
@@ -19,3 +19,14 @@ export function calculateStat(numbers) {
const max = Math.max(...numbers);
return { avg, stdev, max };
}
+
+export async function makeProject(name) {
+ console.log('Making project:', name);
+ const projectDir = new URL(`../projects/${name}/`, import.meta.url);
+
+ const makeProjectMod = await import(`../make-project/${name}.js`);
+ await makeProjectMod.run(projectDir);
+
+ console.log('Finished making project:', name);
+ return projectDir;
+}