From 5522bdf8251bd81211b30397dfcbceef03604cec Mon Sep 17 00:00:00 2001
From: Peter Marshall
Date: Fri, 30 Jun 2017 13:41:39 +0200
Subject: [PATCH] benchmark: use smaller n value in some http tests
PR-URL: https://github.com/nodejs/node/pull/14002
Reviewed-By: Ruben Bridgewater
Reviewed-By: James M Snell
---
benchmark/http/check_invalid_header_char.js | 2 +-
benchmark/http/check_is_http_token.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/benchmark/http/check_invalid_header_char.js b/benchmark/http/check_invalid_header_char.js
index bef44e63167078..7b9c08bd17cd97 100644
--- a/benchmark/http/check_invalid_header_char.js
+++ b/benchmark/http/check_invalid_header_char.js
@@ -27,7 +27,7 @@ const bench = common.createBenchmark(main, {
'foo\nbar',
'\x7F'
],
- n: [5e8],
+ n: [1e6],
});
function main(conf) {
diff --git a/benchmark/http/check_is_http_token.js b/benchmark/http/check_is_http_token.js
index a317e05a4a12d2..9e0b8279b58ed0 100644
--- a/benchmark/http/check_is_http_token.js
+++ b/benchmark/http/check_is_http_token.js
@@ -37,7 +37,7 @@ const bench = common.createBenchmark(main, {
':alternate-protocol', // fast bailout
'alternate-protocol:' // slow bailout
],
- n: [5e8],
+ n: [1e6],
});
function main(conf) {