You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2021/03/13 09:38:37 UTC

[camel-performance-tests] branch master updated: Update profile test

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

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


The following commit(s) were added to refs/heads/master by this push:
     new be76098  Update profile test
be76098 is described below

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");
     }
 }