summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSean Kurtz <seankurtz75@gmail.com>2026-11-29 14:43:06 -0600
committerSean Kurtz <seankurtz75@gmail.com>2026-11-29 14:43:06 -0600
commit2f6b536120551cb48051c53d287ad416742ec5a5 (patch)
tree25735f3bc6450caa915ee042553a32efab315069
parent9407e4f94496266bf382a4fc8a46a4131740af45 (diff)
downloadzash-2f6b536120551cb48051c53d287ad416742ec5a5.tar.gz
web: compare bash, /bin/sh, and zash on z/OS in hero showcase
- Replace the 2-shell Linux dash/zash comparison in web/layouts/home.html with a 3-shell comparison (bash, /bin/sh, ./zash) measured on z/OS (37.12s vs 12.54s vs 0.01s for 10,000 command substitutions). - Trim the Korn features clause from section 02 in web/content/_index.md. Verified: - Measured all three shells directly on z/OS (10,000 iterations each). - Built with hugo --source web --minify (0 errors) and deployed live.
-rw-r--r--web/content/_index.md3
-rw-r--r--web/layouts/home.html21
2 files changed, 14 insertions, 10 deletions
diff --git a/web/content/_index.md b/web/content/_index.md
index 107a548..f1a28d6 100644
--- a/web/content/_index.md
+++ b/web/content/_index.md
@@ -23,8 +23,7 @@ billed, and every `fork()` copies an address space.
<h3>sh scripts, not a dialect</h3>
<p>Scripts written for zash run under the existing <code>/bin/sh</code>,
dash, FreeBSD sh and bash. zash is the successor to IBM's KornShell-line
- <code>/bin/sh</code>, not a new language: the Korn features those scripts
- use are there, where they cost other scripts nothing.</p>
+ <code>/bin/sh</code>, not a new language.</p>
</li>
<li>
<span class="n">03</span>
diff --git a/web/layouts/home.html b/web/layouts/home.html
index a77c48b..957fe8a 100644
--- a/web/layouts/home.html
+++ b/web/layouts/home.html
@@ -20,20 +20,25 @@
<span class="dot"></span><span class="dot"></span><span class="dot"></span>
<span class="title">zos: ~/src/zash &mdash; 10 000 command substitutions</span>
</div>
- <pre><code><span class="cmd">time dash -c 'i=0; while [ $i -lt 10000 ]; do x=$(echo hi); i=$((i+1)); done'</span>
-<span class="out">real</span> 0m4.54s
-<span class="out">user</span> 0m2.16s
-<span class="out">sys</span> 0m2.86s
+ <pre><code><span class="cmd">time bash -c 'i=0; while [ $i -lt 10000 ]; do x=$(echo hi); i=$((i+1)); done'</span>
+<span class="out">real</span> 0m37.12s
+<span class="out">user</span> 0m20.32s
+<span class="out">sys</span> 0m6.77s
+
+<span class="cmd">time /bin/sh -c 'i=0; while [ $i -lt 10000 ]; do x=$(echo hi); i=$((i+1)); done'</span>
+<span class="out">real</span> 0m12.54s
+<span class="out">user</span> 0m3.67s
+<span class="out">sys</span> 0m1.22s
<span class="cmd">time ./zash -c 'i=0; while [ $i -lt 10000 ]; do x=$(echo hi); i=$((i+1)); done'</span>
<span class="out">real</span> <span class="ok">0m0.01s</span>
<span class="out">user</span> <span class="ok">0m0.01s</span>
-<span class="out">sys</span> 0m0.00s<span class="cursor"></span></code></pre>
+<span class="out">sys</span> <span class="ok">0m0.01s</span><span class="cursor"></span></code></pre>
</div>
<p class="caption">
- Every <code>$( )</code> starts a process in dash and none in zash. One run
- on Linux x86-64; <code>make bench</code> repeats each case and checks the
- answers.
+ Every <code>$( )</code> starts a process in bash and <code>/bin/sh</code>,
+ and none in zash. One run on z/OS; <code>make bench</code> repeats each
+ case and checks the answers.
</p>
<div class="spec-strip">
<span>C23</span>