diff options
| author | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-24 19:52:27 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-24 19:52:27 -0600 |
| commit | c0e48819c3077ccc020deb8b9ffe9de9911ab3d2 (patch) | |
| tree | 2a7e1c8be5409e3aeff75d592729d1eb00348d05 /bench/probes/git@git.abendless.com:/srv/git | |
| parent | 70efa08c0698bac43f0f5a0c5365e696613ac1e6 (diff) | |
| download | zash-c0e48819c3077ccc020deb8b9ffe9de9911ab3d2.tar.gz | |
Measure why 64-bit start-up is slow, and record the answer (#16)
* bench: time one start with a parent that is not an LE program
`bench/startup.sh` times a shell loop, so on z/OS every child pays the
31-bit shell's own price and the 64-bit start-up cost cannot be
separated from it. `tests/tools/spawn` forks one child at a time and
reports wall and child CPU per start, and `bench/le-init.sh` builds the
31-bit, 64-bit and HLASM programs it times in a work directory, so the
table needs nothing checked in but the script.
The child's environment is built by hand and passed to `execve`:
`putenv` after LE has initialized is not handed to the child, and
`_CEE_RUNOPTS` exported to an LE parent makes that parent's `execl`
fail, which a fork loop that does not check exit status reports as a
fast start.
* notes: the 64-bit start-up cost is LE waiting, not the address mode
Measured on the CBT z/OS 29.00 system: a 64-bit HLASM program with no
LE starts in 1.39 ms, the same source at -m32 in 1.5-1.8 ms, so the
address space, the loader and XPLINK are free. A -m64 start spends
4.5-28 ms before the first instruction of main, of which only 1.0-1.25
ms is charged to the child: the rest is wall time on something shared,
which does not overlap between concurrent starts while it is at 28 ms
and does once it drops to 5.8 ms. No _CEE_RUNOPTS option moves it.
That retracts an earlier POSIX(OFF) result in these notes: exporting the
option to an LE parent makes its execl fail, so the run timed failed
execs. Applied to the child, POSIX(OFF) changes nothing.
Diffstat (limited to 'bench/probes/git@git.abendless.com:/srv/git')
0 files changed, 0 insertions, 0 deletions
