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 E4B70200CC0 for ; Sun, 9 Jul 2017 13:07:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E31C016B758; Sun, 9 Jul 2017 11:07:00 +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 3561916B754 for ; Sun, 9 Jul 2017 13:07:00 +0200 (CEST) Received: (qmail 92328 invoked by uid 500); 9 Jul 2017 11:06:59 -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 92310 invoked by uid 99); 9 Jul 2017 11:06:59 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Jul 2017 11:06:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 77F1E1A00BC for ; Sun, 9 Jul 2017 11:06:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.379 X-Spam-Level: X-Spam-Status: No, score=0.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-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 (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 2H6vGsyrtf-3 for ; Sun, 9 Jul 2017 11:06:55 +0000 (UTC) Received: from mail-qt0-f169.google.com (mail-qt0-f169.google.com [209.85.216.169]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 581AB5F60D for ; Sun, 9 Jul 2017 11:06:54 +0000 (UTC) Received: by mail-qt0-f169.google.com with SMTP id r30so54787949qtc.0 for ; Sun, 09 Jul 2017 04:06:54 -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=E6/ORgVakbWmGAJW3SrEDeTre9erPhCN1Dacwa0hu6E=; b=h3bfmjJgHSpN6zmqfWD3E12iIrvcXJaDu9IEOzZu5jxs0QtUDW7yGlYbZ54keJ72dL gH9CcRsIEitHMX+BhNOr6/WbB1YQ2qgvYldXEIaLrQBYObmtDn+Wu0KQufXvOAftJjLQ 659zelTgTaU+37WNVaLET9oGdUAUJdDqhwPj1O9qAhy2AjqcA3u7FMvrQuz94RyEFEGA jCwli2qvKrBHLc9W+oFR5ijVvnb9P9ZtA3eXdWy8kfvq5E0AFUyswAb5nN08E/WCByPs rL0uwT4/4EjV/ih44DsfQSp6sitxcvQunXUqEF77v18WiJA+CG4yi+bzFlkAHQLSpZ2W qP0Q== 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=E6/ORgVakbWmGAJW3SrEDeTre9erPhCN1Dacwa0hu6E=; b=Mv/BM1w5v4kP/MKhb5+ehEl/J7zCXIZ2W3z/pp2I4/t1UVFjZlkPRkJYh/eW0XBFXa 4br63TGcl0gx5b0skb0WQecm60Tl3rrSYWwTqVv2ckHduF1U5C1aczb/05+DvqEVqzvm 4c1on5bhsGhxpeEcnLEWPV/96MLje8fBzLxE2Pusu4GlmbhFZpHyuaCh1MjcdX3ES5aO NGJlKpwO9lD6vAkx+GjtjrLhaC679gNl5JgSROutGMgbE3ppKTBh0zT7heIyX2mq4MeF uHDspPZ4aeA+xixAhw/2nrzh7C+ThjqWiymbEdYMJWDnoiP6SWWo/F27O4S/dy91NhTQ 3CjA== X-Gm-Message-State: AKS2vOy/YzvmvWZ8ebPOKXDt8wHsZaC+sfja2Zx5GFqntV/fjWeAFMNG P4nkpihU/MNUSzx7KajUC6/f2YSiyJL/ X-Received: by 10.200.8.29 with SMTP id u29mr79262020qth.233.1499598413317; Sun, 09 Jul 2017 04:06:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.63.197 with HTTP; Sun, 9 Jul 2017 04:06:32 -0700 (PDT) In-Reply-To: References: From: Claus Ibsen Date: Sun, 9 Jul 2017 13:06:32 +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, 09 Jul 2017 11:07:01 -0000 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. 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