Skip to content

Commit 28af598

Browse files
authored
Merge 98e6a73 into 4e84252
2 parents 4e84252 + 98e6a73 commit 28af598

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ydb/tests/tools/kqprun/kqprun.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,13 @@ void RunArgumentQueries(const TExecutionOptions& executionOptions, NKqpRun::TKqp
9090
Cout << "..." << colors.Default() << Endl;
9191
}
9292

93+
TInstant startTime = TInstant::Now();
9394
switch (executionCase) {
9495
case TExecutionOptions::EExecutionCase::GenericScript:
9596
if (!runner.ExecuteScript(executionOptions.ScriptQueries[id], executionOptions.ScriptQueryAction, executionOptions.TraceId)) {
9697
ythrow yexception() << TInstant::Now().ToIsoStringLocal() << " Script execution failed";
9798
}
99+
Cout << colors.Cyan() << "Script request finished. Time: " << TInstant::Now() - startTime << colors.Default() << Endl;
98100
Cout << colors.Yellow() << TInstant::Now().ToIsoStringLocal() << " Fetching script results..." << colors.Default() << Endl;
99101
if (!runner.FetchScriptResults()) {
100102
ythrow yexception() << TInstant::Now().ToIsoStringLocal() << " Fetch script results failed";
@@ -111,12 +113,14 @@ void RunArgumentQueries(const TExecutionOptions& executionOptions, NKqpRun::TKqp
111113
if (!runner.ExecuteQuery(executionOptions.ScriptQueries[id], executionOptions.ScriptQueryAction, executionOptions.TraceId)) {
112114
ythrow yexception() << TInstant::Now().ToIsoStringLocal() << " Query execution failed";
113115
}
116+
Cout << colors.Cyan() << "Generic request finished. Time: " << TInstant::Now() - startTime << colors.Default() << Endl;
114117
break;
115118

116119
case TExecutionOptions::EExecutionCase::YqlScript:
117120
if (!runner.ExecuteYqlScript(executionOptions.ScriptQueries[id], executionOptions.ScriptQueryAction, executionOptions.TraceId)) {
118121
ythrow yexception() << TInstant::Now().ToIsoStringLocal() << " Yql script execution failed";
119122
}
123+
Cout << colors.Cyan() << "Yql script request finished. Time: " << TInstant::Now() - startTime << colors.Default() << Endl;
120124
break;
121125

122126
case TExecutionOptions::EExecutionCase::AsyncQuery:

0 commit comments

Comments
 (0)