aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorivanmorozov <ivanmorozov@yandex-team.com>2023-06-19 16:13:19 +0300
committerivanmorozov <ivanmorozov@yandex-team.com>2023-06-19 16:13:19 +0300
commit9e147dc3c7f690495eaf8ac92fb39971f7c93e81 (patch)
treea2e40326fe0db92ac4a2b991a4fd5d880636ff82
parentc7fa117ab3122dd361bcc50dd975c12bb6714bbb (diff)
downloadydb-9e147dc3c7f690495eaf8ac92fb39971f7c93e81.tar.gz
success count as json metric, fix failed requests case output
-rw-r--r--ydb/public/lib/ydb_cli/commands/click_bench.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/ydb/public/lib/ydb_cli/commands/click_bench.cpp b/ydb/public/lib/ydb_cli/commands/click_bench.cpp
index 95a071ac5a..ccd7b6eb6b 100644
--- a/ydb/public/lib/ydb_cli/commands/click_bench.cpp
+++ b/ydb/public/lib/ydb_cli/commands/click_bench.cpp
@@ -313,7 +313,8 @@ bool TClickBenchCommandRun::RunBench(TConfig& config)
jsonReport.AppendValue(GetSensorValue("Std", testInfo.Std, queryN));
jsonReport.AppendValue(GetSensorValue("DiffsCount", diffsCount, queryN));
jsonReport.AppendValue(GetSensorValue("FailsCount", failsCount, queryN));
-
+ jsonReport.AppendValue(GetSensorValue("SuccessCount", successIteration, queryN));
+
}
}
@@ -334,7 +335,9 @@ bool TClickBenchCommandRun::RunBench(TConfig& config)
jStream << ",";
}
++colId;
- jStream << testInfo.ServerTimings.at(rowId).MilliSeconds();
+ if (rowId < testInfo.ServerTimings.size()) {
+ jStream << testInfo.ServerTimings.at(rowId).MilliSeconds();
+ }
}
jStream << Endl;