From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Konstantin Kharlamov 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 21:40:58 +0300 Message-ID: <1552329658.3183.0@yandex.ru> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="153977"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34809@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 11 19:51:54 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 1h3Q1i-000duS-2e for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Mar 2019 19:51:54 +0100 Original-Received: from localhost ([127.0.0.1]:38535 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3Q1g-0004f7-BX for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Mar 2019 14:51:52 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55087) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3PxF-0000oa-6q for bug-gnu-emacs@gnu.org; Mon, 11 Mar 2019 14:47:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3PsA-00040h-8U for bug-gnu-emacs@gnu.org; Mon, 11 Mar 2019 14:42:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54184) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h3PsA-00040c-3I for bug-gnu-emacs@gnu.org; Mon, 11 Mar 2019 14:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h3Ps9-0007s3-Tj for bug-gnu-emacs@gnu.org; Mon, 11 Mar 2019 14:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Mar 2019 18:42: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.155232966930178 (code B ref 34809); Mon, 11 Mar 2019 18:42:01 +0000 Original-Received: (at 34809) by debbugs.gnu.org; 11 Mar 2019 18:41:09 +0000 Original-Received: from localhost ([127.0.0.1]:39492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h3PrJ-0007qf-2z for submit@debbugs.gnu.org; Mon, 11 Mar 2019 14:41:09 -0400 Original-Received: from forward106p.mail.yandex.net ([77.88.28.109]:56909) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h3PrG-0007q4-NR for 34809@debbugs.gnu.org; Mon, 11 Mar 2019 14:41:07 -0400 Original-Received: from mxback19g.mail.yandex.net (mxback19g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:319]) by forward106p.mail.yandex.net (Yandex) with ESMTP id 5F77A1C80688; Mon, 11 Mar 2019 21:41:00 +0300 (MSK) Original-Received: from smtp4p.mail.yandex.net (smtp4p.mail.yandex.net [2a02:6b8:0:1402::15:6]) by mxback19g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id gZ79Ldix00-f0ZujIX9; Mon, 11 Mar 2019 21:41:00 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1552329660; bh=u0gm6Ge/DcT+q6CxO6g4W+SmKoNzmnMpwrVBfq4jCLs=; h=In-Reply-To:Cc:To:Subject:From:References:Date:Message-Id; b=CsSxYXCmK4jYM18hVSfNUvWOsqC3EBZgJ14UY1sbn8RXifp6sk+ikA++qN2zoau4Q MRiej0QV9S76qNv5cNY2FG4tuoTddr43pXs2mmUPCSjYOAWDO0mBUNdHO8nD9/o8o+ YcFv6Vwnc1bJAb1G4OKenxVdPNk6fyU5ziTUi9Js= Authentication-Results: mxback19g.mail.yandex.net; dkim=pass header.i=@yandex.ru Original-Received: by smtp4p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id UFN8jxOTEL-exgaKujb; Mon, 11 Mar 2019 21:40:59 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) In-Reply-To: <83r2bd46j2.fsf@gnu.org> X-Mailer: geary/master~g91967edc 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:156246 Archived-At: Thanks for testing! The bug can be closed since, as I mentioned in=20 prev. mail, updating to kernel 5.0 fixes it. =D0=92 =D0=9F=D0=BD, =D0=BC=D0=B0=D1=80 11, 2019 at 9:20 =D0=9F=D0=9F (PM),= Eli Zaretskii=20 =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB: >> From: Konstantin Kharlamov >> Date: Mon, 11 Mar 2019 00:19:45 +0300 >>=20 >> Result of (benchmark-run-compiled =E2=80=A6) has suspiciously unevenly >> distributed numbers. E.g. it might give all 100% to garbage=20 >> collector, >> as if no other code was ran. This was found as part of thread about=20 >> slow >> lexical-binding, and I was asked to report it.=C2=B9 >>=20 >> 1:=20 >> http://lists.gnu.org/archive/html/help-gnu-emacs/2019-03/msg00056.html >>=20 >> # Steps to reproduce (in terms of terminal commands): >> 1. wget >> =20 >> https://gitlab.freedesktop.org/libinput/libinput/raw/9a2d6f55b1276da11dd= 9b2c4c8e22a405576dfea/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))" >>=20 >> ## Expected: >> Some of percentages should be inside cc-mode code. >>=20 >> ## Actual: >> - ... 1 100% >> Automatic GC 1 100% >=20 > 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). >=20 > So I think Glenn is right, and this has something to do with your > kernel. =