<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zash.git/Makefile, branch bench/le64-init</title>
<subtitle>Fast Almquist-family POSIX shell for z/OS UNIX with bundled libedit</subtitle>
<id>https://git.abendless.com/zash.git/atom?h=bench%2Fle64-init</id>
<link rel='self' href='https://git.abendless.com/zash.git/atom?h=bench%2Fle64-init'/>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/'/>
<updated>2026-11-25T01:52:27Z</updated>
<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>Merge pull request #15 from skurtz97/bench/startup</title>
<updated>2026-11-24T23:53:26Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T23:53:26Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=70efa08c0698bac43f0f5a0c5365e696613ac1e6'/>
<id>urn:sha1:70efa08c0698bac43f0f5a0c5365e696613ac1e6</id>
<content type='text'>
bench: measure start-up wall time against the other shells</content>
</entry>
<entry>
<title>bench: measure start-up wall time against the other shells</title>
<updated>2026-11-24T22:33:33Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T22:30:56Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=a36e053993ce116fba0c375b1b6ac44e1d118e51'/>
<id>urn:sha1:a36e053993ce116fba0c375b1b6ac44e1d118e51</id>
<content type='text'>
run.sh times CPU, so the milliseconds a process spends before it runs
anything never appear in it: zash can read 0.00 in a subshell row while
zash -c : costs a few ms of wall time.  bench/startup.sh measures that
directly, one start per command, and bench/README.md now has a table
instead of a warning that the number is missing.

The clock is tests/tools/now.c, ten lines, because /bin/date on z/OS
has no sub-second format.
</content>
</entry>
<entry>
<title>Merge pull request #14 from skurtz97/test/zos-leakcheck</title>
<updated>2026-11-24T22:22:02Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T22:22:02Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=51467fc9a631580719630512e3c70034f7ff0d87'/>
<id>urn:sha1:51467fc9a631580719630512e3c70034f7ff0d87</id>
<content type='text'>
test: fail when zash leaks under LE's heap checker</content>
</entry>
<entry>
<title>test: fail when zash leaks under LE's heap checker</title>
<updated>2026-11-24T20:25:41Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T20:25:41Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=e7e469d8f3c48852786468ceb668afe6517c37c2'/>
<id>urn:sha1:e7e469d8f3c48852786468ceb668afe6517c37c2</id>
<content type='text'>
HEAPCHK with a call depth and no per-call walk makes LE write the heap
storage diagnostics into a CEEDUMP at normal termination: every
allocation still live at exit, with the traceback that made it.  A
shell leaves working storage live on purpose, so the total says nothing
by itself; a leak shows as the total growing with the work done.

tests/zos/leak.sh therefore runs one builtin-only loop body at 100 and
1000 iterations in the same shell, sums the live bytes out of each
report, and fails if the second run is more than 2 KiB larger.

`make zos-leakcheck` is the target: it points _CEE_DMPTARG at
build/leaks and skips zash/limits, which recurses deep enough to run out
of storage under the checker.
</content>
</entry>
<entry>
<title>fix: stop make check after the z/OS test passes</title>
<updated>2026-11-24T05:18:45Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T05:18:45Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=c3b73e68d0003824813448fc9729233d4f8f8000'/>
<id>urn:sha1:c3b73e68d0003824813448fc9729233d4f8f8000</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix: make the zopen build use GNU make and install without rebuilding</title>
<updated>2026-11-24T04:59:12Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T04:59:12Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=4fa18daf356e51e5c81219be3e4eea8d4182acf0'/>
<id>urn:sha1:4fa18daf356e51e5c81219be3e4eea8d4182acf0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix: keep the Makefile readable by IBM make</title>
<updated>2026-11-24T03:24:32Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T03:24:32Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=aea7186e9e940b5c4017d6a607483de49f17641a'/>
<id>urn:sha1:aea7186e9e940b5c4017d6a607483de49f17641a</id>
<content type='text'>
Remove ?= and $(shell) from the docs browser lookup, use $(MAKE) for recursion, and make the z/OS default naming explicit.
</content>
</entry>
<entry>
<title>Merge origin/main into docs/logo-and-clean</title>
<updated>2026-11-23T17:50:17Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-23T17:50:17Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=b6574b2f3cb86d33d7e55985c7914dfce6dbf296'/>
<id>urn:sha1:b6574b2f3cb86d33d7e55985c7914dfce6dbf296</id>
<content type='text'>
Resolutions: README.md and DESIGN.md keep the new colour logo
(packaging/zash-logo.svg) at width 220; the Makefile keeps main's newer
shellcheck header, lists `make docs` in the usage block, and `clean`
removes docs, cov and $(ZTOOLS) along with the branch's new tools.
</content>
</entry>
<entry>
<title>make: add other-docs, and bring the usage comment up to date</title>
<updated>2026-11-23T17:31:53Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-23T17:31:53Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=2161b3c2de4eec4cc5f28cbf683f25acd3c7dbef'/>
<id>urn:sha1:2161b3c2de4eec4cc5f28cbf683f25acd3c7dbef</id>
<content type='text'>
make other-docs runs the documentation that needs a tool z/OS does not
have: the specification through typst, the source reference through
Doxygen.

The comment at the top listed fourteen of the targets and missed the
rest; it lists them all now, grouped the way the file is, with the
argument each one takes where it takes one.  Doxygen's output is doc/,
not docs/, which the comment had wrong.
</content>
</entry>
</feed>
