mirror of
https://github.com/boostorg/beast.git
synced 2025-08-02 06:15:24 +02:00
Adjust benchmarks
This commit is contained in:
@@ -2,6 +2,7 @@ Version 73:
|
|||||||
|
|
||||||
* Jamroot tweak
|
* Jamroot tweak
|
||||||
* Verify certificates in SSL clients
|
* Verify certificates in SSL clients
|
||||||
|
* Adjust benchmarks
|
||||||
|
|
||||||
HTTP:
|
HTTP:
|
||||||
|
|
||||||
|
@@ -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",
|
||||||
[&]
|
[&]
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user