wip
This commit is contained in:
commit
7a6e4b31bd
10 changed files with 989 additions and 0 deletions
21
arg-test/test-argy.js
Normal file
21
arg-test/test-argy.js
Normal 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`);
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue