You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/ThreadedStreamConsumer.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@
38
38
* <br>
39
39
* After applying the performance improvements with {@link QueueSynchronizer} the throughput becomes
40
40
* 6.33 mega messages per second
41
-
* (158 nano seconds per message, 5 million messages within 0.79 seconds - see the test ThreadedStreamConsumerTest)
41
+
* (158 nanoseconds per message, 5 million messages within 0.79 seconds - see the test ThreadedStreamConsumerTest)
42
42
* on CPU i5 Dual Core 2.6 GHz and Oracle JDK 11.
43
43
*
44
44
* @author Kristian Rosenvold
@@ -114,7 +114,7 @@ public ThreadedStreamConsumer(EventHandler<Event> target) {
114
114
@Override
115
115
publicvoidhandleEvent(@NonnullEventevent) {
116
116
// Do NOT call Thread.isAlive() - slow.
117
-
// It makes worse performance from 790 millis to 1250 millis for 5 million messages.
117
+
// It makes worse performance from 790 ms to 1250 ms for 5 million messages.
Copy file name to clipboardExpand all lines: maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/booterclient/output/ThreadedStreamConsumerTest.java
Copy file name to clipboardExpand all lines: maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/extensions/EventConsumerThreadTest.java
+4-3
Original file line number
Diff line number
Diff line change
@@ -112,12 +112,13 @@ public synchronized int read(ByteBuffer dst) {
112
112
thread.join();
113
113
114
114
longexecTime = finishedAt[0] - staredAt[0];
115
-
System.out.println(execTime);
115
+
System.out.println("...executed in " + execTime + " ms");
116
116
117
117
// 0.6 seconds while using the encoder/decoder for 10 million messages
118
118
assertThat(execTime)
119
-
.describedAs("The performance test should assert 0.75s of read time. "
120
-
+ "The limit 3.65s guarantees that the read time does not exceed this limit on overloaded CPU.")
119
+
.describedAs(
120
+
"The performance test should assert 0.75 s of read time. "
121
+
+ "The limit 3.65 s guarantees that the read time does not exceed this limit on overloaded CPU.")
Copy file name to clipboardExpand all lines: surefire-its/src/test/resources/testng-parallel-with-annotations/src/test/java/testng/paralellwithannotations/TestNGParallelTest.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ public void checkTestResults()
54
54
assertTrue( testCount == INVOCATION_COUNT, "Expected test to be run 3 times, but was " + testCount );
Copy file name to clipboardExpand all lines: surefire-providers/surefire-junit47/src/test/java/org/apache/maven/surefire/junitcore/pc/ParallelComputerBuilderTest.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -288,7 +288,7 @@ public void separatePoolsWithSuiteAndClass() {
Copy file name to clipboardExpand all lines: surefire-providers/surefire-junit47/src/test/java/org/apache/maven/surefire/junitcore/pc/ParallelComputerUtilTest.java
+7-7
Original file line number
Diff line number
Diff line change
@@ -912,8 +912,8 @@ public void withoutShutdown() {
0 commit comments