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 Jul 7, 2021
1 parent 7488478 commit d831687
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 d831687

Please sign in to comment.