Skip to content

Commit 60daaf3

Browse files
Test Db Application
1 parent 9863708 commit 60daaf3

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

auth/service_account_credentials/src/main/java/tech/ydb/example/Main.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
public final class Main {
1515
public static void main(String[] args) {
16-
long nano = System.nanoTime();
1716
if (args.length != 2) {
1817
System.err.println("Usage: java -jar ydb-service-account-example <connection-string> <sa-key-file>");
1918
return;
@@ -39,6 +38,5 @@ public static void main(String[] args) {
3938
}
4039
}
4140
}
42-
System.out.println("ms: " + (System.nanoTime() - nano) / 1_000_000);
4341
}
4442
}

jdbc/spring-test-db/src/main/kotlin/tech/ydb/testdb/TestDbApplication.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class TestDbApplication : CommandLineRunner {
3434
}
3535
val duration = step.toEpochMilli() - start.toEpochMilli()
3636

37-
log.info("Throughput = {}", duration.takeIf { it != 0L }?.let { count * 1000.0 / it } ?: 0.0)
37+
log.info("Average time = {}ms", 1.0 * duration / count )
3838
}
3939

4040
fun getFixedString(s: String): String {

0 commit comments

Comments
 (0)