Skip to content

Commit

Permalink
Fix(perf test): Fix typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanLennox committed Jun 11, 2024
1 parent 98e4c5d commit 603743f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/java/org/jitsi/srtp/SrtpPerfTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public void doGcmPerfTest(int num, int payloadSize, int numWarmups)

private static final int DEFAULT_NUM_TESTS = 100000;
private static final int DEFAULT_PAYLOAD_SIZE = 1250;
/* 10000 is is the threshold for full (C2) JIT optimization. */
/* 10000 is the threshold for full (C2) JIT optimization. */
private static final int DEFAULT_NUM_WARMUPS = 20000;

@Test
Expand Down Expand Up @@ -273,13 +273,13 @@ public static void main(String[] args)
case 'w':
arg = g.getOptarg();
try {
numTests = Integer.parseInt(arg);
numWarmups = Integer.parseInt(arg);
}
catch (NumberFormatException e) {
System.err.println("Invalid number of warmups " + arg + ": " + e.getMessage());
usage();
}
if (payloadSize < 0) {
if (numWarmups < 0) {
System.err.println("Invalid number of warmups " + arg);
usage();
}
Expand Down

0 comments on commit 603743f

Please sign in to comment.