summaryrefslogtreecommitdiff
path: root/protocols/Telegram/tdlib/td/benchmark/bench_http_reader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Telegram/tdlib/td/benchmark/bench_http_reader.cpp')
-rw-r--r--protocols/Telegram/tdlib/td/benchmark/bench_http_reader.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/Telegram/tdlib/td/benchmark/bench_http_reader.cpp b/protocols/Telegram/tdlib/td/benchmark/bench_http_reader.cpp
index b4e865ba7a..fcf72390d3 100644
--- a/protocols/Telegram/tdlib/td/benchmark/bench_http_reader.cpp
+++ b/protocols/Telegram/tdlib/td/benchmark/bench_http_reader.cpp
@@ -1,5 +1,5 @@
//
-// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2023
+// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2024
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -47,6 +47,7 @@ class HttpReaderBench final : public td::Benchmark {
td::HttpReader http_reader_;
void start_up() final {
+ writer_ = {};
reader_ = writer_.extract_reader();
http_reader_.init(&reader_, 10000, 0);
}
@@ -74,6 +75,7 @@ class BufferBench final : public td::Benchmark {
td::HttpReader http_reader_;
void start_up() final {
+ writer_ = {};
reader_ = writer_.extract_reader();
}
};
@@ -104,6 +106,7 @@ class FindBoundaryBench final : public td::Benchmark {
td::HttpReader http_reader_;
void start_up() final {
+ writer_ = {};
reader_ = writer_.extract_reader();
}
};