From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 611D0166F31 for ; Tue, 17 Sep 2024 12:52:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726577525; cv=none; b=Xx9BzJLl4lnrPluU1V7STVb9hSNIu/6OMY716GO2V4gMVrFJ4BhoEGQ1ZSeA6+bOA6ghudjC2Jrio69+bK4ii10qPMIDPlUy/lDhCqCooVZmGzgYUANIZu+ZGAXkEXDD8Fgo5ZFovDoZoQowms2hF+/Bm6+wz6arI4+H9UQaU6Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726577525; c=relaxed/simple; bh=nJllQ4tX0SOCR56ivDN3K2KFwOTmC1QN33BauiuW7fc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=gzoHjgyUm6ZwwpAm4Qgy4M1LfkFI6O8VkhD3eWpAULiPpFbh3WO3YqZ18MYEa+uRsX/Eq9l1R5M2TPeyw/ttTMbH+NPpe8Ga8AKreops8jksCELUHb2uHVQ0LY/F1jF9kownTucHDrqi4qe9mg0pYvsd66vB9ndhwR/Opqwp3oM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=NVXF++nz; arc=none smtp.client-ip=209.85.128.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="NVXF++nz" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-42cc43454d5so35996015e9.3 for ; Tue, 17 Sep 2024 05:52:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726577522; x=1727182322; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=o/DZmH3IPBvAUKzxMH+BXXhEULk3ZVQ5NNcmdHz+ZOE=; b=NVXF++nzlfFEQmSjfua14yhd5YPu+9Po+Tiv9sm4wok+YlDrHLarIKmNP2pA24zA2p j5XMhl+rWTw8diA2smXSZSPhANwNUUqDLE5Xq+9oiUfwUWtOukgEa+RjAjj48cSokak6 RV8Vmncoh42v2cdKpZIJGSq/lf04VsiCmH2xyoh4EHDPRwz1J4uFsw/nAjLRoUtSTtQa N6xiCChyQb6PVmO0BvRDEKg+i/LGXDsinwq1mGuC+nj6cwFdoZWz/GpeYUJ2tFNfPh6u M8CqsDxgGY94K9n75SBotRyrQtFBisgtfmCU0Qev7f9N6J1LMdhumhOU4BKxKAQJH0Rx 5ouQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726577522; x=1727182322; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=o/DZmH3IPBvAUKzxMH+BXXhEULk3ZVQ5NNcmdHz+ZOE=; b=Z7oEOxjGfCXQ/y3v8tPzhT7UglDnj3gdFrja4ovuiHTy2lMeEW2QI/vwwVaCyxEhD2 KVdWQNw+oBZZ9KkSIZ49kCMgw5oqwQ+pqh/Q3lysevQlukQ73j9LAkLwRvFnUr8STwxG RDGsNfjBtnDWiJM+ErlkfQviIJYWMZcWTGhNvcYHuQMpfXv72nioE4MFwlwuTzxFuWAk elVoXMKkYQ2DLBhph2wYb9enWe0FyKiqeBD70bWsV8jS3IWC7ha1DvFLb+Iu4IYLDmD4 4GkuRI9Q41w+bRKWlyO7UScNvJozGnm53SEGdyGDl3CSv76f0pclgO5F45G91SzryRNF tigg== X-Forwarded-Encrypted: i=1; AJvYcCXQAiCIDgArfCnmPjm1GotkSXe1bNeySZsXJdAb+A5VDHmzW3F92TDlaWC/B1ubDdrr80jIGwjr+slDBSo=@vger.kernel.org X-Gm-Message-State: AOJu0YwtE2TiZkx5IwoAx8qzpKv/yB5sTUPLUTMVrMy67PQZxD//koHi eSHXTk3oxppTkfPFkLLQTxwKei13oiwkVlDfA5r7f0lJF0pCMg35SkyzM0cVJv0= X-Google-Smtp-Source: AGHT+IHWVSho5aDiuekmvAxEtTVVK/xmx+SkdvXja8ZathtyF183fmohBM4nKX1aBpODkab86s5vkA== X-Received: by 2002:a05:600c:1988:b0:428:10ec:e5ca with SMTP id 5b1f17b1804b1-42d9081bb2emr101759715e9.14.1726577521584; Tue, 17 Sep 2024 05:52:01 -0700 (PDT) Received: from [192.168.1.61] ([84.67.228.188]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42e6c71c72fsm9586375e9.1.2024.09.17.05.52.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Sep 2024 05:52:00 -0700 (PDT) Message-ID: <59c2cbb8-b24d-429f-b4fc-6a2560ce4e09@linaro.org> Date: Tue, 17 Sep 2024 13:52:21 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] perf/test: Speed up test case perf annotate basic tests To: Thomas Richter , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, acme@kernel.org, namhyung@kernel.org Cc: agordeev@linux.ibm.com, gor@linux.ibm.com, sumanthk@linux.ibm.com, hca@linux.ibm.com References: <20240917085706.249691-1-tmricht@linux.ibm.com> Content-Language: en-US From: James Clark In-Reply-To: <20240917085706.249691-1-tmricht@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 17/09/2024 09:57, Thomas Richter wrote: > perf test 70 takes a long time. One culprit is the output of command > perf annotate. Per default enabled are > - demangle symbol names > - interleave source code with assembly code. > Disable demangle of symbols and abort the annotation > after the first 250 lines. > > This speeds up the test case considerable, for example > on s390: > > Output before: > # time perf test 70 > 70: perf annotate basic tests : Ok > ..... > real 2m7.467s > user 1m26.869s > sys 0m34.086s > # > > Output after: > # time perf test 70 > 70: perf annotate basic tests : Ok > > real 0m3.341s > user 0m1.606s > sys 0m0.362s > # > Interesting that there is such a big difference, I only measured 4s vs 14s without the patch. Either way it's slightly faster now: Reviewed-by: James Clark