From: Pip Cet via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 75356@debbugs.gnu.org
Subject: bug#75356: impossible to benchmark byte-compiled code in a native-comp build
Date: Sat, 04 Jan 2025 16:35:01 +0000 [thread overview]
Message-ID: <87ldvqfsi4.fsf@protonmail.com> (raw)
elisp-benchmarks.el unconditionally forces use of native compilation
if run on an Emacs which is compiled with native-comp enabled. This
is a minor issue, but it's still important to benchmark this
configuration once in a while.
For example, running
./src/emacs -Q --batch --load elisp-benchmarks/elisp-benchmarks.el --eval '(progn (setq no-native-compile t) (elisp-benchmarks-run))'
produces error messages and an "empty" results table:
| test | non-gc (s) | gc (s) | gcs | total (s) | err (s) |
|-------+------------+--------+-----+-----------+---------|
|-------+------------+--------+-----+-----------+---------|
| total | 0.00 | 0.00 | 0 | 0.00 | 0.00 |
In particular, I believe it is legitimate to use a native-comp build
on a system which no longer supports compiling additional code.
In general, the compilation logic of elisp-benchmarks.el is fragile
and will lead to unreliabe test results, which is the worst possible
outcome for a benchmark (in some cases, we simply fail to produce
data, which is better but still not good).
next reply other threads:[~2025-01-04 16:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-04 16:35 Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2025-01-06 9:24 ` bug#75356: impossible to benchmark byte-compiled code in a native-comp build Andrea Corallo
2025-01-06 14:24 ` Eli Zaretskii
2025-01-06 20:30 ` Andrea Corallo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ldvqfsi4.fsf@protonmail.com \
--to=bug-gnu-emacs@gnu.org \
--cc=75356@debbugs.gnu.org \
--cc=pipcet@protonmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.