Source code: oil/benchmarks/gc.sh
| task | elapsed ms | max gc millis | total gc millis | allocated MB | max rss MB | num allocated | num gc points | num gc done | gc threshold | num growths | max survived | shell label |
| parse.configure-cpython | 37 | 4 | 10 | 12.0 | 18.0 | 476,690 | 1,282 | 6 | 408,762 | 5 | 204,381 | osh-native |
| parse.configure-coreutils | 157 | 27 | 70 | 46.1 | 51.4 | 1,653,278 | 4,764 | 12 | 1,069,128 | 6 | 798,645 | osh-native |
| parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,881 | 180 | 2 | 75,104 | 1 | 37,552 | osh-native |
| ex.compute-fib | 28 | 0 | 1 | 2.6 | 7.9 | 584,146 | 31,810 | 12 | 50,000 | 0 | 2,828 | osh-native |
| ex.bashcomp-parse-help | 180 | 0 | 3 | 10.6 | 8.7 | 995,223 | 27,376 | 21 | 50,000 | 0 | 3,824 | osh-native |
| ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.9 | 116,290 | 478 | 3 | 85,340 | 1 | 42,670 | osh-native |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 6 | 6 | 0 | 1.4 | dash | - |
| 23 | 19 | 4 | 3.0 | bash | - |
| 106 | 52 | 61 | 3.4 | zsh | - |
| 16 | 12 | 4 | 28.8 | bumpleak/osh | mut |
| 20 | 12 | 8 | 28.5 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 23 | 0 | 28.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 21 | 9 | 25.0 | osh-native | mut+alloc |
| 32 | 20 | 12 | 25.6 | osh-native | mut+alloc+free |
| 37 | 36 | 0 | 18.0 | osh-native | mut+alloc+free+gc |
| 37 | 36 | 0 | 18.0 | osh-native | mut+alloc+free+gc+exit |
| 44 | 35 | 8 | 32.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 55 | 35 | 19 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
Parsing the autoconf-generated configure script from GNU coreutils.
Note that unlike other shells, osh -n retains all nodes on purpose. (See the
parser benchmark).
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 22 | 21 | 0 | 1.6 | dash | - |
| 77 | 77 | 0 | 3.1 | bash | - |
| 381 | 222 | 182 | 3.5 | zsh | - |
| 51 | 47 | 4 | 85.0 | bumpleak/osh | mut |
| 61 | 57 | 4 | 86.0 | _bin/cxx-opt+bumproot/osh | mut |
| 70 | 54 | 15 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 97 | 58 | 39 | 73.4 | osh-native | mut+alloc |
| 106 | 67 | 39 | 75.3 | osh-native | mut+alloc+free |
| 157 | 133 | 23 | 51.4 | osh-native | mut+alloc+free+gc |
| 161 | 132 | 28 | 50.7 | osh-native | mut+alloc+free+gc+exit |
| 139 | 95 | 44 | 98.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 218 | 178 | 40 | 73.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
Parsing abuild from Alpine Linux.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 2 | 0 | 2 | 1.4 | dash | - |
| 6 | 6 | 0 | 3.0 | bash | - |
| 8 | 0 | 7 | 3.3 | zsh | - |
| 6 | 6 | 0 | 11.9 | bumpleak/osh | mut |
| 6 | 6 | 0 | 12.2 | _bin/cxx-opt+bumproot/osh | mut |
| 8 | 8 | 0 | 12.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 4 | 4 | 10.0 | osh-native | mut+alloc |
| 9 | 4 | 4 | 10.0 | osh-native | mut+alloc+free |
| 9 | 4 | 4 | 8.4 | osh-native | mut+alloc+free+gc |
| 9 | 6 | 3 | 8.4 | osh-native | mut+alloc+free+gc+exit |
| 11 | 8 | 4 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 8 | 4 | 9.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
A synthetic benchmark for POSIX shell arithmetic.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 11 | 10 | 0 | 1.4 | dash | - |
| 29 | 25 | 4 | 2.9 | bash | - |
| 24 | 20 | 4 | 3.1 | zsh | - |
| 20 | 20 | 0 | 31.9 | bumpleak/osh | mut |
| 26 | 21 | 4 | 32.4 | _bin/cxx-opt+bumproot/osh | mut |
| 28 | 20 | 8 | 33.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 36 | 18 | 18 | 26.3 | osh-native | mut+alloc |
| 38 | 15 | 23 | 26.6 | osh-native | mut+alloc+free |
| 28 | 20 | 8 | 7.9 | osh-native | mut+alloc+free+gc |
| 28 | 27 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
| 56 | 52 | 4 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 37 | 37 | 0 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
A realistic bash-completion workload.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 74 | 69 | 4 | 3.1 | bash | - |
| 167 | 101 | 65 | 54.0 | bumpleak/osh | mut |
| 180 | 120 | 60 | 56.1 | _bin/cxx-opt+bumproot/osh | mut |
| 196 | 136 | 60 | 55.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 210 | 121 | 89 | 46.9 | osh-native | mut+alloc |
| 216 | 152 | 64 | 48.8 | osh-native | mut+alloc+free |
| 180 | 118 | 61 | 8.7 | osh-native | mut+alloc+free+gc |
| 181 | 133 | 48 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 230 | 145 | 85 | 64.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 206 | 153 | 52 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
Running abuild -h from Alpine Linux.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 10 | 6 | 4 | 3.5 | dash | - |
| 20 | 18 | 2 | 4.5 | bash | - |
| 18 | 10 | 8 | 3.5 | zsh | - |
| 18 | 8 | 11 | 11.0 | bumpleak/osh | mut |
| 22 | 15 | 7 | 13.2 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 14 | 7 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 15 | 7 | 10.9 | osh-native | mut+alloc |
| 23 | 16 | 7 | 11.1 | osh-native | mut+alloc+free |
| 23 | 18 | 5 | 8.9 | osh-native | mut+alloc+free+gc |
| 23 | 14 | 10 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 25 | 12 | 13 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 24 | 2 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |