<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zash.git/bench, branch perf/cd-micro</title>
<subtitle>Fast Almquist-family POSIX shell for z/OS UNIX with bundled libedit</subtitle>
<id>https://git.abendless.com/zash.git/atom?h=perf%2Fcd-micro</id>
<link rel='self' href='https://git.abendless.com/zash.git/atom?h=perf%2Fcd-micro'/>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/'/>
<updated>2026-11-25T19:19:07Z</updated>
<entry>
<title>docs: the z/OS tables and prose at 64-bit, C23 and the LPA</title>
<updated>2026-11-25T19:19:07Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T19:19:07Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=e85914ec27f202a277a5a3e2a41a5f5328ab70cf'/>
<id>urn:sha1:e85914ec27f202a277a5a3e2a41a5f5328ab70cf</id>
<content type='text'>
README's benchmark table is the 64-bit run with the run-time in the LPA
and zsh installed (it was the 2.1-era table, and its zsh column was the
31 ms start-up, not zsh). bench/README.md keeps the 2.1 numbers as the
history of what the LPA fixed, and gains the start-up table it now has a
measurement for. investigation.md's §2 recommendation was still "build
31-bit"; it now says what happened instead.
</content>
</entry>
<entry>
<title>C23: nullptr for null pointers, constexpr for typed constants</title>
<updated>2026-11-25T06:31:26Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T06:30:44Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=c7f23b8a5fb86f8df51809aca64415bcadcaa9f6'/>
<id>urn:sha1:c7f23b8a5fb86f8df51809aca64415bcadcaa9f6</id>
<content type='text'>
nullptr in every place a null pointer constant was meant; NULL is gone
from src/.

constexpr where it improves on #define without costing anything: the
IGGCSI00 work-area offsets and sizes, and the scalar sizes MVS_DSN_MAX,
CSI_FIELD_LEN, CSI_WORK_MIN, PDS_DIRBLK, CSI_WORK, CSI_MAX_CALLS.  A
constexpr in C is a constant expression, so it still bounds the arrays
that use it, and it now carries a type and can be checked with
static_assert.  Feature switches (#if), the CSIETYPE/EBCDIC byte
constants read as octets, and the related-constant enum sets stay as
they were.
</content>
</entry>
<entry>
<title>build: make the 64-bit z/OS build the default</title>
<updated>2026-11-25T06:06:46Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T06:06:46Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=b786aac5c1578a5e87c42db8273e13af09ab5ef7'/>
<id>urn:sha1:b786aac5c1578a5e87c42db8273e13af09ab5ef7</id>
<content type='text'>
zash is built 64-bit on z/OS now: -m64 for the ASCII and the EBCDIC
build and for the debug build, and `make` as well as `make zash` land
on zos-ascii there. The 31-bit build existed for the 64-bit start and
fork costs, which were the C run-time being loaded out of the linklist;
with CELQ* in the LPA the widths measure the same and the shell is
built at the width IBM builds for.

The catalog and dynamic-allocation modules are AMODE 31 and OS_UPSTACK
does not exist at -m64, so both are declared with plain OS linkage,
which is the 64-bit glue for an AMODE 31 callee. Neither module is
installed on the test system, so that path is unverified there;
csi_call() still catches a program check and retires the catalog.
IGGCSI00's VL bit comes from the width of a pointer, not 0x80000000.

Documentation follows: README gains a Recommendations section for the
LPA change and loses the 31-bit rationale; DESIGN.md's cost model,
catalog linkage and open questions match the measurements; bench/README
states the current width and the rerun numbers; investigation.md
records the decision.
</content>
</entry>
<entry>
<title>docs: name the system by release, not by its hostname</title>
<updated>2026-11-25T05:14:17Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T05:14:17Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=44252281ec0044cc816f0b3c384e35cfe5dd8469'/>
<id>urn:sha1:44252281ec0044cc816f0b3c384e35cfe5dd8469</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bench: the 64-bit start-up cost was the runtime not being in the LPA (#20)</title>
<updated>2026-11-25T04:29:48Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T04:29:48Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=98f0bc024df92868d04fc42313dd034f3968c511'/>
<id>urn:sha1:98f0bc024df92868d04fc42313dd034f3968c511</id>
<content type='text'>
Adding the CELQ members of CEE.SCEERUN2 to the dynamic LPA takes a
trivial 64-bit start from 5.83 ms to 1.63 ms, the fork() cost from
4.20 ms to 0.10 ms, and /bin/zsh from 31.4 ms to 3.6 ms.  The 27x
ratio this repo has been explaining since PR #15 was a system not
following IBM's own advice for the 64-bit runtime.</content>
</entry>
<entry>
<title>notes: the 64-bit runtime is loaded from the linklist, not the LPA (#19)</title>
<updated>2026-11-25T04:24:00Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T04:24:00Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=4eeb68e37ca5703377d8bd9423a47af7d56d832a'/>
<id>urn:sha1:4eeb68e37ca5703377d8bd9423a47af7d56d832a</id>
<content type='text'>
* bench: keep the HLASM probe comments out of the continue column

Also fixes the tiny64.s header, which named tiny31.s.

* notes: the 64-bit runtime is loaded from the linklist, not the LPA</content>
</entry>
<entry>
<title>bench: keep the start-up and fork probes in bench/probes</title>
<updated>2026-11-25T03:31:20Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T03:31:20Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=582a3ec37a96d6797e8b64039f5b6d43490997fc'/>
<id>urn:sha1:582a3ec37a96d6797e8b64039f5b6d43490997fc</id>
<content type='text'>
The probe sources only existed inline in the docs and in a scratch
directory on the z/OS box, so the numbers in bench/README.md could not be
reproduced from the repository.  fk3.c (fork cost against parent storage),
tiny.c (start-up cost) and the HLASM pair tiny31.s/tiny64.s (start-up with
no C runtime) now live in bench/probes/, with run.sh building and timing
them at both widths; the docs point at them instead of repeating them.
</content>
</entry>
<entry>
<title>Measure why 64-bit start-up is slow, and record the answer (#16)</title>
<updated>2026-11-25T01:52:27Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T01:52:27Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=c0e48819c3077ccc020deb8b9ffe9de9911ab3d2'/>
<id>urn:sha1:c0e48819c3077ccc020deb8b9ffe9de9911ab3d2</id>
<content type='text'>
* 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.</content>
</entry>
<entry>
<title>bench: take a shell path that is relative to where run.sh was called</title>
<updated>2026-11-24T22:38:16Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T22:38:16Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=2e0730af8fba0c0d8bdb78a9c455c89295a8500f'/>
<id>urn:sha1:2e0730af8fba0c0d8bdb78a9c455c89295a8500f</id>
<content type='text'>
The harness chdirs to a work directory, so `./zash`, the form the usage
line shows, resolved to nothing.
</content>
</entry>
<entry>
<title>bench: start-up table in the README, measured on z/OS and Linux</title>
<updated>2026-11-24T22:33:56Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T22:33:56Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=fab8fa703c8297b6d3d76583ab65b776cd4cb393'/>
<id>urn:sha1:fab8fa703c8297b6d3d76583ab65b776cd4cb393</id>
<content type='text'>
bench/startup.sh had to exist before the README could stop saying the
number was missing.  On z/OS zash starts in 1.33 ms against 2.20 ms for
/bin/sh and 31.4 ms for zsh.
</content>
</entry>
</feed>
