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.1 | 471,263 | 1,282 | 6 | 413,142 | 5 | 206,571 | osh-native |
| parse.configure-cpython | 34 | 3 | 9 | 12.0 | 18.7 | 471,263 | 1,282 | 6 | 413,150 | 5 | 206,575 | osh-nosouffle |
| parse.configure-coreutils | 133 | 23 | 59 | 45.9 | 51.7 | 1,638,002 | 4,764 | 12 | 1,056,640 | 6 | 787,841 | osh-native |
| parse.configure-coreutils | 145 | 23 | 62 | 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.9 | 102,791 | 180 | 3 | 86,628 | 1 | 43,314 | osh-native |
| parse.abuild | 9 | 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 | 24 | 0 | 1 | 2.8 | 8.8 | 572,115 | 22,608 | 12 | 50,000 | 0 | 2,985 | osh-nosouffle |
| ex.bashcomp-parse-help | 220 | 0 | 3 | 11.6 | 9.2 | 990,261 | 15,258 | 21 | 50,000 | 0 | 3,965 | osh-native |
| ex.bashcomp-parse-help | 226 | 0 | 3 | 11.6 | 9.6 | 990,260 | 15,258 | 21 | 50,000 | 0 | 3,969 | osh-nosouffle |
| ex.abuild-print-help | 20 | 1 | 2 | 3.0 | 9.4 | 117,219 | 277 | 3 | 83,990 | 1 | 41,995 | osh-native |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 10.1 | 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 | 6 | 1 | 1.6 | dash | - |
| 13 | 13 | 0 | 3.4 | bash | - |
| 88 | 51 | 44 | 3.5 | zsh | - |
| 16 | 10 | 6 | 29.1 | bumpleak/osh | mut |
| 16 | 11 | 5 | 28.8 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 14 | 5 | 30.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 25 | 17 | 8 | 25.4 | osh-native | mut+alloc |
| 27 | 17 | 10 | 25.7 | osh-native | mut+alloc+free |
| 31 | 22 | 9 | 18.1 | osh-native | mut+alloc+free+gc |
| 32 | 23 | 8 | 18.1 | osh-native | mut+alloc+free+gc+exit |
| 28 | 19 | 9 | 26.0 | osh-nosouffle | mut+alloc |
| 30 | 19 | 11 | 26.2 | osh-nosouffle | mut+alloc+free |
| 34 | 26 | 7 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 35 | 24 | 10 | 18.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 39 | 25 | 14 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 44 | 37 | 7 | 22.5 | _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.6 | dash | - |
| 43 | 42 | 1 | 3.4 | bash | - |
| 318 | 179 | 162 | 3.7 | zsh | - |
| 45 | 38 | 7 | 85.3 | bumpleak/osh | mut |
| 48 | 39 | 9 | 84.8 | _bin/cxx-opt+bumproot/osh | mut |
| 59 | 52 | 7 | 85.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 83 | 53 | 30 | 73.7 | osh-native | mut+alloc |
| 92 | 61 | 31 | 75.4 | osh-native | mut+alloc+free |
| 133 | 106 | 27 | 51.7 | osh-native | mut+alloc+free+gc |
| 137 | 119 | 18 | 52.4 | osh-native | mut+alloc+free+gc+exit |
| 92 | 59 | 33 | 74.1 | osh-nosouffle | mut+alloc |
| 100 | 69 | 30 | 76.2 | osh-nosouffle | mut+alloc+free |
| 145 | 125 | 20 | 52.1 | osh-nosouffle | mut+alloc+free+gc |
| 145 | 118 | 27 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 125 | 77 | 48 | 99.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 190 | 162 | 28 | 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 | 2 | 0 | 1.7 | dash | - |
| 4 | 2 | 2 | 3.1 | bash | - |
| 6 | 3 | 4 | 3.4 | zsh | - |
| 6 | 3 | 3 | 11.6 | bumpleak/osh | mut |
| 6 | 5 | 1 | 12.9 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 4 | 3 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 3 | 5 | 10.2 | osh-native | mut+alloc |
| 8 | 5 | 3 | 10.6 | osh-native | mut+alloc+free |
| 9 | 5 | 4 | 8.9 | osh-native | mut+alloc+free+gc |
| 9 | 5 | 4 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 8 | 6 | 3 | 11.0 | osh-nosouffle | mut+alloc |
| 9 | 4 | 5 | 11.0 | osh-nosouffle | mut+alloc+free |
| 9 | 6 | 4 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 7 | 3 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 8 | 3 | 12.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 9 | 2 | 9.5 | _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.4 | dash | - |
| 30 | 31 | 0 | 3.1 | bash | - |
| 21 | 15 | 6 | 3.4 | zsh | - |
| 16 | 10 | 7 | 32.8 | bumpleak/osh | mut |
| 18 | 15 | 3 | 33.0 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 15 | 5 | 33.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 27 | 15 | 12 | 26.7 | osh-native | mut+alloc |
| 30 | 22 | 8 | 27.0 | osh-native | mut+alloc+free |
| 20 | 18 | 2 | 8.3 | osh-native | mut+alloc+free+gc |
| 19 | 18 | 1 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 33 | 22 | 11 | 27.4 | osh-nosouffle | mut+alloc |
| 35 | 24 | 10 | 27.4 | osh-nosouffle | mut+alloc+free |
| 24 | 19 | 5 | 8.8 | osh-nosouffle | mut+alloc+free+gc |
| 24 | 22 | 2 | 8.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 45 | 29 | 16 | 36.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 29 | 25 | 4 | 9.7 | _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 | 103 | 1 | 3.4 | bash | - |
| 210 | 155 | 55 | 56.3 | bumpleak/osh | mut |
| 220 | 164 | 56 | 57.3 | _bin/cxx-opt+bumproot/osh | mut |
| 238 | 174 | 64 | 57.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 253 | 182 | 72 | 48.8 | osh-native | mut+alloc |
| 262 | 187 | 75 | 50.7 | osh-native | mut+alloc+free |
| 220 | 175 | 45 | 9.2 | osh-native | mut+alloc+free+gc |
| 220 | 179 | 41 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 262 | 188 | 74 | 49.3 | osh-nosouffle | mut+alloc |
| 269 | 200 | 69 | 51.4 | osh-nosouffle | mut+alloc+free |
| 226 | 180 | 46 | 9.6 | osh-nosouffle | mut+alloc+free+gc |
| 226 | 175 | 51 | 9.4 | osh-nosouffle | mut+alloc+free+gc+exit |
| 279 | 198 | 81 | 65.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 251 | 199 | 52 | 10.5 | _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 | 4 | 5 | 4.1 | dash | - |
| 16 | 10 | 7 | 4.7 | bash | - |
| 15 | 6 | 9 | 3.9 | zsh | - |
| 17 | 10 | 7 | 12.4 | bumpleak/osh | mut |
| 18 | 9 | 10 | 13.5 | _bin/cxx-opt+bumproot/osh | mut |
| 18 | 7 | 12 | 13.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 19 | 8 | 11 | 11.7 | osh-native | mut+alloc |
| 20 | 12 | 8 | 11.7 | osh-native | mut+alloc+free |
| 20 | 11 | 10 | 9.4 | osh-native | mut+alloc+free+gc |
| 20 | 11 | 9 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 20 | 7 | 13 | 12.2 | osh-nosouffle | mut+alloc |
| 21 | 8 | 13 | 12.3 | osh-nosouffle | mut+alloc+free |
| 21 | 12 | 10 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 22 | 14 | 9 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 11 | 13 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 23 | 12 | 12 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |