From: "Mattias Engdegård" <mattias.engdegard@gmail.com>
To: Thierry Volpiatto <thievol@posteo.net>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: Emacs-30 performances
Date: Sat, 15 Jun 2024 11:33:44 +0200 [thread overview]
Message-ID: <5D08C90E-AE22-4AAA-B00D-F5B4C78727E2@gmail.com> (raw)
In-Reply-To: <875xua93em.fsf@posteo.net>
[-- Attachment #1: Type: text/plain, Size: 933 bytes --]
15 juni 2024 kl. 07.32 skrev Thierry Volpiatto <thievol@posteo.net>:
> My setup is not involved here, you only have to install psession.el and
> run (benchmark-run 1 (psession--dump-object-to-file-save-alist)) after
> adding some variables to psession-object-to-save-alist.
Some variables? Which ones, exactly? And containing what?
To make progress we need a bit more precision. As a starting point I'm attaching the benchmark that I used but it's pure guesswork on my side. It shows a 1.3× speedup between Emacs 29.3 and master, which is nice but not quite your reported 16× improvement. This is with byte-compilation only, no native compilation.
Run it with
emacs -Q -batch -f package-initialise -l psession-bench.elc
If you are unhappy with this benchmark, please propose an amendment that reproduces the effect you observed and that we can run, and which does not depend on your personal Emacs settings.
[-- Attachment #2: psession-bench.el --]
[-- Type: application/octet-stream, Size: 821 bytes --]
;;; -*- lexical-binding: t -*-
(require 'psession)
(defvar my-big-list
(mapcar (lambda (n)
(mapcar (lambda (m)
(let ((s (format "hello-%d-%d" m n)))
(list m n s (intern s))))
(number-sequence 1 100)))
(number-sequence 1 1000)))
(push '(my-big-list . "my-big-list.el")
psession-object-to-save-alist)
(defun bench ()
(garbage-collect)
(let* ((gcs0 gcs-done)
(gc-elapsed0 gc-elapsed)
(t0 (float-time))
(_result (psession--dump-object-to-file-save-alist))
(dt (- (float-time) t0))
(gcs (- gcs-done gcs0))
(gc-time (- gc-elapsed gc-elapsed0)))
(message "%.3f s elapsed, %d GCs, %.3f s in GC, %.3f s non-GC"
dt gcs gc-time (- dt gc-time))))
(bench)
[-- Attachment #3: Type: text/plain, Size: 2 bytes --]
next prev parent reply other threads:[~2024-06-15 9:33 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-02 14:52 Emacs-30 performances Thierry Volpiatto
2024-06-03 11:57 ` Eli Zaretskii
2024-06-03 17:37 ` Thierry Volpiatto
2024-06-03 18:23 ` Mattias Engdegård
2024-06-04 5:23 ` Thierry Volpiatto
2024-06-08 15:30 ` Thierry Volpiatto
2024-06-09 6:41 ` Thierry Volpiatto
2024-06-09 8:19 ` Eli Zaretskii
2024-06-09 9:45 ` Thierry Volpiatto
2024-06-09 11:39 ` Stefan Kangas
2024-06-09 14:07 ` Mattias Engdegård
2024-06-09 17:38 ` Thierry Volpiatto
2024-06-10 5:32 ` Thierry Volpiatto
2024-06-12 17:03 ` Mattias Engdegård
2024-06-15 5:32 ` Thierry Volpiatto
2024-06-15 9:33 ` Mattias Engdegård [this message]
2024-06-21 5:25 ` Thierry Volpiatto
2024-06-21 9:33 ` Mattias Engdegård
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=5D08C90E-AE22-4AAA-B00D-F5B4C78727E2@gmail.com \
--to=mattias.engdegard@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=thievol@posteo.net \
/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.