summaryrefslogtreecommitdiff
path: root/benchmark/http
diff options
context:
space:
mode:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-04-11 00:30:24 +0300
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-04-13 00:31:25 +0300
commit0f69f40af004f4c173945b807c43ef55899855c8 (patch)
tree3f992a248cc8268da7defd7c75a1d50be092cf42 /benchmark/http
parent06c29a66d479cf324037537d319dd2368b2692b7 (diff)
downloadandroid-node-v8-0f69f40af004f4c173945b807c43ef55899855c8.tar.gz
android-node-v8-0f69f40af004f4c173945b807c43ef55899855c8.tar.bz2
android-node-v8-0f69f40af004f4c173945b807c43ef55899855c8.zip
benchmark: replace more [].join() with ''.repeat()
Refs: https://github.com/nodejs/node/pull/12170 PR-URL: https://github.com/nodejs/node/pull/12317 Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'benchmark/http')
-rw-r--r--benchmark/http/_chunky_http_client.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/http/_chunky_http_client.js b/benchmark/http/_chunky_http_client.js
index 3dbf2caece..55f914c6df 100644
--- a/benchmark/http/_chunky_http_client.js
+++ b/benchmark/http/_chunky_http_client.js
@@ -20,7 +20,7 @@ function main(conf) {
// Chose 7 because 9 showed "Connection error" / "Connection closed"
// An odd number could result in a better length dispersion.
for (var i = 7; i <= 7 * 7 * 7; i *= 7)
- headers.push(Array(i + 1).join('o'));
+ headers.push('o'.repeat(i));
function WriteHTTPHeaders(channel, has_keep_alive, extra_header_count) {
todo = [];