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 | 35 | 4 | 12 | 12.0 | 18.4 | 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 | 140 | 25 | 66 | 45.9 | 51.9 | 1,638,002 | 4,764 | 12 | 1,056,640 | 6 | 787,841 | osh-native |
| parse.configure-coreutils | 150 | 24 | 65 | 45.9 | 52.3 | 1,638,001 | 4,764 | 12 | 1,056,648 | 6 | 787,845 | osh-nosouffle |
| parse.abuild | 10 | 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 | 2 | 2.8 | 8.4 | 572,115 | 22,608 | 12 | 50,000 | 0 | 2,982 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.9 | 572,115 | 22,608 | 12 | 50,000 | 0 | 2,985 | osh-nosouffle |
| ex.bashcomp-parse-help | 223 | 0 | 4 | 11.6 | 9.0 | 990,261 | 15,258 | 21 | 50,000 | 0 | 3,965 | osh-native |
| ex.bashcomp-parse-help | 228 | 0 | 3 | 11.6 | 9.6 | 990,260 | 15,258 | 21 | 50,000 | 0 | 3,969 | osh-nosouffle |
| ex.abuild-print-help | 22 | 1 | 3 | 3.0 | 9.4 | 117,219 | 277 | 3 | 83,990 | 1 | 41,995 | osh-native |
| ex.abuild-print-help | 22 | 1 | 2 | 3.0 | 10.0 | 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 | 5 | 2 | 1.7 | dash | - |
| 13 | 13 | 0 | 3.3 | bash | - |
| 89 | 54 | 42 | 3.5 | zsh | - |
| 16 | 13 | 3 | 29.1 | bumpleak/osh | mut |
| 17 | 10 | 6 | 30.6 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 13 | 6 | 29.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 25 | 17 | 9 | 25.7 | osh-native | mut+alloc |
| 27 | 18 | 9 | 25.7 | osh-native | mut+alloc+free |
| 35 | 25 | 10 | 18.4 | osh-native | mut+alloc+free+gc |
| 33 | 27 | 6 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 28 | 16 | 12 | 26.0 | osh-nosouffle | mut+alloc |
| 30 | 22 | 8 | 26.2 | osh-nosouffle | mut+alloc+free |
| 34 | 20 | 14 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 36 | 26 | 9 | 18.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 40 | 25 | 15 | 32.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 46 | 35 | 11 | 22.6 | _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 | 23 | 0 | 1.7 | dash | - |
| 42 | 41 | 1 | 3.5 | bash | - |
| 331 | 186 | 166 | 3.7 | zsh | - |
| 45 | 37 | 8 | 85.2 | bumpleak/osh | mut |
| 48 | 39 | 8 | 86.3 | _bin/cxx-opt+bumproot/osh | mut |
| 58 | 45 | 14 | 85.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 84 | 49 | 34 | 73.7 | osh-native | mut+alloc |
| 91 | 49 | 42 | 75.5 | osh-native | mut+alloc+free |
| 140 | 119 | 21 | 51.9 | osh-native | mut+alloc+free+gc |
| 145 | 122 | 23 | 52.4 | osh-native | mut+alloc+free+gc+exit |
| 92 | 57 | 35 | 74.2 | osh-nosouffle | mut+alloc |
| 102 | 65 | 37 | 75.9 | osh-nosouffle | mut+alloc+free |
| 150 | 121 | 29 | 52.3 | osh-nosouffle | mut+alloc+free+gc |
| 149 | 126 | 23 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 130 | 82 | 48 | 98.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 213 | 175 | 37 | 73.5 | _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.7 | dash | - |
| 4 | 2 | 1 | 3.1 | bash | - |
| 7 | 3 | 4 | 3.4 | zsh | - |
| 6 | 3 | 3 | 11.5 | bumpleak/osh | mut |
| 6 | 4 | 2 | 11.6 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 3 | 4 | 11.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 5 | 3 | 10.6 | osh-native | mut+alloc |
| 9 | 1 | 8 | 10.6 | osh-native | mut+alloc+free |
| 10 | 7 | 3 | 8.7 | osh-native | mut+alloc+free+gc |
| 10 | 6 | 4 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 9 | 8 | 1 | 10.9 | osh-nosouffle | mut+alloc |
| 9 | 6 | 3 | 11.0 | osh-nosouffle | mut+alloc+free |
| 10 | 6 | 4 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 10 | 0 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 12 | 7 | 5 | 11.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 8 | 4 | 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 |
| 10 | 10 | 0 | 1.6 | dash | - |
| 31 | 31 | 0 | 3.1 | bash | - |
| 21 | 14 | 7 | 3.4 | zsh | - |
| 17 | 13 | 4 | 33.5 | bumpleak/osh | mut |
| 19 | 14 | 5 | 32.6 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 15 | 6 | 32.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 16 | 13 | 27.0 | osh-native | mut+alloc |
| 31 | 18 | 13 | 27.1 | osh-native | mut+alloc+free |
| 20 | 16 | 4 | 8.4 | osh-native | mut+alloc+free+gc |
| 21 | 17 | 4 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 34 | 25 | 8 | 27.4 | osh-nosouffle | mut+alloc |
| 35 | 22 | 14 | 27.5 | osh-nosouffle | mut+alloc+free |
| 25 | 24 | 1 | 8.9 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 23 | 2 | 8.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 47 | 30 | 16 | 36.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 31 | 28 | 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 |
| 103 | 101 | 2 | 3.4 | bash | - |
| 213 | 168 | 45 | 56.1 | bumpleak/osh | mut |
| 220 | 176 | 44 | 58.0 | _bin/cxx-opt+bumproot/osh | mut |
| 237 | 175 | 62 | 58.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 254 | 181 | 73 | 48.8 | osh-native | mut+alloc |
| 264 | 187 | 77 | 50.7 | osh-native | mut+alloc+free |
| 223 | 182 | 41 | 9.0 | osh-native | mut+alloc+free+gc |
| 223 | 174 | 49 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 263 | 186 | 77 | 49.2 | osh-nosouffle | mut+alloc |
| 273 | 203 | 70 | 51.2 | osh-nosouffle | mut+alloc+free |
| 228 | 177 | 51 | 9.6 | osh-nosouffle | mut+alloc+free+gc |
| 228 | 178 | 50 | 9.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 282 | 197 | 84 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 252 | 212 | 40 | 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 | 4 | 5 | 3.9 | dash | - |
| 16 | 6 | 10 | 4.8 | bash | - |
| 16 | 4 | 12 | 3.8 | zsh | - |
| 17 | 6 | 12 | 12.7 | bumpleak/osh | mut |
| 19 | 6 | 13 | 13.4 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 10 | 10 | 13.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 19 | 10 | 10 | 11.5 | osh-native | mut+alloc |
| 22 | 9 | 14 | 11.7 | osh-native | mut+alloc+free |
| 22 | 11 | 12 | 9.4 | osh-native | mut+alloc+free+gc |
| 23 | 16 | 8 | 9.4 | osh-native | mut+alloc+free+gc+exit |
| 21 | 10 | 11 | 12.1 | osh-nosouffle | mut+alloc |
| 22 | 9 | 13 | 12.3 | osh-nosouffle | mut+alloc+free |
| 22 | 12 | 11 | 10.0 | osh-nosouffle | mut+alloc+free+gc |
| 23 | 9 | 14 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 12 | 11 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 24 | 15 | 9 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |