Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 42A22200CC7 for ; Sun, 16 Jul 2017 14:14:45 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 410671645DB; Sun, 16 Jul 2017 12:14:45 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 85D5E1645DA for ; Sun, 16 Jul 2017 14:14:44 +0200 (CEST) Received: (qmail 48326 invoked by uid 500); 16 Jul 2017 12:14:43 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 48314 invoked by uid 99); 16 Jul 2017 12:14:43 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Jul 2017 12:14:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id CA5CFC0D09 for ; Sun, 16 Jul 2017 12:14:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.2 X-Spam-Level: * X-Spam-Status: No, score=1.2 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id DU7GCta_s-6W for ; Sun, 16 Jul 2017 12:14:32 +0000 (UTC) Received: from mail-qt0-f176.google.com (mail-qt0-f176.google.com [209.85.216.176]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 07C805F24E for ; Sun, 16 Jul 2017 12:14:32 +0000 (UTC) Received: by mail-qt0-f176.google.com with SMTP id 32so89637703qtv.1 for ; Sun, 16 Jul 2017 05:14:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=YSluPumS2J4qSOcn+FlF3NdN0HjVS6dK03gZgsYMAs0=; b=SIJEFE2u0na5QQTyuEeieyZ6LJmM1gceZZimJ9n6pJSO+AI1RX4+DI555VCfS/Kkx4 mDQWTATzJbr3IFBYUqbPRgIH5iH5ZUeGU0alajCuIK/Ezdb6EQYTIkHiCo1MzJNqoLfO FTMd00nfY8en45JamkltOXj5WLjzNh9og6oGhNDWG27NDaM77KIZXyc/v/gtz7DI7/N4 UgEIuKLMfGCFjihbufv3j2VIJ3fA3g6AQovCLPfP158jaTlM3k70vtnOy9hZIh2CAJOq drODTiH2pcEHQ5Xck48aJXpRVrFqJV0J7kFgjYRyhpi/if+JlbL9eUUNsugvZTjRZ/6z aP9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=YSluPumS2J4qSOcn+FlF3NdN0HjVS6dK03gZgsYMAs0=; b=IHVmM53voLG/RmSdfcRGTqanVGOtmH7E1GSuOFxpsOGD3Mja386lybnHaxax1bOD1n Es6++cBSReUdxL4IWfjEuzNa3uni0hQ0REGsnHupcFoctyNIe4g9VpV6phwknLwmlTkZ w7YoqOuZOdbFCufHnKX5Bd+QsEfdLIK7/kM+C/lgsl88/4lEg4K4z3fe7HMmKPqNoRTJ QkNqQhNmSPK8a0iIXqG0X5Ybjx+b1mZWXxTcLNu1tNWySFe6kkHIgwGLZZvyHmb+YliS jnkWpBc0j5tq6C9lDOlbu6cvFvEwfjV3CovjqTPSE+Og05gJmqDhIsBS35HVXaCo/Bgj Zc4Q== X-Gm-Message-State: AIVw111hreXtR74GM72QsVopU1dvbRkFo/5mbDswxgc7wf7tkO6vTAl/ O13s06xrFM6FmfhJVTN7NxU1/NL+BawHWcI= X-Received: by 10.200.50.145 with SMTP id z17mr21236451qta.114.1500207270930; Sun, 16 Jul 2017 05:14:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.3.228 with HTTP; Sun, 16 Jul 2017 05:14:10 -0700 (PDT) In-Reply-To: References: From: Claus Ibsen Date: Sun, 16 Jul 2017 14:14:10 +0200 Message-ID: Subject: Re: Speeding up our unit tests in camel source code To: dev Content-Type: text/plain; charset="UTF-8" archived-at: Sun, 16 Jul 2017 12:14:45 -0000 Hi And now its below 10 minutes on my laptop. [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 09:47 min On Sat, Jul 15, 2017 at 4:55 PM, Claus Ibsen wrote: > On Sun, Jul 9, 2017 at 7:00 PM, Claus Ibsen wrote: >> On Sun, Jul 9, 2017 at 1:06 PM, Claus Ibsen wrote: >>> Hi >>> >>> Btw before I got started on this, the testing time for camel-core on >>> my laptop was around 27 minutes. >>> Now its down to around 18 minutes. >>> >> >> And now its down to 13.5 minutes. So that is 100% faster than before ;) >> > > And I cut 2 minutes down, so its 11.5 minutes on my laptop now. > > >> >>> On Sun, Jul 9, 2017 at 11:01 AM, Claus Ibsen wrote: >>>> Hi >>>> >>>> I have been working on speeding up our unit tests in camel-core. With >>>> the help of awaitility and reducing thread sleeping and other means to >>>> speedup the tests. For example the unit tests that consume from a file >>>> endpoint could be speeded up by setting the delay to be quicker >>>> instead of the default 1 sec initial delay etc >>>> https://issues.apache.org/jira/projects/CAMEL/issues/CAMEL-11446 >>>> >>>> >>>> I found with the help of the internet and with my limited awk/sed >>>> skills hacked together this script to find the slow test classes >>>> >>>> grep -h ">>> awk '{print $5"\t\t"$4}' | sort >>>> >>>> >>>> >>>> >>>> -- >>>> Claus Ibsen >>>> ----------------- >>>> http://davsclaus.com @davsclaus >>>> Camel in Action 2: https://www.manning.com/ibsen2 >>> >>> >>> >>> -- >>> Claus Ibsen >>> ----------------- >>> http://davsclaus.com @davsclaus >>> Camel in Action 2: https://www.manning.com/ibsen2 >> >> >> >> -- >> Claus Ibsen >> ----------------- >> http://davsclaus.com @davsclaus >> Camel in Action 2: https://www.manning.com/ibsen2 > > > > -- > Claus Ibsen > ----------------- > http://davsclaus.com @davsclaus > Camel in Action 2: https://www.manning.com/ibsen2 -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2