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 | 32 | 3 | 9 | 12.0 | 18.1 | 471,166 | 1,282 | 6 | 412,804 | 5 | 206,402 | osh-native |
| parse.configure-cpython | 34 | 3 | 9 | 12.0 | 18.7 | 471,166 | 1,282 | 6 | 412,812 | 5 | 206,406 | osh-nosouffle |
| parse.configure-coreutils | 134 | 23 | 61 | 46.1 | 51.9 | 1,637,720 | 4,764 | 12 | 1,062,604 | 6 | 791,850 | osh-native |
| parse.configure-coreutils | 154 | 25 | 69 | 46.1 | 52.3 | 1,637,719 | 4,764 | 12 | 1,062,612 | 6 | 791,854 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.8 | 102,768 | 180 | 3 | 86,594 | 1 | 43,297 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 9.3 | 102,768 | 180 | 3 | 86,602 | 1 | 43,301 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 1 | 2.8 | 8.3 | 572,104 | 22,608 | 12 | 50,000 | 0 | 2,977 | osh-native |
| ex.compute-fib | 25 | 0 | 1 | 2.8 | 8.9 | 572,104 | 22,608 | 12 | 50,000 | 0 | 2,981 | osh-nosouffle |
| ex.bashcomp-parse-help | 222 | 0 | 3 | 11.6 | 9.0 | 990,250 | 15,258 | 21 | 50,000 | 0 | 3,957 | osh-native |
| ex.bashcomp-parse-help | 228 | 0 | 3 | 11.6 | 9.6 | 990,249 | 15,258 | 21 | 50,000 | 0 | 3,966 | osh-nosouffle |
| ex.abuild-print-help | 20 | 1 | 2 | 3.0 | 9.6 | 117,196 | 277 | 3 | 83,964 | 1 | 41,982 | osh-native |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 10.0 | 117,195 | 277 | 3 | 83,972 | 1 | 41,986 | osh-nosouffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 7 | 6 | 1 | 1.6 | dash | - |
| 13 | 12 | 1 | 3.1 | bash | - |
| 87 | 47 | 47 | 3.4 | zsh | - |
| 16 | 11 | 4 | 29.1 | bumpleak/osh | mut |
| 15 | 12 | 3 | 29.7 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 16 | 3 | 30.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 25 | 14 | 11 | 25.6 | osh-native | mut+alloc |
| 27 | 18 | 9 | 25.8 | osh-native | mut+alloc+free |
| 32 | 23 | 9 | 18.1 | osh-native | mut+alloc+free+gc |
| 32 | 24 | 8 | 18.4 | osh-native | mut+alloc+free+gc+exit |
| 28 | 11 | 17 | 25.8 | osh-nosouffle | mut+alloc |
| 30 | 21 | 9 | 26.3 | osh-nosouffle | mut+alloc+free |
| 34 | 25 | 9 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 34 | 26 | 9 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 39 | 19 | 21 | 32.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 43 | 35 | 8 | 22.7 | _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.6 | dash | - |
| 43 | 41 | 2 | 3.4 | bash | - |
| 321 | 187 | 156 | 3.8 | zsh | - |
| 44 | 36 | 8 | 85.2 | bumpleak/osh | mut |
| 48 | 39 | 9 | 85.9 | _bin/cxx-opt+bumproot/osh | mut |
| 58 | 44 | 14 | 85.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 83 | 48 | 35 | 73.8 | osh-native | mut+alloc |
| 89 | 57 | 32 | 75.5 | osh-native | mut+alloc+free |
| 134 | 107 | 27 | 51.9 | osh-native | mut+alloc+free+gc |
| 139 | 112 | 27 | 52.5 | osh-native | mut+alloc+free+gc+exit |
| 91 | 58 | 33 | 74.2 | osh-nosouffle | mut+alloc |
| 100 | 69 | 31 | 75.9 | osh-nosouffle | mut+alloc+free |
| 154 | 127 | 26 | 52.3 | osh-nosouffle | mut+alloc+free+gc |
| 148 | 131 | 17 | 53.0 | osh-nosouffle | mut+alloc+free+gc+exit |
| 125 | 79 | 46 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 189 | 161 | 28 | 73.4 | _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 | 1 | 3.1 | bash | - |
| 6 | 4 | 3 | 3.4 | zsh | - |
| 6 | 4 | 2 | 11.9 | bumpleak/osh | mut |
| 6 | 4 | 2 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
| 6 | 4 | 3 | 11.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 5 | 3 | 10.5 | osh-native | mut+alloc |
| 8 | 4 | 4 | 10.6 | osh-native | mut+alloc+free |
| 9 | 9 | 0 | 8.8 | osh-native | mut+alloc+free+gc |
| 9 | 7 | 2 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 8 | 5 | 3 | 11.0 | osh-nosouffle | mut+alloc |
| 9 | 5 | 4 | 11.1 | osh-nosouffle | mut+alloc+free |
| 10 | 6 | 4 | 9.3 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 7 | 3 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 6 | 5 | 11.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 11 | 10 | 1 | 9.4 | _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 | 1 | 1.7 | dash | - |
| 43 | 42 | 1 | 3.3 | bash | - |
| 21 | 19 | 2 | 3.4 | zsh | - |
| 17 | 12 | 5 | 32.7 | bumpleak/osh | mut |
| 18 | 14 | 4 | 32.8 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 17 | 3 | 32.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 28 | 15 | 13 | 26.7 | osh-native | mut+alloc |
| 29 | 18 | 12 | 27.0 | osh-native | mut+alloc+free |
| 20 | 17 | 3 | 8.3 | osh-native | mut+alloc+free+gc |
| 20 | 18 | 2 | 8.4 | osh-native | mut+alloc+free+gc+exit |
| 33 | 22 | 11 | 27.5 | osh-nosouffle | mut+alloc |
| 34 | 23 | 11 | 27.5 | osh-nosouffle | mut+alloc+free |
| 25 | 22 | 3 | 8.9 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 24 | 1 | 8.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 45 | 26 | 19 | 36.1 | _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 | 98 | 5 | 3.4 | bash | - |
| 212 | 159 | 53 | 57.1 | bumpleak/osh | mut |
| 219 | 166 | 52 | 56.1 | _bin/cxx-opt+bumproot/osh | mut |
| 236 | 173 | 63 | 57.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 256 | 192 | 64 | 48.9 | osh-native | mut+alloc |
| 264 | 189 | 75 | 50.7 | osh-native | mut+alloc+free |
| 222 | 172 | 51 | 9.0 | osh-native | mut+alloc+free+gc |
| 221 | 173 | 48 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 265 | 190 | 74 | 49.4 | osh-nosouffle | mut+alloc |
| 271 | 196 | 75 | 51.3 | osh-nosouffle | mut+alloc+free |
| 228 | 185 | 43 | 9.6 | osh-nosouffle | mut+alloc+free+gc |
| 248 | 197 | 51 | 9.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 274 | 195 | 79 | 65.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 249 | 202 | 47 | 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 | 7 | 2 | 3.9 | dash | - |
| 16 | 11 | 5 | 4.7 | bash | - |
| 15 | 8 | 8 | 3.9 | zsh | - |
| 18 | 10 | 9 | 13.0 | bumpleak/osh | mut |
| 18 | 9 | 10 | 13.0 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 9 | 11 | 13.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 19 | 9 | 11 | 11.5 | osh-native | mut+alloc |
| 20 | 9 | 11 | 11.8 | osh-native | mut+alloc+free |
| 20 | 8 | 13 | 9.6 | osh-native | mut+alloc+free+gc |
| 21 | 7 | 14 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 20 | 8 | 12 | 12.2 | osh-nosouffle | mut+alloc |
| 21 | 8 | 14 | 12.2 | osh-nosouffle | mut+alloc+free |
| 21 | 13 | 8 | 10.0 | osh-nosouffle | mut+alloc+free+gc |
| 22 | 13 | 9 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 9 | 14 | 13.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 23 | 15 | 8 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |