You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2023/05/10 17:09:06 UTC

[camel-performance-tests] branch main updated (d6d6839 -> 53f7a6b)

This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel-performance-tests.git


    from d6d6839  (chores) performance: fixed naming inconsistencies in Seda tests
     new be725fb  (chores) performance: allow a different number of consumers for some seda and disruptor tests
     new ec1da5d  (chores) performance: added missing dependency for disruptor tests
     new 53f7a6b  (chores) performance: increase the test timeout, since more tests are running

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 tests/camel-jmh/pom.xml                                            | 7 ++++++-
 .../org/apache/camel/itest/jmh/BlockingProducerToSedaTest.java     | 5 ++++-
 .../java/org/apache/camel/itest/jmh/DisruptorProducerTest.java     | 5 ++++-
 3 files changed, 14 insertions(+), 3 deletions(-)


[camel-performance-tests] 01/03: (chores) performance: allow a different number of consumers for some seda and disruptor tests

Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-performance-tests.git

commit be725fbe1278624f04687ef4f5c51d84d05106ba
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu May 4 07:43:17 2023 +0200

    (chores) performance: allow a different number of consumers for some seda and disruptor tests
---
 .../java/org/apache/camel/itest/jmh/BlockingProducerToSedaTest.java  | 5 ++++-
 .../test/java/org/apache/camel/itest/jmh/DisruptorProducerTest.java  | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/tests/camel-jmh/src/test/java/org/apache/camel/itest/jmh/BlockingProducerToSedaTest.java b/tests/camel-jmh/src/test/java/org/apache/camel/itest/jmh/BlockingProducerToSedaTest.java
index e20f2e6..e8df3c0 100644
--- a/tests/camel-jmh/src/test/java/org/apache/camel/itest/jmh/BlockingProducerToSedaTest.java
+++ b/tests/camel-jmh/src/test/java/org/apache/camel/itest/jmh/BlockingProducerToSedaTest.java
@@ -14,6 +14,7 @@ import org.openjdk.jmh.annotations.BenchmarkMode;
 import org.openjdk.jmh.annotations.Level;
 import org.openjdk.jmh.annotations.Mode;
 import org.openjdk.jmh.annotations.OutputTimeUnit;
+import org.openjdk.jmh.annotations.Param;
 import org.openjdk.jmh.annotations.Scope;
 import org.openjdk.jmh.annotations.Setup;
 import org.openjdk.jmh.annotations.State;
@@ -47,6 +48,8 @@ public class BlockingProducerToSedaTest {
     // http://hg.openjdk.java.net/code-tools/jmh/file/tip/jmh-samples/src/main/java/org/openjdk/jmh/samples/
     @State(Scope.Benchmark)
     public static class BenchmarkState {
+        @Param({"1", "2", "4", "8", "16", "32"})
+        int consumers;
 
         CamelContext context;
         ProducerTemplate producerTemplate;
@@ -69,7 +72,7 @@ public class BlockingProducerToSedaTest {
                     onException(IllegalStateException.class)
                             .process(e -> System.out.println("The SEDA queue is likely full and the system may be unable to catch to the load. Fix the test parameters"));
 
-                    fromF("seda:test").to("log:?level=OFF");
+                    fromF("seda:test?concurrentConsumers=%s", consumers).to("log:?level=OFF");
 
                 }
             });
diff --git a/tests/camel-jmh/src/test/java/org/apache/camel/itest/jmh/DisruptorProducerTest.java b/tests/camel-jmh/src/test/java/org/apache/camel/itest/jmh/DisruptorProducerTest.java
index e98e580..6b6898b 100644
--- a/tests/camel-jmh/src/test/java/org/apache/camel/itest/jmh/DisruptorProducerTest.java
+++ b/tests/camel-jmh/src/test/java/org/apache/camel/itest/jmh/DisruptorProducerTest.java
@@ -14,6 +14,7 @@ import org.openjdk.jmh.annotations.BenchmarkMode;
 import org.openjdk.jmh.annotations.Level;
 import org.openjdk.jmh.annotations.Mode;
 import org.openjdk.jmh.annotations.OutputTimeUnit;
+import org.openjdk.jmh.annotations.Param;
 import org.openjdk.jmh.annotations.Scope;
 import org.openjdk.jmh.annotations.Setup;
 import org.openjdk.jmh.annotations.State;
@@ -47,6 +48,8 @@ public class DisruptorProducerTest {
     // http://hg.openjdk.java.net/code-tools/jmh/file/tip/jmh-samples/src/main/java/org/openjdk/jmh/samples/
     @State(Scope.Benchmark)
     public static class BenchmarkState {
+        @Param({"1", "2", "4", "8", "16", "32"})
+        int consumers;
 
         CamelContext context;
         ProducerTemplate producerTemplate;
@@ -66,7 +69,7 @@ public class DisruptorProducerTest {
             context.addRoutes(new RouteBuilder() {
                 @Override
                 public void configure() {
-                    fromF("disruptor:test").to("log:?level=OFF");
+                    fromF("disruptor:test?concurrentConsumers=%s", consumers).to("log:?level=OFF");
 
                 }
             });


[camel-performance-tests] 02/03: (chores) performance: added missing dependency for disruptor tests

Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-performance-tests.git

commit ec1da5d453192f6c09a842963544d4ae6e968b2a
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu May 4 07:48:25 2023 +0200

    (chores) performance: added missing dependency for disruptor tests
---
 tests/camel-jmh/pom.xml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/camel-jmh/pom.xml b/tests/camel-jmh/pom.xml
index 6f51554..10e025c 100644
--- a/tests/camel-jmh/pom.xml
+++ b/tests/camel-jmh/pom.xml
@@ -67,6 +67,11 @@
             <artifactId>camel-joor</artifactId>
             <scope>test</scope>
         </dependency>
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-disruptor</artifactId>
+            <scope>test</scope>
+        </dependency>
         <dependency>
             <groupId>org.junit.jupiter</groupId>
             <artifactId>junit-jupiter-api</artifactId>


[camel-performance-tests] 03/03: (chores) performance: increase the test timeout, since more tests are running

Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-performance-tests.git

commit 53f7a6bac6483635499c2093b4b7610917d498c5
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Sun May 7 07:36:41 2023 +0200

    (chores) performance: increase the test timeout, since more tests are running
---
 tests/camel-jmh/pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/camel-jmh/pom.xml b/tests/camel-jmh/pom.xml
index 10e025c..f11a432 100644
--- a/tests/camel-jmh/pom.xml
+++ b/tests/camel-jmh/pom.xml
@@ -120,7 +120,7 @@
                         <artifactId>maven-surefire-plugin</artifactId>
                         <version>${maven-surefire-plugin-version}</version>
                         <configuration>
-                            <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
+                            <forkedProcessTimeoutInSeconds>0</forkedProcessTimeoutInSeconds>
                             <includes>
                                 <include>**/*Test.java</include>
                             </includes>