<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zash.git/tests, branch bench/compat-triage</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%2Fcompat-triage</id>
<link rel='self' href='https://git.abendless.com/zash.git/atom?h=bench%2Fcompat-triage'/>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/'/>
<updated>2026-11-26T02:30:22Z</updated>
<entry>
<title>interactive: a prompt's width counts columns, not bytes</title>
<updated>2026-11-26T02:30:22Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T02:30:22Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=deb0ed011fe2cfc7058facb3f63b7feaeb8d4a8e'/>
<id>urn:sha1:deb0ed011fe2cfc7058facb3f63b7feaeb8d4a8e</id>
<content type='text'>
The built-in editor skipped `ESC [ ...` sequences when working out where
the prompt ends.  Colour and titles are not all CSI: an OSC title or
hyperlink runs to BEL or `ESC \`, DCS runs the same way, and `tput sgr0`
is the three-byte `ESC ( B` before `ESC [ m`.  A prompt built with
`$(tput ...)` was measured wrong, which costs the cursor position and
with it the wrapped-line arithmetic.

`esc_seq_len()` in interact.c now walks what a terminal understands, and
edit_builtin.c uses it.  The libedit build shares the walk: it brackets
control runs for `EL_PROMPT_ESC`, and adds the space libedit needs when
a prompt ends in one, since libedit attaches a literal run to the
character after it.

bench/editor.py measures the two costs run.sh cannot see, start to first
prompt and per-key echo, on a pty; bench/README.md has the table.  The
release, z/OS and fuzz builds move to -O3 while the sanitizer and
coverage builds stay low: inlined frames make their reports harder to
read than the few percent they would gain.
</content>
</entry>
<entry>
<title>z/OS: make zash and make parse under POSIX make again</title>
<updated>2026-11-26T02:24:20Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T02:24:14Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=67182597f827a0c9c258eadb1b13a96637fe44d0'/>
<id>urn:sha1:67182597f827a0c9c258eadb1b13a96637fe44d0</id>
<content type='text'>
b786aac put a GNU conditional inside the zash rule.  z/OS /bin/make is
IBM POSIX make: it has no ifeq and no $(shell), so plain make and make
zash both stopped at line 124 with FSUM8232 before any target ran.

The rule also required $(OBJS), and that names src/sys_posix.o, which
uses posix_spawn and does not compile on z/OS.  The prerequisites are now
the sources; on Linux they are newer than the objects exactly when
zash-posix has work, so the delegation is a no-op once built.

The new test pins ZOS_SYSNAME and ZOS_SYSPLEX against sysvar(1), and the
shape of ZOS_RELEASE, ZOS_ASID and ZOS_JOBNAME, whose values belong to
the one process.  zos-lint now rejects GNU-only make syntax, so a
conditional cannot come back unnoticed.
</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>Wording pass on the 64-bit start-up write-up (#17)</title>
<updated>2026-11-25T03:05:17Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T03:05:17Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=4e2be21ad459e9622bfdb30f9daf04f547cdf86a'/>
<id>urn:sha1:4e2be21ad459e9622bfdb30f9daf04f547cdf86a</id>
<content type='text'>
* notes: plainer wording in the 64-bit start-up write-up

Same findings, less staging: no dash-as-connector, no bold cell, no
"not X but Y" contrast, and one space after a full stop like the rest
of the file.  Also fixes "4-5 orders of magnitude" for a 5x difference.

* tests: clang-format spawn.c</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>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>test: keep child reports out of the leak comparison</title>
<updated>2026-11-24T22:28:51Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T22:27:23Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=8af98745d400735363a9b98165e73aca18523f7f'/>
<id>urn:sha1:8af98745d400735363a9b98165e73aca18523f7f</id>
<content type='text'>
A child inherits _CEE_DMPTARG and writes its own heap report, so the
substitution and the pipeline added a report per iteration: growth
measured 2 MB over 900 children, none of it zash's.  The forked
commands now turn heap checking off for themselves, and the test fails
if anything but one report came back.
</content>
</entry>
<entry>
<title>test: leak-check the spawn, redirection and pipeline paths too</title>
<updated>2026-11-24T22:25:02Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T22:25:02Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=1bdde91c6849114dcc65503f6a2325d22217c74b'/>
<id>urn:sha1:1bdde91c6849114dcc65503f6a2325d22217c74b</id>
<content type='text'>
The loop body had builtins only, so nothing but parsing, expansion and
variables was measured.  A substitution, a redirection, a forked
command and a pipeline per iteration put the storage those paths keep
under the same comparison.
</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>
</feed>
