You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by df...@apache.org on 2021/04/20 18:31:44 UTC

[camel-performance-tests] 16/16: Update profile test

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

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

commit be76098cc1aa60ded972f836525b202bbfee79a1
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sat Mar 13 10:38:22 2021 +0100

    Update profile test
---
 .../main/java/org/apache/camel/example/MyRouteBuilder.java  | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/profiling/timer-http/src/main/java/org/apache/camel/example/MyRouteBuilder.java b/profiling/timer-http/src/main/java/org/apache/camel/example/MyRouteBuilder.java
index e08606c..b5b7cb5 100644
--- a/profiling/timer-http/src/main/java/org/apache/camel/example/MyRouteBuilder.java
+++ b/profiling/timer-http/src/main/java/org/apache/camel/example/MyRouteBuilder.java
@@ -26,6 +26,17 @@ public class MyRouteBuilder extends RouteBuilder {
             // we can include a request body
             .setBody(constant("Hi from Camel"))
             .to("http://localhost:5678/")
-            .to("log:out?level=OFF");
+            // the bigger the route the more object allocations
+            // so lets test with 10 more steps
+            .to("log:out0?level=OFF")
+            .to("log:out1?level=OFF")
+            .to("log:out2?level=OFF")
+            .to("log:out3?level=OFF")
+            .to("log:out4?level=OFF")
+            .to("log:out5?level=OFF")
+            .to("log:out6?level=OFF")
+            .to("log:out7?level=OFF")
+            .to("log:out8?level=OFF")
+            .to("log:out9?level=OFF");
     }
 }