File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
auth/service_account_credentials/src/main/java/tech/ydb/example
jdbc/spring-test-db/src/main/kotlin/tech/ydb/testdb Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change 1313
1414public 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}
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments