With each new release of Emacs and Org-mode, Org-noter runs slower and slower. The scripts here are meant to facilitate repeatable speed tests of Org-noter while keeping track of the Emacs and Org versions.
The get-repos bash script clones the necessary repositories at commits that
will give a reasonable result.
The speed-test bash script sets up a clean Emacs session that is ready to
run the timing test embedded as `org-babel` code in the first `org-noter`
entry of Moby Dick in `org-noter/tests/Notes.org`.
Run this once – it will clone the repos and check out v1.1.0 of Pdf-tools and release 9.4.6 of Org-mode.
./get-reposTo test a different version of Emacs that is installed on your system, link
your emacs executable to the proper version. The default location is
/usr/local/bin/emacs, which is a symlink to an installed version.
Check out the version of Org mode that you with to test.
Then run:
./speed-testspeed-test- clean and recompile
pdf-tools - clean and recompile
org-mode - start emacs with
speed-test.elas the init file.
- clean and recompile
speed-test.el- load
pdf-tools,org-modeandorg-noterfrom the repos - define the timing macro used in the Moby Dick notes
- add a hook to
kill-emacsto delete thepdf-toolsloaded in step 1 - start a noter session with Moby Dick.
- load
- Type
C-c C-cto execute the code (this works from either the document or the notes buffer). - The time and version info will be reported under
#+RESULTS:in theNotes.orgbuffer, and the profiler report will be written to theresultssubdirectory to this repo with a filename of the formspeed-test-Emacs<version>-Org<version>-<elapsed-time>