summaryrefslogtreecommitdiffhomepage
path: root/bench
Commit message (Collapse)AuthorAgeFilesLines
* z/OS: run 31-bit and load IGGCSI00 through the C librarySean Kurtz7 days1-0/+297
| | | | | | | | | | | | | zash was AMODE 64, so calling the AMODE 31 IGGCSI00 needed assembler glue (zos_csi.s) that switched addressing mode around the branch. Built with -m32 the program is 31-bit itself: the call goes through a plain function pointer, the work area and the saved registers live in one 31-bit block in C, and the glue is gone. The rest of the tree follows the change: the build, the off-z/OS lint shim, DESIGN.md and README.md, the benches, the Lean spec of the pattern matcher, and the tests that recorded what the extra address bits had changed.
* added new benches, the logo, and a formal spec for possible verification.Sean Kurtz10 days7-0/+81
|
* bench: 200 background jobs, which is what z/OS lets a shell forkSean Kurtz11 days1-1/+1
|
* bench: more of what a script actually doesSean Kurtz11 days11-0/+128
| | | | | | | | | | | | | Eleven more benchmarks, each one a subsystem rather than a syntax form: here-documents, getopts, redirections, subshells, background jobs, printf, parameter expansion, IFS field splitting, case dispatch, recursion, and bash-style ${v/a/b} substitution. They print one line that every shell must agree on, so they are tests too, and the harness reports n/a where the shell lacks the feature. .pi-lens.json turns off its reserved-identifier rule: every match in this tree is a C11 keyword (_Static_assert, _Noreturn, _Alignas) or a runtime name (_exit, __malloc31, _CVSCSID) that has to be spelled that way.
* bench: a probe must fail when the feature is missingSean Kurtz12 days1-1/+3
| | | | | | An if with no else clause answers 0 even when its condition failed, so dbracket's probe reported success on dash and the row said differs instead of n/a. The probe now says so itself.
* bench: keep the arithmetic totals inside 32 bitsSean Kurtz12 days14-2/+17
| | | | | | | ksh88 works in 32-bit integers, so summing i*2 over 200000 iterations overflowed and the benchmark reported "differs" instead of a time: the same script, two answers. Summing (i % 100) * 2 does the same work and fits in 31 bits.
* bench: name the columns, and run the ksh features against ksh88Sean Kurtz12 days4-16/+65
| | | | | | | | | | | | The column for z/OS /bin/sh said sh, which hid that it is IBM's ksh88 port, and two benchmarks skipped it for the wrong reason: dbracket probed [[ ]] with eval, which ksh88 rejects even though [[ ]] works, and arithcmd used (( )) as a command, which is ksh93 and not ksh88. run.sh now takes shell=label arguments and labels /bin/sh as ksh88 on z/OS, and BENCH selects a subset. dbracket probes the form it uses. arithcmd keeps to typeset -i, let and $(( )), so ksh88 runs it, and the (( )) command form moved to dparen.sh.
* Readme icon and contents, a security test, realistic bench scriptsSean Kurtz12 days2-0/+49
| | | | | | | | | | | | | | | | | README.md shows the shell's icon on a light or dark background, has a table of contents, and says C17 rather than C11 (the tree has built C17 since b4d6bf1). tests/zos/security.sh is the security-relevant half of the suite: a file created by redirection or mkdir takes the umask, a redirect into a directory without write permission fails, the current directory is not searched for a command, ENV is not read by a non-interactive shell, and neither an expansion nor a file name is re-parsed. bench/report.sh counts a generated log by level and hour, and bench/deploy.sh renders and verifies 100 configs from a template. Both are realistic scripts and both are compared for output against other shells by bench/run.sh, so they fail as tests as well as being timed.
* bench: read every shell's times output, and feed scripts on stdinSean Kurtz12 days1-6/+20
| | | | | | | | z/OS `times` differs per shell (ksh88 `0m 1.16s`, bash `0m1.160s`, oksh `0m01.16s`), and the old parser assumed bash's shape, multiplying ksh88's seconds by 60. z/OS zsh cannot open an ASCII-tagged script by name, so benchmarks go in on stdin. The probe list also looks for zsh and oksh now.
* Docs: tagging, CSI completion, z/OS options, off-z/OS checking; tagging benchSean Kurtz2026-11-151-0/+65
| | | | | | DESIGN.md gains the reference for file tags and conversion, MVS name completion and the CSI glue's storage layout, the per-command z/OS options, and how z/OS code is checked on Linux. bench/tagging.sh measures tagging cost on z/OS (n/a elsewhere).
* Add [[ ]], make coverage, and fixes found by edge-case testsSean Kurtz2026-11-152-0/+18
| | | | | | | [[ ]] is parsed into a tree and evaluated without argv or lookup. Fixes: errexit inside a tested subshell, the ${x:?} message, arithmetic on variables holding expressions, printf %c of an empty argument, job text for arithmetic, and \n and \e prompt escapes.
* Tests and benchmarks for the extensions and the interactive layerSean Kurtz2026-11-132-2/+17
| | | | | | | | New zash/ tests for each extension, a proc/ test showing they create no processes, and linux/i-*.sh tests that drive the interactive shell on a pseudo-terminal (tests/tools/ptydrive.py; skipped without python3). The runner counts exit status 77 as "skipped". Adds a benchmark for the arithmetic commands and removes a stray file from tests/posix.
* zash: scripting core, test suite and benchmarksSean Kurtz2026-11-128-0/+102
A clean-slate POSIX shell for z/OS UNIX in the Almquist tradition, written in C23 for Clang (Linux) and IBM Open XL C/C++ (z/OS). - Parser, expansion, arithmetic, redirection, traps and builtins. - Spawn-first execution: fd plans instead of fork+dup2, in-shell pure builtins for pipelines and command substitution, $(a | b) without a subshell. - Flat .POSIX Makefile; asan, valgrind, bench, compdb and z/OS targets. - Tests: posix (dash-generated), zash, process accounting, linux, zos. Nothing has been compiled or run on z/OS yet.