Minor benchmark improvements.

GitOrigin-RevId: e75e3ebe819e248b2f5203aa17d736ef8284bd46
This commit is contained in:
levlam 2020-08-08 22:00:05 +03:00
parent 3fb0bdff15
commit 499deffa8d
10 changed files with 3 additions and 11 deletions

View File

@ -10,6 +10,7 @@
#include "td/actor/PromiseFuture.h"
#include "td/utils/common.h"
#include "td/utils/crypto.h"
#include "td/utils/logging.h"
#if TD_MSVC
@ -266,6 +267,8 @@ class QueryBench : public td::Benchmark {
};
int main() {
td::init_openssl_threads();
SET_VERBOSITY_LEVEL(VERBOSITY_NAME(DEBUG));
bench(RingBench<4>(504, 0));
bench(RingBench<3>(504, 0));
@ -285,5 +288,4 @@ int main() {
bench(RingBench<0>(504, 2));
bench(RingBench<1>(504, 2));
bench(RingBench<2>(504, 2));
return 0;
}

View File

@ -366,5 +366,4 @@ int main() {
td::bench(SHA1Bench());
td::bench(Crc32Bench());
td::bench(Crc64Bench());
return 0;
}

View File

@ -238,5 +238,4 @@ int main() {
bench(TdKvBench<td::BinlogKeyValue<td::Binlog>>("BinlogKeyValue<Binlog>"));
bench(TdKvBench<td::BinlogKeyValue<td::ConcurrentBinlog>>("BinlogKeyValue<ConcurrentBinlog>"));
bench(SeqKvBench());
return 0;
}

View File

@ -74,5 +74,4 @@ class HandshakeBench : public Benchmark {
int main() {
SET_VERBOSITY_LEVEL(VERBOSITY_NAME(DEBUG));
td::bench(td::HandshakeBench());
return 0;
}

View File

@ -160,5 +160,4 @@ int main() {
#endif
td::bench(IostreamWriteBench());
td::bench(FILEWriteBench());
return 0;
}

View File

@ -391,5 +391,4 @@ int main() {
#if TD_LINUX || TD_ANDROID || TD_TIZEN
td::bench(td::SemBench());
#endif
return 0;
}

View File

@ -974,6 +974,4 @@ int main() {
// BENCH_Q(BufferQueue, 100);
// BENCH_Q(BufferQueue, 10);
// BENCH_Q(BufferQueue, 1);
return 0;
}

View File

@ -112,5 +112,4 @@ class MessagesDbBench : public Benchmark {
int main() {
SET_VERBOSITY_LEVEL(VERBOSITY_NAME(WARNING));
bench(td::MessagesDbBench());
return 0;
}

View File

@ -26,5 +26,4 @@ int main(int argc, char *argv[]) {
//}
});
LOG(INFO) << status << ": " << cnt;
return 0;
}

View File

@ -40,5 +40,4 @@ int main(int argc, char *argv[]) {
// empty
}
scheduler->finish();
return 0;
}