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 00:19:45 +0300 Message-ID: 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="57776"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 To: 34809@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 10 22:39:04 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 1h369v-000Eth-RN for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Mar 2019 22:39:04 +0100 Original-Received: from localhost ([127.0.0.1]:51495 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h369u-0000wi-Og for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Mar 2019 17:39:02 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h367o-0007zB-4Y for bug-gnu-emacs@gnu.org; Sun, 10 Mar 2019 17:36:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h35sV-000829-5p for bug-gnu-emacs@gnu.org; Sun, 10 Mar 2019 17:21:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53148) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h35sU-00081i-VR for bug-gnu-emacs@gnu.org; Sun, 10 Mar 2019 17:21:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h35sU-0004y1-Ge for bug-gnu-emacs@gnu.org; Sun, 10 Mar 2019 17:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Mar 2019 21:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34809 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.155225281519013 (code B ref -1); Sun, 10 Mar 2019 21:21:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Mar 2019 21:20:15 +0000 Original-Received: from localhost ([127.0.0.1]:38459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h35re-0004wS-RE for submit@debbugs.gnu.org; Sun, 10 Mar 2019 17:20:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33835) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h35ra-0004vu-TW for submit@debbugs.gnu.org; Sun, 10 Mar 2019 17:20:08 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:35426) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h35rV-0007K7-IO for submit@debbugs.gnu.org; Sun, 10 Mar 2019 17:20:01 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h35rT-0004xM-GB for bug-gnu-emacs@gnu.org; Sun, 10 Mar 2019 17:20:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h35rR-0007I3-PV for bug-gnu-emacs@gnu.org; Sun, 10 Mar 2019 17:19:59 -0400 Original-Received: from forward103p.mail.yandex.net ([77.88.28.106]:38418) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h35rR-0007Ew-3T for bug-gnu-emacs@gnu.org; Sun, 10 Mar 2019 17:19:57 -0400 Original-Received: from mxback11o.mail.yandex.net (mxback11o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::62]) by forward103p.mail.yandex.net (Yandex) with ESMTP id 35F7618C1769 for ; Mon, 11 Mar 2019 00:19:52 +0300 (MSK) Original-Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [2a02:6b8:0:1619::15:6]) by mxback11o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id Db9DmXwm09-JqfKf7rk; Mon, 11 Mar 2019 00:19:52 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1552252792; bh=zfxoCSZ45kawUxnFXj5H27SSAyZ82Mm+JdRKowOe7GM=; h=From:Subject:To:Date:Message-ID; b=vARFVhtSQEgYt/XCMYVODnX4hseJOnQrw5fwONGyEPyqwUNveqj3Oldz6l6/LxVBi tp8/7xtKU/d1tYDWtfa+bmKD8KGrAT8GtpP65PhjvJTW9b22d87+S+D+whTI6nspIK kBtzTB2jroTx2bmADHwqmRmqFhtC7bVArOxu96Y4= Authentication-Results: mxback11o.mail.yandex.net; dkim=pass header.i=@yandex.ru Original-Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id JgGUz3EH0Z-JpOGck4w; Mon, 11 Mar 2019 00:19:51 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) Content-Language: ru-RU X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:156222 Archived-At: Result of (benchmark-run-compiled =E2=80=A6) 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.=C2=B9 1: http://lists.gnu.org/archive/html/help-gnu-emacs/2019-03/msg00056.html # Steps to reproduce (in terms of terminal commands): 1. wget=20 https://gitlab.freedesktop.org/libinput/libinput/raw/9a2d6f55b1276da11dd9= b2c4c8e22a405576dfea/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% --------------- In GNU Emacs 27.0.50 (build 7, x86_64-pc-linux-gnu, GTK+ Version 3.24.3) of 2019-02-18 built on constantine-N61Ja Repository revision: e6f8ddbb3b8f99c73b2be66bb1e691d4757c3b12 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.1200300= 0 System Description: Arch Linux Recent messages: Wrote /tmp/test.sh Quit Mark saved where search started [2 times] Quit [2 times] Mark saved where search started [6 times] Saving file /home/constantine/Projects/geary/meson.build... Wrote /home/constantine/Projects/geary/meson.build Saving file /home/constantine/Projects/geary/meson.build... Wrote /home/constantine/Projects/geary/meson.build Unable to load color "" [4 times] Configured using: 'configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib --localstatedir=3D/var --mandir=3D/usr/share/man --with-gameuser=3D:gam= es --with-sound=3Dalsa --with-xft --with-modules --enable-link-time-optimization --with-x-toolkit=3Dgtk3 --without-gconf --without-gsettings --without-gpm --without-m17n-flt --with-xwidgets --without-compress-install 'CFLAGS=3D-march=3Dnative -O3 -pipe -fno-stack-protector -fweb -fno-semantic-interposition -fmerge-all-constants -floop-nest-optimize -ftree-vectorize' LDFLAGS=3D-Wl,-O3,--sort-common,--as-needed,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LC_TIME: ru_RU.UTF-8 value of $LANG: ru_RU.UTF-8 value of $XMODIFIERS: @im=3Dnone locale-coding-system: utf-8-unix Major mode: Meson Minor modes in effect: diff-auto-refine-mode: t delete-selection-mode: t highlight-numbers-mode: t global-color-identifiers-mode: t winum-mode: t global-highlight-symbol-mode: t highlight-symbol-mode: t global-highlight-parentheses-mode: t highlight-parentheses-mode: t smartparens-global-mode: t smartparens-mode: t yas-global-mode: t yas-minor-mode: t global-company-mode: t company-mode: t global-semanticdb-minor-mode: t global-semantic-idle-scheduler-mode: t semantic-mode: t global-evil-surround-mode: t evil-surround-mode: t global-undo-tree-mode: t undo-tree-mode: t shell-dirtrack-mode: t evil-mode: t evil-local-mode: t show-paren-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /home/constantine/.emacs.d/lisp/idomenu hides=20 /home/constantine/.emacs.d/elpa/idomenu-20141123.1320/idomenu /home/constantine/.emacs.d/lisp/auto-complete-config hides=20 /home/constantine/.emacs.d/elpa/auto-complete-20170124.1845/auto-complete= -config /home/constantine/.emacs.d/lisp/popup hides=20 /home/constantine/.emacs.d/elpa/popup-20160709.729/popup /home/constantine/.emacs.d/elpa/cmake-mode-20160928.505/cmake-mode hides=20 /usr/share/emacs/site-lisp/cmake-mode Features: (shadow mail-extr emacsbug message rmc puny rfc822 mml mml-sec epa epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils emms-source-file locate emms emms-compat completion dos-w32 find-cmd grep find-dired quail po semantic/ia semantic/senator semantic/bovine/make semantic/decorate/include semantic/bovine/make-by make-mode sort smerge-mode omnisharp omnisharp-server-installation omnisharp-format-actions omnisharp-solution-actions omnisharp-helm-integration helm-grep helm-regexp helm-utils helm-help helm helm-source eieio-compat helm-multi-match helm-lib async omnisharp-settings omnisharp-navigation-actions omnisharp-current-symbol-actions omnisharp-auto-complete-actions omnisharp-server-actions omnisharp-http-utils omnisharp-utils omnisharp-server-management f shut-up s popup dired dired-loaddefs flycheck-haskell haskell-cabal haskell-utils flycheck-irony irony-diagnostics irony irony-iotask csharp-mode vc vc-dispatcher meson-mode sh-script smie executable warnings rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap smartparens-html sgml-mode dom nxml-util nxml-enc xmltok align dabbrev tabify cua-base time-date benchmark debug backtrace semantic/tag-write semantic/analyze/complete semantic/db-typecache semantic/edit profiler semantic/decorate/mode semantic/decorate pulse macrostep-c cmacexp macrostep pp disass cl-print misearch multi-isearch derived cc-langs cc-bytecomp compile vc-git diff-mode eieio-opt speedbar sb-image dframe face-remap semantic/tag-file semantic/bovine/c hideif cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs semantic/bovine/c-by semantic/lex-spp semantic/bovine/gcc semantic/dep semantic/bovine semantic/analyze/refs semantic/db-find semantic/db-ref semantic/analyze semantic/sort semantic/scope semantic/analyze/fcn semantic/db-ebrowse semantic/db-file data-debug cedet-files ebrowse ebuff-menu view help-fns radix-tree company-c-headers delsel highlight-numbers parent-mode color-identifiers-mode smartparens-python python tramp-sh tramp tramp-loaddefs trampver tramp-compat ucs-normalize parse-time format-spec winum smartparens-markdown markdown-mode color noutline outline highlight-symbol easy-mmode cl highlight-parentheses sp-sublimelike smartparens-config smartparens-text smartparens idomenu imenu smex ido emvil yasnippet-snippets yasnippet elec-pair company-oddmuse company-keywords company-etags etags fileloop generator xref project company-gtags company-dabbrev-code company-dabbrev company-files company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-bbdb company pcase semantic/db-mode semantic/db eieio-base semantic/idle semantic/format ezimage semantic/tag-ls semantic/find semantic/ctxt semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet evil-surround evil evil-integration undo-tree diff evil-maps evil-commands flyspell ispell evil-jumps evil-command-window evil-types evil-search evil-ex shell pcomplete comint ansi-color evil-macros evil-repeat evil-states evil-core advice evil-common windmove thingatpt rect evil-digraphs evil-vars ring edmacro kmacro flycheck cl-extra find-func help-mode rx subr-x dash paren xfrp_find_replace_pairs mule-util slime-autoloads info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib cyril-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting font-render-setting xwidget-internal move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 1633368 479628) (symbols 48 39156 1) (strings 32 274763 56100) (string-bytes 1 6430133) (vectors 16 136848) (vector-slots 8 2305379 286688) (floats 8 345 1563) (intervals 56 35311 106) (buffers 992 63))