Skip to content

Commit

Permalink
Clean up timer
Browse files Browse the repository at this point in the history
Signed-off-by: acarbonetto <[email protected]>
  • Loading branch information
acarbonetto committed Nov 14, 2023
1 parent 05590b0 commit bcf188c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ public static void testClientSetGet(
ChosenAction.GET_EXISTING, new ArrayList<>(),
ChosenAction.GET_NON_EXISTING, new ArrayList<>(),
ChosenAction.SET, new ArrayList<>());
int tasksCompleted = 0;
int iterationIncrement = iterationCounter.getAndIncrement();
int clientIndex = iterationIncrement % clients.size();

Expand All @@ -182,7 +181,6 @@ public static void testClientSetGet(
Pair<ChosenAction, Long> result = measurePerformance(actions);
taskActionResults.get(result.getLeft()).add(result.getRight());

tasksCompleted++;
iterationIncrement = iterationCounter.getAndIncrement();
clientIndex = iterationIncrement % clients.size();
}
Expand All @@ -206,6 +204,7 @@ public static void testClientSetGet(
e.printStackTrace();
throw new RuntimeException(e);
}
long after = System.nanoTime();

// Map to save latency results separately for each action
Map<ChosenAction, ArrayList<Long>> actionResults =
Expand All @@ -225,7 +224,6 @@ public static void testClientSetGet(
e.printStackTrace();
}
});
long after = System.nanoTime();
var calculatedResults = calculateResults(actionResults);

if (config.resultsFile.isPresent()) {
Expand Down

0 comments on commit bcf188c

Please sign in to comment.