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 targos committed Apr 27, 2019
1 parent f70588f commit 8ca110c
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 8ca110c

Please sign in to comment.