From 61baa41ee7f1d70737857eb7a37ba57999b2b0af Mon Sep 17 00:00:00 2001 From: Yury-Fridlyand Date: Tue, 21 Nov 2023 17:52:12 -0800 Subject: [PATCH] minor changes Signed-off-by: Yury-Fridlyand --- java/benchmarks/build.gradle | 3 --- .../java/javababushka/benchmarks/BenchmarkingApp.java | 10 ++++------ .../javababushka/benchmarks/utils/Benchmarking.java | 6 +++--- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/java/benchmarks/build.gradle b/java/benchmarks/build.gradle index ecc330f781..6ade7532b0 100644 --- a/java/benchmarks/build.gradle +++ b/java/benchmarks/build.gradle @@ -23,9 +23,6 @@ dependencies { implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.13.0' implementation group: 'com.google.code.gson', name: 'gson', version: '2.10.1' - //testImplementation group: 'org.slf4j', name: 'slf4j-reload4j', version: '2.0.9' - //testImplementation group: 'org.slf4j', name: 'slf4j-api', version: '2.0.9' - compileOnly 'org.projectlombok:lombok:1.18.30' annotationProcessor 'org.projectlombok:lombok:1.18.30' } diff --git a/java/benchmarks/src/main/java/javababushka/benchmarks/BenchmarkingApp.java b/java/benchmarks/src/main/java/javababushka/benchmarks/BenchmarkingApp.java index d8efc8da78..b401488584 100644 --- a/java/benchmarks/src/main/java/javababushka/benchmarks/BenchmarkingApp.java +++ b/java/benchmarks/src/main/java/javababushka/benchmarks/BenchmarkingApp.java @@ -240,9 +240,9 @@ public boolean isEqual(String other) { public static class RunConfiguration { public String configuration; + public Optional resultsFile; public int[] dataSize; public int[] concurrentTasks; - public Optional resultsFile; public ClientName[] clients; public String host; public int port; @@ -258,11 +258,9 @@ public RunConfiguration() { concurrentTasks = new int[] {100, 1000}; clients = new ClientName[] { - // ClientName.BABUSHKA_ASYNC, - // ClientName.JEDIS, ClientName.JEDIS_ASYNC, ClientName.LETTUCE, - // ClientName.LETTUCE_ASYNC - ClientName.BABUSHKA_ASYNC, - ClientName.BABUSHKA // , ClientName.LETTUCE, ClientName.LETTUCE_ASYNC + // ClientName.LETTUCE, + // ClientName.LETTUCE_ASYNC, + ClientName.BABUSHKA_ASYNC, ClientName.BABUSHKA, }; host = "localhost"; port = 6379; diff --git a/java/benchmarks/src/main/java/javababushka/benchmarks/utils/Benchmarking.java b/java/benchmarks/src/main/java/javababushka/benchmarks/utils/Benchmarking.java index 2e04ca9c96..4d826c427b 100644 --- a/java/benchmarks/src/main/java/javababushka/benchmarks/utils/Benchmarking.java +++ b/java/benchmarks/src/main/java/javababushka/benchmarks/utils/Benchmarking.java @@ -154,8 +154,8 @@ public static void testClientSetGet( for (int cc = 0; cc < clientCount; cc++) { Client newClient = clientCreator.get(); newClient.connectToRedis( - new ConnectionSettings( - config.host, config.port, config.tls, config.clusterModeEnabled)); + new ConnectionSettings( + config.host, config.port, config.tls, config.clusterModeEnabled)); clients.add(newClient); } @@ -163,7 +163,7 @@ public static void testClientSetGet( System.out.printf( "%n =====> %s <===== %d clients %d concurrent %n%n", - clientName, clientCount, concurrentNum); + clientName, clientCount, concurrentNum); AtomicInteger iterationCounter = new AtomicInteger(0); long started = System.nanoTime();