Skip to content

Commit

Permalink
adjusted thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
guyplusplus committed Mar 10, 2020
1 parent 0a77716 commit ee69f81
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class OverheadTest {
private static final int ARRAY_SIZE = 5017;
private static final int LOOP_ONE_CALL = 500000;
private static final int LOOP_TEST = 5000;
private static final int LOOP_TEST_WARMUP = 10000;
private static final int LOOP_TEST_WARMUP = 5000;
private static final int THREAD_COUNT = 4;

@Before
Expand All @@ -37,7 +37,7 @@ public void overHeadTestSingleThread() {
System.out.println("duration (ms) per oneCall - NO BREAKER: " + durationPerCallNoBreaker);
System.out.println("duration (ms) per oneCall - WITH BREAKER: " + durationPerCallWithBreaker);
System.out.println("Overhead (ms) per oneCall of breaker: " + overHead);
assertTrue(overHead < 0.1);
assertTrue(overHead < 0.2);
}

@Test
Expand Down Expand Up @@ -89,7 +89,7 @@ public void run() {
System.out.println("duration (ms) per oneCall - NO BREAKER: " + durationPerCallNoBreaker);
System.out.println("duration (ms) per oneCall - WITH BREAKER: " + durationPerCallWithBreaker);
System.out.println("Overhead (ms) per oneCall of breaker: " + overHead);
assertTrue(overHead < 0.1);
assertTrue(overHead < 0.2);
}

private double singleThreadNoBreaker() {
Expand Down

0 comments on commit ee69f81

Please sign in to comment.