Hi all,
Following the recent discussion about compilation times, I ran a few
tests on three systems/machines, ranging from a 2013 iMac to a Ryzen
desktop and an M1 Pro MacBook.
The systems were:
*
Ubuntu desktop: AMD Ryzen 5 5600, 6 cores / 12 threads, 32 GB RAM;
Ubuntu 26.04.1 LTS, kernel 7.0.0-42, native x86_64, ext4. The
desktop’s assembly date was not recorded.
*
iMac 21.5-inch, Late 2013: Intel Core i5-4570R at 2.70 GHz, 4 cores
/ 4 threads, 8 GiB RAM; macOS 10.15.8, native x86_64. Both the
system and working files are on an external SanDisk 500 GB USB SSD,
APFS.
*
MacBook Pro 16-inch, 2021: Apple M1 Pro, 10 CPU cores, 32 GiB RAM;
macOS 26.7.1, native ARM64 without Rosetta, internal 1 TB SSD, APFS.
Common conditions: separate ConTeXt installations and caches,
regenerated file databases and formats, and preparation compilations
excluded from the statistics. Timings are elapsed wall-clock times for
the complete command, with output redirected to files and no imposed
pass limit. These are warm-cache tests, not cold-start measurements.
Sleep was inhibited during the retained Ryzen manual series; the MacBook
was on AC power with low-power mode disabled.
The exact releases were 2026.10.01 18:42, 2026.10.29 17:34 and
2026.10.31 00:52. All report LuaMetaTeX 2.11.10, with functionality
levels 20260923 or 20261029. Linux binaries were GCC builds; Mac
binaries were Clang builds.
1.
Ryzen: LuaMetaTeX manual
For Oct 1 / Oct 29, the median complete-command times were:
--batchmode: 9.32 / 9.02 s
--batchmode --silent: 9.23 / 9.02 s
--batchmode --noconsole: 9.30 / 9.03 s
--batchmode --profile --noconsole: 69.40 / 67.63 s
There were five measurements per ordinary mode and three per profiling
mode, alternating releases and rotating the ordinary options. Profiling
multiplied elapsed time by approximately 7.45 / 7.50; silent and
noconsole alone made little difference to the timings.
Each release used its own manual sources: 754 pages for Oct 1, 762 for
Oct 29. These columns therefore compare command options within each
release, not release-to-release engine speed. Both manuals retained one
unknown reference. An earlier run interrupted by system suspend was
archived separately, and the ordinary series was repeated with sleep
inhibited.
2.
Intel iMac: 921-page editorial document
This synthetic French document uses Libertinus, footnotes,
cross-references, bibliography and index. Ten successive measurements
per release gave:
Oct 1: 10.97 s
Oct 31: 10.01 s
That is 8.75% less elapsed time. These Intel series were successive
rather than alternating.
3.
MacBook Pro M1 Pro: the identical editorial document
Ten alternating pairs, reversing the release order every other pair, gave:
Oct 1: 4.32 s
Oct 31: 4.72 s
Oct 31 was slower in every pair: 9.26% more elapsed time. All measured
runs on both Macs produced 921 pages from the identical source.
For an additional, smaller comparison, earlier ten-run medians on an
identical 200-page Latin Modern document were:
ConTeXt | Ryzen 5 5600 | M1 Pro
Oct 1 1.196 s 1.050 s
Oct 29 1.223 s 1.125 s
This older cross-machine comparison is indicative: its Mac command/cache
record is incomplete. I have no Ryzen measurement of the 921-page
editorial document, so these results do not provide a three-machine ranking.
The profiler is certainly the heavyweight of this little exercise! The
smaller differences between releases concern complete distributions,
including macros and resources, rather than the engine alone.
The procedures, detailed test methods, sources, logs and comparative
diagrams are available by private email to anyone interested.
Best,
Jean-Pierre
Le 30/10/2026 à 20:31, Jean-Pierre Delange via ntg-context a écrit :
Sorry for the noise ! This message is the same than the forme (19:56)
... Apparently, |--silent|doesn’t work on my mail client either !
Le 30/10/2026 à 20:22, Jean-Pierre Delange via ntg-context a écrit :
Hi all,
Following Keith’s and Hraban’s reports, I tested how the command-line
options affect compilation time for the LuaMetaTeX manual.
Hardware/software: AMD Ryzen 5 5600 (6 cores, 12 threads), 31 GiB
usable RAM, Ubuntu 26.04.1 LTS, ext4; ConTeXt LMTX 2026.10.01 18:42
and 2026.10.29 17:34, both using LuaMetaTeX 2.11.10 (GCC builds).
Method: one unmeasured preparation compilation per version to
populate caches and stabilize references, followed by three runs per
ordinary command. Each profiling command was run once because of its
substantial overhead. Times below are elapsed wall-clock seconds for
the complete command, measured from Python; stdout/stderr were
redirected to files. No pass limit was imposed.
| Command |vers. Oct 1 |Vers. Oct 29 |
|---|---:|---:|
| `context luametatex` | 9.51 | 9.02 |
| `context --silent luametatex` | 9.58 | 9.10 |
| `context --noconsole luametatex` | 9.40 | 9.21 |
| `context --profile --noconsole luametatex` | 70.85
| 68.85 |
| `context --autopdf --profile --noconsole luametatex` | 71.01 | 68.03 |
The first three rows are medians. Each installation used its own
manual sources: 754 pages for Oct 1, 762 for Oct 29. The Oct 1
sources failed under Oct 29 (`moduledata.repertoire` was nil), so
these results compare options within each version, not engine speed
between versions.
Profiling increased elapsed time by about 7.5 times. This is an
important difference between Keith’s and Hraban’s commands. Without
profiling, `--silent` and `--noconsole` greatly reduced output, with
similar timings. With `--profile --noconsole`, output became verbose
again, reproducing Hraban’s observation here.
Repeated tree-cache compilation messages were not observed, including
with `context --help` after preparation. `--autopdf` requested an
asynchronous viewer launch; successful PDF display was not verified,
so its full startup cost is not measured.
These are exploratory measurements on one machine, not a hardware
comparison with the reported Mac results.
Best,
JP
Le 30/10/2026 à 15:50, Henning Hraban Ramm a écrit :
Am 30.10.26 um 12:51 schrieb Keith McKay:
An arm mac is of coure faster than your intel, Keiths old M1 is
about 1.2 times faster than my old xeon 1505m laptop. Can you test
a modren mac?
Hans! You've upset my "old M1" mac mini. It ran the LuaMetaTeX
manual with context --silent luametatex in the terminal. The log
file says 7.9 seconds runtime, see the attached log. It's calmed
down a bit now and is a wee bit happier since your "old Xenon" took
15 seconds. ;-)
I have a late 2012 mac mini, which my mac mini M1 replaced,
languishing in a cupboard somewhere. I might just resurrect it and
try running linux from an external ssd with it. Something to ponder
over as we leave autumn for those dark winter nights.
Well, I’m still working on a 2013 Mac mini (Intel) under MacOS 13.7
(Ventura).
context --autopdf --profile --noconsole luametatex
- gives looots of font cache messages like
system | lua | compiling
'/Users/hraban/context_2026-10-01/tex/texmf-cache/luametatex-cache/context/c821363a6b068765c2a3bbfe3917fcf5/trees/71c82419867f9a0df8a150196c03c86f.lua'
into
'/Users/hraban/context_2026-10-01/tex/texmf-cache/luametatex-cache/context/c821363a6b068765c2a3bbfe3917fcf5/trees/71c82419867f9a0df8a150196c03c86f.lud'
(even a simple "context --help" prints 14 lines of that)
- prints a lot to the console, i.e. --noconsole doesn’t seem to work
- needs 3 min after several minutes of font caching business:
runtime: 177.991 seconds, 762 processed pages, 762 shipped pages,
4.281 pages/second
- Slow Apple Terminal minimized, running MacPorts bash (don’t know
if that matters)
Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an
entry to the Wiki!
maillist : [email protected] /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net
(mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
___________________________________________________________________________________
If your question is of interest to others as well, please add an
entry to the Wiki!
maillist : [email protected] /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net
(mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist :[email protected]
/https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage :https://www.pragma-ade.nl /https://context.aanhet.net (mirror)
archive :https://github.com/contextgarden/context
wiki :https://wiki.contextgarden.net
___________________________________________________________________________________
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________