aboutsummaryrefslogtreecommitdiffhomepage
path: root/benchmark
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2023-11-24 23:32:59 +0300
committerlevlam <levlam@telegram.org>2023-11-24 23:32:59 +0300
commit0d363724e5f8ed735d53a9758f4b2e920f4ee488 (patch)
treef15a143899076de2c0fb8c8f6d8da99792e40c60 /benchmark
parentc2cbb0c468f3161d84342e6f1051d0adfee8b1ca (diff)
Fix bench_http_reader.
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/bench_http_reader.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/benchmark/bench_http_reader.cpp b/benchmark/bench_http_reader.cpp
index b4e865ba7..ec13b452c 100644
--- a/benchmark/bench_http_reader.cpp
+++ b/benchmark/bench_http_reader.cpp
@@ -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();
}
};