Source code: oils/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 | 31 | 3 | 9 | 12.0 | 18.4 | 471,263 | 1,282 | 6 | 413,142 | 5 | 206,571 | osh-native |
| parse.configure-cpython | 35 | 4 | 10 | 12.0 | 18.7 | 471,263 | 1,282 | 6 | 413,150 | 5 | 206,575 | osh-nosouffle |
| parse.configure-coreutils | 135 | 24 | 62 | 45.9 | 51.7 | 1,638,002 | 4,764 | 12 | 1,056,640 | 6 | 787,841 | osh-native |
| parse.configure-coreutils | 150 | 26 | 68 | 45.9 | 52.1 | 1,638,001 | 4,764 | 12 | 1,056,648 | 6 | 787,845 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.7 | 102,791 | 180 | 3 | 86,628 | 1 | 43,314 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 9.2 | 102,791 | 180 | 3 | 86,636 | 1 | 43,318 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 1 | 2.8 | 8.3 | 572,115 | 22,608 | 12 | 50,000 | 0 | 2,982 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.7 | 572,115 | 22,608 | 12 | 50,000 | 0 | 2,985 | osh-nosouffle |
| ex.bashcomp-parse-help | 221 | 0 | 3 | 11.6 | 9.0 | 990,261 | 15,258 | 21 | 50,000 | 0 | 3,965 | osh-native |
| ex.bashcomp-parse-help | 227 | 0 | 4 | 11.6 | 9.6 | 990,260 | 15,258 | 21 | 50,000 | 0 | 3,969 | osh-nosouffle |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 9.4 | 117,219 | 277 | 3 | 83,990 | 1 | 41,995 | osh-native |
| ex.abuild-print-help | 22 | 1 | 2 | 3.0 | 9.8 | 117,218 | 277 | 3 | 83,998 | 1 | 41,999 | osh-nosouffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 7 | 7 | 0 | 1.7 | dash | - |
| 13 | 13 | 0 | 3.3 | bash | - |
| 89 | 52 | 44 | 3.5 | zsh | - |
| 15 | 10 | 6 | 28.6 | bumpleak/osh | mut |
| 17 | 14 | 3 | 30.6 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 13 | 6 | 30.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 25 | 14 | 11 | 25.3 | osh-native | mut+alloc |
| 27 | 20 | 7 | 25.7 | osh-native | mut+alloc+free |
| 31 | 24 | 7 | 18.4 | osh-native | mut+alloc+free+gc |
| 32 | 22 | 9 | 18.4 | osh-native | mut+alloc+free+gc+exit |
| 28 | 17 | 11 | 26.1 | osh-nosouffle | mut+alloc |
| 30 | 20 | 10 | 26.2 | osh-nosouffle | mut+alloc+free |
| 35 | 32 | 3 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 35 | 27 | 8 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 39 | 25 | 14 | 33.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 46 | 37 | 9 | 22.8 | _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 |
| 23 | 22 | 1 | 1.7 | dash | - |
| 42 | 41 | 1 | 3.4 | bash | - |
| 330 | 183 | 170 | 3.7 | zsh | - |
| 46 | 36 | 10 | 85.0 | bumpleak/osh | mut |
| 49 | 40 | 9 | 85.4 | _bin/cxx-opt+bumproot/osh | mut |
| 60 | 52 | 8 | 86.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 83 | 46 | 37 | 73.5 | osh-native | mut+alloc |
| 93 | 48 | 44 | 75.5 | osh-native | mut+alloc+free |
| 135 | 115 | 20 | 51.7 | osh-native | mut+alloc+free+gc |
| 135 | 109 | 26 | 52.4 | osh-native | mut+alloc+free+gc+exit |
| 91 | 62 | 29 | 74.1 | osh-nosouffle | mut+alloc |
| 103 | 69 | 34 | 75.9 | osh-nosouffle | mut+alloc+free |
| 150 | 126 | 24 | 52.1 | osh-nosouffle | mut+alloc+free+gc |
| 153 | 132 | 21 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 129 | 88 | 41 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 200 | 163 | 37 | 73.9 | _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 | 1 | 1 | 1.6 | dash | - |
| 4 | 4 | 0 | 3.1 | bash | - |
| 6 | 5 | 2 | 3.4 | zsh | - |
| 6 | 3 | 3 | 11.2 | bumpleak/osh | mut |
| 6 | 3 | 3 | 12.8 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 7 | 0 | 13.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 4 | 4 | 10.7 | osh-native | mut+alloc |
| 8 | 6 | 2 | 10.5 | osh-native | mut+alloc+free |
| 9 | 5 | 4 | 8.7 | osh-native | mut+alloc+free+gc |
| 9 | 8 | 1 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 9 | 4 | 5 | 11.0 | osh-nosouffle | mut+alloc |
| 9 | 4 | 5 | 11.1 | osh-nosouffle | mut+alloc+free |
| 10 | 9 | 1 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 8 | 2 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 12 | 7 | 5 | 12.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 10 | 2 | 9.8 | _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 |
| 9 | 9 | 0 | 1.6 | dash | - |
| 31 | 31 | 0 | 3.3 | bash | - |
| 21 | 18 | 3 | 3.4 | zsh | - |
| 16 | 13 | 4 | 33.7 | bumpleak/osh | mut |
| 19 | 17 | 2 | 33.1 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 18 | 3 | 33.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 28 | 13 | 15 | 26.9 | osh-native | mut+alloc |
| 30 | 22 | 9 | 27.0 | osh-native | mut+alloc+free |
| 20 | 19 | 1 | 8.3 | osh-native | mut+alloc+free+gc |
| 20 | 18 | 2 | 8.1 | osh-native | mut+alloc+free+gc+exit |
| 33 | 22 | 11 | 27.3 | osh-nosouffle | mut+alloc |
| 35 | 26 | 9 | 27.7 | osh-nosouffle | mut+alloc+free |
| 25 | 24 | 1 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 20 | 5 | 8.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 45 | 31 | 14 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 29 | 26 | 3 | 9.8 | _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 |
| 104 | 101 | 3 | 3.4 | bash | - |
| 212 | 164 | 48 | 57.9 | bumpleak/osh | mut |
| 221 | 174 | 47 | 57.7 | _bin/cxx-opt+bumproot/osh | mut |
| 238 | 190 | 48 | 58.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 254 | 193 | 61 | 48.8 | osh-native | mut+alloc |
| 262 | 193 | 68 | 50.7 | osh-native | mut+alloc+free |
| 221 | 176 | 45 | 9.0 | osh-native | mut+alloc+free+gc |
| 220 | 185 | 35 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 261 | 185 | 76 | 49.3 | osh-nosouffle | mut+alloc |
| 268 | 207 | 62 | 51.2 | osh-nosouffle | mut+alloc+free |
| 227 | 173 | 54 | 9.6 | osh-nosouffle | mut+alloc+free+gc |
| 226 | 165 | 61 | 9.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 279 | 211 | 68 | 64.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 252 | 194 | 58 | 10.7 | _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 |
| 9 | 5 | 4 | 3.8 | dash | - |
| 16 | 9 | 7 | 4.8 | bash | - |
| 15 | 9 | 7 | 3.9 | zsh | - |
| 17 | 7 | 11 | 12.7 | bumpleak/osh | mut |
| 19 | 7 | 12 | 13.4 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 10 | 10 | 13.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 19 | 9 | 11 | 11.4 | osh-native | mut+alloc |
| 21 | 10 | 12 | 11.8 | osh-native | mut+alloc+free |
| 21 | 9 | 13 | 9.4 | osh-native | mut+alloc+free+gc |
| 21 | 11 | 11 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 20 | 6 | 15 | 12.1 | osh-nosouffle | mut+alloc |
| 22 | 12 | 10 | 12.2 | osh-nosouffle | mut+alloc+free |
| 22 | 12 | 10 | 9.8 | osh-nosouffle | mut+alloc+free+gc |
| 22 | 11 | 12 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 11 | 12 | 13.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 24 | 13 | 11 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |