diff options
author | Rich Trott <rtrott@gmail.com> | 2019-04-23 05:46:46 -0700 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2019-04-23 15:32:38 -0400 |
commit | 62c7b2eca9d9a53ccedd6517c955285b0732d255 (patch) | |
tree | 2a0b4f9acd117b8cb9344ba7aff8b16ff885bb5c /benchmark | |
parent | b773f77ddbae7fb6b4530b0ab60e2d72aebf277f (diff) | |
download | node-new-62c7b2eca9d9a53ccedd6517c955285b0732d255.tar.gz |
benchmark: fix http bench-parser.js
The internal HTTParser `reinitialize()` function was removed in
ece507394a 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: https://github.com/nodejs/node/pull/27359
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/http/bench-parser.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/http/bench-parser.js b/benchmark/http/bench-parser.js index a54f0efa75..271ac55d00 100644 --- a/benchmark/http/bench-parser.js +++ b/benchmark/http/bench-parser.js @@ -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); } |