Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Madsen <amwebdk@gmail.com>2016-05-31 22:49:16 +0300
committerAndreas Madsen <amwebdk@gmail.com>2016-07-26 14:21:50 +0300
commit8bb59fdb127b060d38430c0428d7783931ebec6e (patch)
treefb0ba5c611c27b19480c11349283030cf463d986 /benchmark/http/_chunky_http_client.js
parentf99471b2ae147fbb072223be62e9100862379dc8 (diff)
benchmark: missing process.exit after bench.end
Previously bench.end would call process.exit(0) however this is rather confusing and indeed a few benchmarks had code that assumed otherwise. This adds process.exit(0) to the benchmarks that needs it. PR-URL: https://github.com/nodejs/node/pull/7094 Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'benchmark/http/_chunky_http_client.js')
-rw-r--r--benchmark/http/_chunky_http_client.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/benchmark/http/_chunky_http_client.js b/benchmark/http/_chunky_http_client.js
index bde4eed7444..d4d60ac84d1 100644
--- a/benchmark/http/_chunky_http_client.js
+++ b/benchmark/http/_chunky_http_client.js
@@ -81,6 +81,7 @@ function main(conf) {
count += 1;
if (count === num) {
bench.end(count);
+ process.exit(0);
} else {
WriteHTTPHeaders(socket, 1, min + size);
}