aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormdartemenko <mdartemenko@yandex-team.com>2022-09-14 20:26:57 +0300
committermdartemenko <mdartemenko@yandex-team.com>2022-09-14 20:26:57 +0300
commite9f1eeec3c541dd5041fd8551090e0997a3ac1c4 (patch)
treed0c6dfe72f76e1ee626fc6896825518c4359dd0e
parent6349b2b5a9e6f101fb161cb341ffdc66bf9f0e0c (diff)
downloadydb-e9f1eeec3c541dd5041fd8551090e0997a3ac1c4.tar.gz
fix latency calc
-rw-r--r--ydb/core/blobstorage/testload/test_load_kqp.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/ydb/core/blobstorage/testload/test_load_kqp.cpp b/ydb/core/blobstorage/testload/test_load_kqp.cpp
index b1d63021fd..2735d81d9d 100644
--- a/ydb/core/blobstorage/testload/test_load_kqp.cpp
+++ b/ydb/core/blobstorage/testload/test_load_kqp.cpp
@@ -523,10 +523,10 @@ private:
<< Total->WindowHist.GetTotalCount() << " | "
<< Total->WindowHist.GetTotalCount() / (WindowDuration * std::max(ui64(1), Phase) * 1.0) << " | "
<< Total->WindowErrors << " | "
- << Total->WindowHist.GetValueAtPercentile(50.0) / (WindowDuration * 1000.0) << " | "
- << Total->WindowHist.GetValueAtPercentile(95.0) / (WindowDuration * 1000.0) << " | "
- << Total->WindowHist.GetValueAtPercentile(99.0) / (WindowDuration * 1000.0) << " | "
- << Total->WindowHist.GetMax() / (WindowDuration * 1000.0)
+ << Total->WindowHist.GetValueAtPercentile(50.0) / 1000.0 << " | "
+ << Total->WindowHist.GetValueAtPercentile(95.0) / 1000.0 << " | "
+ << Total->WindowHist.GetValueAtPercentile(99.0) / 1000.0 << " | "
+ << Total->WindowHist.GetMax() / 1000.0
);
if (Phase >= WindowCount) {
@@ -688,10 +688,10 @@ private:
TABLED() { str << Total->WindowHist.GetTotalCount(); };
TABLED() { str << Total->WindowHist.GetTotalCount() / (WindowDuration * std::max(ui64(1), Phase) * 1.0); };
TABLED() { str << Total->WindowErrors; };
- TABLED() { str << Total->WindowHist.GetValueAtPercentile(50.0) / (WindowDuration * 1000.0); };
- TABLED() { str << Total->WindowHist.GetValueAtPercentile(95.0) / (WindowDuration * 1000.0); };
- TABLED() { str << Total->WindowHist.GetValueAtPercentile(99.0) / (WindowDuration * 1000.0); };
- TABLED() { str << Total->WindowHist.GetMax() / (WindowDuration * 1000.0); };
+ TABLED() { str << Total->WindowHist.GetValueAtPercentile(50.0) / 1000.0; };
+ TABLED() { str << Total->WindowHist.GetValueAtPercentile(95.0) / 1000.0; };
+ TABLED() { str << Total->WindowHist.GetValueAtPercentile(99.0) / 1000.0; };
+ TABLED() { str << Total->WindowHist.GetMax() / 1000.0; };
}
for (size_t i = Phase; i >= 1; --i) {
TABLER() {
@@ -699,10 +699,10 @@ private:
TABLED() { str << Chunk[i - 1]->WindowHist.GetTotalCount(); };
TABLED() { str << Chunk[i - 1]->WindowHist.GetTotalCount() / (WindowDuration * 1.0); };
TABLED() { str << Chunk[i - 1]->WindowErrors; };
- TABLED() { str << Chunk[i - 1]->WindowHist.GetValueAtPercentile(50.0) / (WindowDuration * 1000.0); };
- TABLED() { str << Chunk[i - 1]->WindowHist.GetValueAtPercentile(95.0) / (WindowDuration * 1000.0); };
- TABLED() { str << Chunk[i - 1]->WindowHist.GetValueAtPercentile(99.0) / (WindowDuration * 1000.0); };
- TABLED() { str << Chunk[i - 1]->WindowHist.GetMax() / (WindowDuration * 1000.0); };
+ TABLED() { str << Chunk[i - 1]->WindowHist.GetValueAtPercentile(50.0) / 1000.0; };
+ TABLED() { str << Chunk[i - 1]->WindowHist.GetValueAtPercentile(95.0) / 1000.0; };
+ TABLED() { str << Chunk[i - 1]->WindowHist.GetValueAtPercentile(99.0) / 1000.0; };
+ TABLED() { str << Chunk[i - 1]->WindowHist.GetMax() / 1000.0; };
}
}
}