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 Apr 29, 2021
1 parent d93cbca commit 0d2cffa
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 0d2cffa

Please sign in to comment.