Skip to content

Commit

Permalink
benchmark: fix http bench-parser.js
Browse files Browse the repository at this point in the history
The internal HTTParser `reinitialize()` function was removed in
ece5073 and replaced with an `initialize()` function. This broke
benchmark/http/bench-parser.js. This change updates the benchmark so
that it runs again.

PR-URL: #27359
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
  • Loading branch information
Trott authored and refack committed Apr 23, 2019
1 parent b773f77 commit 62c7b2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/http/bench-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function main({ len, n }) {
bench.start();
for (var i = 0; i < n; i++) {
parser.execute(header, 0, header.length);
parser.reinitialize(REQUEST, i > 0);
parser.initialize(REQUEST, header);
}
bench.end(n);
}
Expand Down

0 comments on commit 62c7b2e

Please sign in to comment.