<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zash.git, branch bench/startup</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%2Fstartup</id>
<link rel='self' href='https://git.abendless.com/zash.git/atom?h=bench%2Fstartup'/>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/'/>
<updated>2026-11-24T22:38:16Z</updated>
<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>
<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>test: report leak checking as a verdict, not an exact figure</title>
<updated>2026-11-24T21:04:07Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T21:04:07Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=e633a576ec28f4788f842273fc60adab6999b7dc'/>
<id>urn:sha1:e633a576ec28f4788f842273fc60adab6999b7dc</id>
<content type='text'>
The growth over 10x the work is 0 or 8 bytes depending on how the
environment copy lands on an 8-byte boundary, so printing it made the
expectation depend on the caller's environment.  Print the finding only
when the limit is exceeded; the reports in build/leaks keep the
numbers.
</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>docs: humanize the markdown docs</title>
<updated>2026-11-24T17:52:12Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T17:52:12Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=2b257338481007b88331ae445b26ff99bdbf8977'/>
<id>urn:sha1:2b257338481007b88331ae445b26ff99bdbf8977</id>
<content type='text'>
Plain sentences where the prose had decorative bold lead-ins, em dashes
and one-line closers. Claims, numbers and commands are unchanged, except
two corrections that the startup probe settled: README said the remaining
z/OS gap was the price of the address mode, and DESIGN's open question on
`a | b &amp;` said the gain depended on the address mode. Both are the 64-bit
C run-time, not the address mode.
</content>
</entry>
<entry>
<title>docs: keep the probe write-up in notes/investigation.md</title>
<updated>2026-11-24T17:39:53Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T17:39:53Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=d60ce596e6f4ecd62ada6be0916caea22c75e0a8'/>
<id>urn:sha1:d60ce596e6f4ecd62ada6be0916caea22c75e0a8</id>
<content type='text'>
The assembler-vs-C experiment, its method and the questions it leaves
open get a tracked home outside the generated docs/ tree; bench/README
keeps the result table and points there.
</content>
</entry>
<entry>
<title>docs: the 64-bit start-up cost is LE, not the address mode</title>
<updated>2026-11-24T17:34:17Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T17:34:17Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=3dbb5a19db60fa2bb681a5a3158b8dc91be40964'/>
<id>urn:sha1:3dbb5a19db60fa2bb681a5a3158b8dc91be40964</id>
<content type='text'>
An AMODE 64 HLASM program that returns 0 without any C run-time starts
in 0.8 ms, the same as the AMODE 31 copy, while the same empty program
in C costs 29.4 ms at -m64 and 2.0 ms at -m32. So the 28 ms is Language
Environment's 64-bit initialization, not the address space, and the
31-bit LE start is about 1 ms. Records the probe and corrects the
claims in bench/README.md and DESIGN.md.
</content>
</entry>
</feed>
