Fix bench_http_reader.

This commit is contained in:
levlam 2023-11-24 23:32:59 +03:00
parent c2cbb0c468
commit 0d363724e5

View File

@ -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();
}
};