[TD-5838]<feature> add function of speed test

This commit is contained in:
wangmm0220 2021-08-12 09:42:57 +08:00
parent 6c8f6e153a
commit 6b0dfd475e
1 changed files with 2 additions and 2 deletions

View File

@ -558,7 +558,7 @@ static void taosNetTestFqdn(char *host) {
} }
uint64_t endTime = taosGetTimestampUs(); uint64_t endTime = taosGetTimestampUs();
uint64_t el = endTime - startTime; uint64_t el = endTime - startTime;
printf("check convert fqdn spend, statuw: %d\tcost: %" PRIu64 " us\n", code, el); printf("check convert fqdn spend, status: %d\tcost: %" PRIu64 " us\n", code, el);
return; return;
} }
@ -590,7 +590,7 @@ static void taosNetCheckSpeed(char *host, int32_t port, int32_t pkgLen,
return; return;
} }
printf("check net spend, host:%s port:%d pkgLen:%d pkgNum:%d pkgType:%s\n", host, port, pkgLen, pkgNum, pkgType); printf("check net spend, host:%s port:%d pkgLen:%d pkgNum:%d pkgType:%s\n\n", host, port, pkgLen, pkgNum, pkgType);
int32_t totalSucc = 0; int32_t totalSucc = 0;
uint64_t startT = taosGetTimestampUs(); uint64_t startT = taosGetTimestampUs();
for (int32_t i = 1; i <= pkgNum; i++) { for (int32_t i = 1; i <= pkgNum; i++) {