Adjust benchmarks

This commit is contained in:
Vinnie Falco
2017-07-05 10:06:21 -07:00
parent c01dddc4ac
commit 48c0fcae50
2 changed files with 4 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ Version 73:
* Jamroot tweak * Jamroot tweak
* Verify certificates in SSL clients * Verify certificates in SSL clients
* Adjust benchmarks
HTTP: HTTP:

View File

@@ -126,6 +126,7 @@ public:
for(auto const& b : v) for(auto const& b : v)
{ {
Parser p; Parser p;
p.header_limit((std::numeric_limits<std::uint32_t>::max)());
error_code ec; error_code ec;
feed(b.data(), p, ec); feed(b.data(), p, ec);
if(! BEAST_EXPECTS(! ec, ec.message())) if(! BEAST_EXPECTS(! ec, ec.message()))
@@ -224,7 +225,7 @@ public:
void void
testSpeed() testSpeed()
{ {
static std::size_t constexpr Trials = 10; static std::size_t constexpr Trials = 5;
static std::size_t constexpr Repeat = 500; static std::size_t constexpr Repeat = 500;
creq_ = build_corpus(N/2, std::true_type{}); creq_ = build_corpus(N/2, std::true_type{});
@@ -259,7 +260,7 @@ public:
false, dynamic_body, fields>>( false, dynamic_body, fields>>(
Repeat, cres_); Repeat, cres_);
}); });
#if 0 #if 1
timedTest(Trials, "nodejs_parser", timedTest(Trials, "nodejs_parser",
[&] [&]
{ {