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 | 36 | 4 | 10 | 12.0 | 17.8 | 476,689 | 1,282 | 6 | 408,756 | 5 | 204,378 | osh-native |
| parse.configure-coreutils | 161 | 26 | 72 | 46.1 | 51.7 | 1,653,277 | 4,764 | 12 | 1,069,122 | 6 | 798,642 | osh-native |
| parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,880 | 180 | 2 | 75,098 | 1 | 37,549 | osh-native |
| ex.compute-fib | 28 | 0 | 1 | 2.6 | 7.9 | 584,145 | 31,810 | 12 | 50,000 | 0 | 2,826 | osh-native |
| ex.bashcomp-parse-help | 181 | 0 | 3 | 10.6 | 8.7 | 995,222 | 27,376 | 21 | 50,000 | 0 | 3,821 | osh-native |
| ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,289 | 478 | 3 | 85,334 | 1 | 42,667 | osh-native |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 7 | 6 | 0 | 1.6 | dash | - |
| 23 | 23 | 0 | 3.1 | bash | - |
| 104 | 53 | 58 | 3.4 | zsh | - |
| 16 | 12 | 4 | 29.3 | bumpleak/osh | mut |
| 20 | 20 | 0 | 29.9 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 9 | 13 | 29.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 21 | 8 | 25.2 | osh-native | mut+alloc |
| 32 | 20 | 12 | 25.4 | osh-native | mut+alloc+free |
| 36 | 32 | 4 | 17.8 | osh-native | mut+alloc+free+gc |
| 37 | 37 | 0 | 18.0 | osh-native | mut+alloc+free+gc+exit |
| 44 | 20 | 24 | 32.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 50 | 46 | 4 | 22.0 | _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 |
| 26 | 25 | 0 | 1.6 | dash | - |
| 77 | 77 | 0 | 3.1 | bash | - |
| 380 | 250 | 151 | 3.5 | zsh | - |
| 51 | 42 | 8 | 85.2 | bumpleak/osh | mut |
| 60 | 44 | 16 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
| 70 | 62 | 8 | 85.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 98 | 69 | 28 | 73.5 | osh-native | mut+alloc |
| 105 | 65 | 40 | 75.3 | osh-native | mut+alloc+free |
| 161 | 128 | 32 | 51.7 | osh-native | mut+alloc+free+gc |
| 165 | 145 | 20 | 51.9 | osh-native | mut+alloc+free+gc+exit |
| 139 | 99 | 40 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 237 | 189 | 48 | 73.2 | _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 | 2 | 0 | 1.3 | dash | - |
| 6 | 3 | 3 | 2.9 | bash | - |
| 8 | 4 | 4 | 3.3 | zsh | - |
| 6 | 3 | 3 | 10.9 | bumpleak/osh | mut |
| 7 | 4 | 4 | 11.4 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 4 | 4 | 11.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 9 | 9 | 0 | 10.1 | osh-native | mut+alloc |
| 9 | 6 | 3 | 9.8 | osh-native | mut+alloc+free |
| 9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
| 9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
| 12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 12 | 0 | 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 | 11 | 0 | 1.4 | dash | - |
| 28 | 24 | 4 | 2.8 | bash | - |
| 24 | 12 | 12 | 3.4 | zsh | - |
| 19 | 19 | 0 | 32.2 | bumpleak/osh | mut |
| 25 | 18 | 7 | 31.9 | _bin/cxx-opt+bumproot/osh | mut |
| 28 | 24 | 4 | 31.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 36 | 20 | 16 | 26.5 | osh-native | mut+alloc |
| 38 | 23 | 15 | 26.6 | osh-native | mut+alloc+free |
| 28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
| 28 | 28 | 0 | 7.7 | osh-native | mut+alloc+free+gc+exit |
| 53 | 49 | 4 | 35.7 | _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 |
| 73 | 65 | 8 | 3.1 | bash | - |
| 170 | 114 | 55 | 55.4 | bumpleak/osh | mut |
| 180 | 143 | 37 | 55.1 | _bin/cxx-opt+bumproot/osh | mut |
| 194 | 110 | 83 | 56.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 211 | 120 | 92 | 47.1 | osh-native | mut+alloc |
| 218 | 141 | 77 | 48.9 | osh-native | mut+alloc+free |
| 181 | 124 | 56 | 8.7 | osh-native | mut+alloc+free+gc |
| 180 | 144 | 36 | 8.5 | osh-native | mut+alloc+free+gc+exit |
| 232 | 172 | 60 | 64.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 209 | 158 | 51 | 10.2 | _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 | 8 | 2 | 3.4 | dash | - |
| 20 | 15 | 5 | 4.5 | bash | - |
| 18 | 11 | 7 | 3.5 | zsh | - |
| 18 | 13 | 5 | 11.6 | bumpleak/osh | mut |
| 21 | 14 | 7 | 12.8 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 19 | 2 | 12.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 21 | 1 | 10.9 | osh-native | mut+alloc |
| 23 | 12 | 12 | 11.1 | osh-native | mut+alloc+free |
| 22 | 21 | 2 | 9.0 | osh-native | mut+alloc+free+gc |
| 23 | 13 | 10 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 24 | 13 | 12 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 22 | 3 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |