This commit is contained in:
Brooke Vibber 2025-12-23 10:51:01 -08:00
commit 7a6e4b31bd
10 changed files with 989 additions and 0 deletions

21
arg-test/test-argy.js Normal file
View file

@ -0,0 +1,21 @@
const Module = require('./argy.js');
Module().then((module) => {
const benches = [
'_bench_one',
'_bench_two',
'_bench_three',
'_bench_four',
'_bench_five',
'_bench_six',
'_bench_seven',
'_bench_eight'
];
for (const bench of benches) {
console.log(bench);
const start = performance.now();
module[bench]();
const delta = performance.now() - start;
console.log(`${delta} ms`);
}
});