Minor benchmark improvements.
GitOrigin-RevId: e75e3ebe819e248b2f5203aa17d736ef8284bd46
This commit is contained in:
parent
3fb0bdff15
commit
499deffa8d
@ -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;
|
||||
}
|
||||
|
@ -366,5 +366,4 @@ int main() {
|
||||
td::bench(SHA1Bench());
|
||||
td::bench(Crc32Bench());
|
||||
td::bench(Crc64Bench());
|
||||
return 0;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -74,5 +74,4 @@ class HandshakeBench : public Benchmark {
|
||||
int main() {
|
||||
SET_VERBOSITY_LEVEL(VERBOSITY_NAME(DEBUG));
|
||||
td::bench(td::HandshakeBench());
|
||||
return 0;
|
||||
}
|
||||
|
@ -160,5 +160,4 @@ int main() {
|
||||
#endif
|
||||
td::bench(IostreamWriteBench());
|
||||
td::bench(FILEWriteBench());
|
||||
return 0;
|
||||
}
|
||||
|
@ -391,5 +391,4 @@ int main() {
|
||||
#if TD_LINUX || TD_ANDROID || TD_TIZEN
|
||||
td::bench(td::SemBench());
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
@ -974,6 +974,4 @@ int main() {
|
||||
// BENCH_Q(BufferQueue, 100);
|
||||
// BENCH_Q(BufferQueue, 10);
|
||||
// BENCH_Q(BufferQueue, 1);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -112,5 +112,4 @@ class MessagesDbBench : public Benchmark {
|
||||
int main() {
|
||||
SET_VERBOSITY_LEVEL(VERBOSITY_NAME(WARNING));
|
||||
bench(td::MessagesDbBench());
|
||||
return 0;
|
||||
}
|
||||
|
@ -26,5 +26,4 @@ int main(int argc, char *argv[]) {
|
||||
//}
|
||||
});
|
||||
LOG(INFO) << status << ": " << cnt;
|
||||
return 0;
|
||||
}
|
||||
|
@ -40,5 +40,4 @@ int main(int argc, char *argv[]) {
|
||||
// empty
|
||||
}
|
||||
scheduler->finish();
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user