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 | 4 | 11 | 12.0 | 18.4 | 471,269 | 1,282 | 6 | 413,154 | 5 | 206,577 | osh-native |
| parse.configure-cpython | 33 | 4 | 11 | 12.0 | 18.7 | 471,269 | 1,282 | 6 | 413,162 | 5 | 206,581 | osh-nosouffle |
| parse.configure-coreutils | 128 | 21 | 62 | 45.9 | 52.0 | 1,638,008 | 4,764 | 12 | 1,056,652 | 6 | 787,847 | osh-native |
| parse.configure-coreutils | 138 | 21 | 63 | 45.9 | 52.1 | 1,638,007 | 4,764 | 12 | 1,056,660 | 6 | 787,851 | osh-nosouffle |
| parse.abuild | 10 | 1 | 2 | 2.6 | 8.7 | 102,797 | 180 | 3 | 86,640 | 1 | 43,320 | osh-native |
| parse.abuild | 9 | 1 | 2 | 2.6 | 9.3 | 102,797 | 180 | 3 | 86,648 | 1 | 43,324 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 2 | 2.8 | 8.3 | 572,121 | 22,608 | 12 | 50,000 | 0 | 2,987 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.8 | 572,121 | 22,608 | 12 | 50,000 | 0 | 2,992 | osh-nosouffle |
| ex.bashcomp-parse-help | 172 | 0 | 5 | 11.6 | 9.2 | 990,267 | 15,258 | 21 | 50,000 | 0 | 3,965 | osh-native |
| ex.bashcomp-parse-help | 176 | 0 | 5 | 11.6 | 9.6 | 990,266 | 15,258 | 21 | 50,000 | 0 | 3,971 | osh-nosouffle |
| ex.abuild-print-help | 18 | 1 | 2 | 3.0 | 9.4 | 117,228 | 277 | 3 | 84,002 | 1 | 42,001 | osh-native |
| ex.abuild-print-help | 19 | 1 | 2 | 3.0 | 10.1 | 117,227 | 277 | 3 | 84,010 | 1 | 42,005 | osh-nosouffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 5 | 4 | 1 | 1.7 | dash | - |
| 11 | 10 | 1 | 3.3 | bash | - |
| 67 | 36 | 35 | 3.5 | zsh | - |
| 16 | 9 | 6 | 28.9 | bumpleak/osh | mut |
| 17 | 12 | 5 | 30.4 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 14 | 6 | 30.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 22 | 16 | 6 | 25.7 | osh-native | mut+alloc |
| 24 | 20 | 4 | 25.7 | osh-native | mut+alloc+free |
| 31 | 25 | 6 | 18.4 | osh-native | mut+alloc+free+gc |
| 32 | 26 | 6 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 25 | 13 | 11 | 26.1 | osh-nosouffle | mut+alloc |
| 28 | 21 | 7 | 26.3 | osh-nosouffle | mut+alloc+free |
| 33 | 27 | 6 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 34 | 32 | 2 | 19.0 | osh-nosouffle | mut+alloc+free+gc+exit |
| 33 | 19 | 14 | 32.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 43 | 36 | 7 | 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 |
| 20 | 20 | 1 | 1.7 | dash | - |
| 38 | 38 | 0 | 3.4 | bash | - |
| 253 | 149 | 116 | 3.7 | zsh | - |
| 49 | 38 | 11 | 85.0 | bumpleak/osh | mut |
| 54 | 36 | 18 | 86.4 | _bin/cxx-opt+bumproot/osh | mut |
| 61 | 41 | 20 | 85.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 70 | 46 | 24 | 73.8 | osh-native | mut+alloc |
| 81 | 59 | 22 | 75.4 | osh-native | mut+alloc+free |
| 128 | 110 | 17 | 52.0 | osh-native | mut+alloc+free+gc |
| 133 | 115 | 18 | 52.5 | osh-native | mut+alloc+free+gc+exit |
| 79 | 53 | 27 | 74.2 | osh-nosouffle | mut+alloc |
| 89 | 68 | 21 | 76.0 | osh-nosouffle | mut+alloc+free |
| 138 | 120 | 18 | 52.1 | osh-nosouffle | mut+alloc+free+gc |
| 145 | 121 | 24 | 53.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 109 | 69 | 40 | 98.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 183 | 157 | 26 | 72.8 | _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 |
| 1 | 1 | 1 | 1.7 | dash | - |
| 3 | 2 | 1 | 3.3 | bash | - |
| 5 | 4 | 1 | 3.5 | zsh | - |
| 6 | 4 | 2 | 12.0 | bumpleak/osh | mut |
| 6 | 3 | 3 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
| 6 | 5 | 1 | 13.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 7 | 6 | 1 | 10.5 | osh-native | mut+alloc |
| 7 | 4 | 3 | 10.9 | osh-native | mut+alloc+free |
| 10 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc |
| 9 | 7 | 2 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 8 | 8 | 0 | 11.0 | osh-nosouffle | mut+alloc |
| 8 | 6 | 2 | 11.1 | osh-nosouffle | mut+alloc+free |
| 9 | 8 | 1 | 9.3 | osh-nosouffle | mut+alloc+free+gc |
| 9 | 8 | 2 | 9.4 | osh-nosouffle | mut+alloc+free+gc+exit |
| 9 | 6 | 3 | 12.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 11 | 6 | 5 | 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 | 8 | 1 | 1.6 | dash | - |
| 29 | 29 | 0 | 3.1 | bash | - |
| 17 | 15 | 2 | 3.5 | zsh | - |
| 19 | 13 | 6 | 32.7 | bumpleak/osh | mut |
| 22 | 14 | 8 | 32.9 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 16 | 7 | 32.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 25 | 19 | 6 | 27.0 | osh-native | mut+alloc |
| 29 | 19 | 10 | 27.1 | osh-native | mut+alloc+free |
| 20 | 18 | 2 | 8.3 | osh-native | mut+alloc+free+gc |
| 20 | 17 | 3 | 8.4 | osh-native | mut+alloc+free+gc+exit |
| 30 | 24 | 6 | 27.5 | osh-nosouffle | mut+alloc |
| 33 | 24 | 9 | 27.6 | osh-nosouffle | mut+alloc+free |
| 25 | 21 | 4 | 8.8 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 22 | 3 | 8.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 40 | 19 | 21 | 36.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 28 | 25 | 3 | 10.0 | _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 |
| 96 | 94 | 2 | 3.5 | bash | - |
| 170 | 140 | 30 | 56.9 | bumpleak/osh | mut |
| 180 | 145 | 35 | 58.1 | _bin/cxx-opt+bumproot/osh | mut |
| 190 | 149 | 41 | 57.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 196 | 159 | 37 | 48.8 | osh-native | mut+alloc |
| 200 | 159 | 41 | 50.7 | osh-native | mut+alloc+free |
| 172 | 152 | 20 | 9.2 | osh-native | mut+alloc+free+gc |
| 172 | 150 | 22 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 198 | 164 | 34 | 49.3 | osh-nosouffle | mut+alloc |
| 209 | 167 | 42 | 51.4 | osh-nosouffle | mut+alloc+free |
| 176 | 158 | 18 | 9.6 | osh-nosouffle | mut+alloc+free+gc |
| 176 | 152 | 24 | 9.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 220 | 168 | 52 | 65.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 206 | 192 | 14 | 10.8 | _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 |
| 7 | 2 | 6 | 4.1 | dash | - |
| 13 | 9 | 5 | 4.6 | bash | - |
| 12 | 6 | 6 | 3.9 | zsh | - |
| 14 | 8 | 6 | 13.9 | bumpleak/osh | mut |
| 18 | 7 | 11 | 13.5 | _bin/cxx-opt+bumproot/osh | mut |
| 18 | 11 | 7 | 14.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 12 | 8 | 11.7 | osh-native | mut+alloc |
| 18 | 10 | 8 | 11.7 | osh-native | mut+alloc+free |
| 18 | 10 | 8 | 9.4 | osh-native | mut+alloc+free+gc |
| 18 | 10 | 9 | 9.8 | osh-native | mut+alloc+free+gc+exit |
| 18 | 11 | 6 | 12.2 | osh-nosouffle | mut+alloc |
| 19 | 10 | 10 | 12.3 | osh-nosouffle | mut+alloc+free |
| 19 | 10 | 10 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 20 | 13 | 7 | 10.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 22 | 12 | 9 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 21 | 9 | 12 | 10.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |