From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34809: 27.0.50; Too small number of samples in (benchmark-run-compiled =?UTF-8?Q?=E2=80=A6?=) Date: Mon, 11 Mar 2019 20:20:33 +0200 Message-ID: <83r2bd46j2.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="20417"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34809@debbugs.gnu.org To: Konstantin Kharlamov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 11 19:23:51 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h3PaU-00054Q-EU for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Mar 2019 19:23:46 +0100 Original-Received: from localhost ([127.0.0.1]:38234 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3PaT-0000T5-CS for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Mar 2019 14:23:45 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3PXr-0007QG-GM for bug-gnu-emacs@gnu.org; Mon, 11 Mar 2019 14:21:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3PXq-0007WX-Ai for bug-gnu-emacs@gnu.org; Mon, 11 Mar 2019 14:21:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54176) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h3PXq-0007WI-2k for bug-gnu-emacs@gnu.org; Mon, 11 Mar 2019 14:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h3PXp-0007Ls-OR for bug-gnu-emacs@gnu.org; Mon, 11 Mar 2019 14:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Mar 2019 18:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34809 X-GNU-PR-Package: emacs Original-Received: via spool by 34809-submit@debbugs.gnu.org id=B34809.155232844928234 (code B ref 34809); Mon, 11 Mar 2019 18:21:01 +0000 Original-Received: (at 34809) by debbugs.gnu.org; 11 Mar 2019 18:20:49 +0000 Original-Received: from localhost ([127.0.0.1]:39487 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h3PXd-0007LJ-76 for submit@debbugs.gnu.org; Mon, 11 Mar 2019 14:20:49 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h3PXa-0007L2-Vx for 34809@debbugs.gnu.org; Mon, 11 Mar 2019 14:20:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3PXV-0007Iv-3b; Mon, 11 Mar 2019 14:20:41 -0400 Original-Received: from [176.228.60.248] (port=1156 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h3PXU-0006KW-He; Mon, 11 Mar 2019 14:20:40 -0400 In-reply-to: (message from Konstantin Kharlamov on Mon, 11 Mar 2019 00:19:45 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:156244 Archived-At: > From: Konstantin Kharlamov > Date: Mon, 11 Mar 2019 00:19:45 +0300 > > Result of (benchmark-run-compiled …) has suspiciously unevenly > distributed numbers. E.g. it might give all 100% to garbage collector, > as if no other code was ran. This was found as part of thread about slow > lexical-binding, and I was asked to report it.¹ > > 1: http://lists.gnu.org/archive/html/help-gnu-emacs/2019-03/msg00056.html > > # Steps to reproduce (in terms of terminal commands): > 1. wget > https://gitlab.freedesktop.org/libinput/libinput/raw/9a2d6f55b1276da11dd9b2c4c8e22a405576dfea/src/libinput.h > 2. emacs -Q --eval "(progn (find-file \"./libinput.h\") > (profiler-start 'cpu) (benchmark-run-compiled 10 > (c-font-lock-fontify-region 0 (point-max))) (profiler-report))" > > ## Expected: > Some of percentages should be inside cc-mode code. > > ## Actual: > - ... 1 100% > Automatic GC 1 100% Not reproducible on my system (I get a reasonable profile, with over 100 lines, which points to font-lock-fontify-keywords-region and c-find-decl-spots as two likely bottlenecks). So I think Glenn is right, and this has something to do with your kernel.