Skip to content

Commit

Permalink
hoist generated input from benchmark task
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed May 17, 2021
1 parent 22b25e5 commit a14539b
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -7,8 +7,9 @@ const suite = new Benchmark.Suite();

function benchCases(name, implementation, options) {
for (const length of [256, 512, 1024, 2048]) {
const input = ";".repeat(length);
suite.add(`${name} ${length} empty statement`, () => {
implementation.parse(";".repeat(length), options);
implementation.parse(input, options);
});
}
}
Expand Down

0 comments on commit a14539b

Please sign in to comment.