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 | 37 | 7 | 14 | 12.0 | 18.4 | 471,271 | 1,282 | 6 | 413,158 | 5 | 206,579 | osh-native |
| parse.configure-cpython | 41 | 7 | 15 | 12.0 | 18.7 | 471,271 | 1,282 | 6 | 413,166 | 5 | 206,583 | osh-nosouffle |
| parse.configure-coreutils | 182 | 38 | 103 | 45.9 | 51.6 | 1,638,010 | 4,764 | 12 | 1,056,656 | 6 | 787,849 | osh-native |
| parse.configure-coreutils | 181 | 31 | 94 | 45.9 | 52.1 | 1,638,009 | 4,764 | 12 | 1,056,664 | 6 | 787,853 | osh-nosouffle |
| parse.abuild | 10 | 1 | 2 | 2.6 | 8.7 | 102,799 | 180 | 3 | 86,644 | 1 | 43,322 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 9.2 | 102,799 | 180 | 3 | 86,652 | 1 | 43,326 | osh-nosouffle |
| ex.compute-fib | 21 | 0 | 2 | 2.8 | 8.1 | 572,123 | 22,608 | 12 | 50,000 | 0 | 2,990 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.7 | 572,123 | 22,608 | 12 | 50,000 | 0 | 2,994 | osh-nosouffle |
| ex.bashcomp-parse-help | 234 | 0 | 6 | 11.6 | 9.2 | 990,269 | 15,258 | 21 | 50,000 | 0 | 3,967 | osh-native |
| ex.bashcomp-parse-help | 240 | 0 | 7 | 11.6 | 9.4 | 990,268 | 15,258 | 21 | 50,000 | 0 | 3,973 | osh-nosouffle |
| ex.abuild-print-help | 22 | 1 | 2 | 3.0 | 9.4 | 117,230 | 277 | 3 | 84,006 | 1 | 42,003 | osh-native |
| ex.abuild-print-help | 23 | 1 | 2 | 3.0 | 10.1 | 117,229 | 277 | 3 | 84,014 | 1 | 42,007 | osh-nosouffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 7 | 6 | 1 | 1.6 | dash | - |
| 13 | 11 | 2 | 3.3 | bash | - |
| 95 | 48 | 54 | 3.5 | zsh | - |
| 16 | 11 | 6 | 30.7 | bumpleak/osh | mut |
| 18 | 11 | 7 | 28.6 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 14 | 6 | 30.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 14 | 13 | 25.6 | osh-native | mut+alloc |
| 28 | 15 | 13 | 25.8 | osh-native | mut+alloc+free |
| 37 | 29 | 8 | 18.4 | osh-native | mut+alloc+free+gc |
| 41 | 30 | 11 | 18.4 | osh-native | mut+alloc+free+gc+exit |
| 29 | 19 | 10 | 25.8 | osh-nosouffle | mut+alloc |
| 31 | 21 | 10 | 26.3 | osh-nosouffle | mut+alloc+free |
| 41 | 27 | 14 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 47 | 37 | 10 | 18.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 40 | 26 | 14 | 32.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 58 | 48 | 10 | 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 | 21 | 2 | 1.6 | dash | - |
| 43 | 42 | 1 | 3.5 | bash | - |
| 331 | 176 | 178 | 3.7 | zsh | - |
| 47 | 39 | 8 | 86.3 | bumpleak/osh | mut |
| 51 | 43 | 8 | 85.2 | _bin/cxx-opt+bumproot/osh | mut |
| 60 | 48 | 12 | 86.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 83 | 52 | 30 | 73.7 | osh-native | mut+alloc |
| 95 | 59 | 36 | 75.5 | osh-native | mut+alloc+free |
| 182 | 152 | 30 | 51.6 | osh-native | mut+alloc+free+gc |
| 191 | 162 | 29 | 52.4 | osh-native | mut+alloc+free+gc+exit |
| 93 | 55 | 37 | 74.2 | osh-nosouffle | mut+alloc |
| 102 | 70 | 32 | 75.9 | osh-nosouffle | mut+alloc+free |
| 181 | 156 | 25 | 52.1 | osh-nosouffle | mut+alloc+free+gc |
| 211 | 182 | 29 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 126 | 77 | 49 | 99.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 232 | 200 | 32 | 72.0 | _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 | 4 | 0 | 3.1 | bash | - |
| 7 | 4 | 2 | 3.3 | zsh | - |
| 7 | 5 | 2 | 12.5 | bumpleak/osh | mut |
| 7 | 6 | 1 | 13.2 | _bin/cxx-opt+bumproot/osh | mut |
| 8 | 5 | 3 | 13.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 5 | 3 | 10.6 | osh-native | mut+alloc |
| 9 | 9 | 0 | 10.6 | osh-native | mut+alloc+free |
| 10 | 6 | 4 | 8.7 | osh-native | mut+alloc+free+gc |
| 10 | 7 | 3 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 9 | 7 | 2 | 11.1 | osh-nosouffle | mut+alloc |
| 10 | 5 | 4 | 11.0 | osh-nosouffle | mut+alloc+free |
| 10 | 7 | 3 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 11 | 7 | 4 | 9.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 1 | 10 | 11.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 13 | 10 | 3 | 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 | 9 | 1 | 1.6 | dash | - |
| 31 | 30 | 1 | 3.3 | bash | - |
| 22 | 20 | 2 | 3.3 | zsh | - |
| 17 | 14 | 3 | 32.2 | bumpleak/osh | mut |
| 19 | 13 | 6 | 32.7 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 16 | 6 | 32.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 23 | 6 | 26.9 | osh-native | mut+alloc |
| 32 | 21 | 11 | 27.1 | osh-native | mut+alloc+free |
| 21 | 20 | 1 | 8.1 | osh-native | mut+alloc+free+gc |
| 20 | 16 | 4 | 8.4 | osh-native | mut+alloc+free+gc+exit |
| 34 | 22 | 12 | 27.3 | osh-nosouffle | mut+alloc |
| 39 | 26 | 13 | 27.7 | osh-nosouffle | mut+alloc+free |
| 25 | 23 | 2 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 26 | 21 | 5 | 8.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 47 | 26 | 20 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 33 | 29 | 4 | 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 | 100 | 3 | 3.4 | bash | - |
| 215 | 160 | 55 | 57.6 | bumpleak/osh | mut |
| 222 | 171 | 51 | 58.0 | _bin/cxx-opt+bumproot/osh | mut |
| 246 | 182 | 64 | 58.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 258 | 191 | 66 | 48.9 | osh-native | mut+alloc |
| 273 | 193 | 80 | 50.9 | osh-native | mut+alloc+free |
| 234 | 189 | 45 | 9.2 | osh-native | mut+alloc+free+gc |
| 234 | 176 | 58 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 267 | 201 | 66 | 49.3 | osh-nosouffle | mut+alloc |
| 282 | 218 | 63 | 51.3 | osh-nosouffle | mut+alloc+free |
| 240 | 180 | 60 | 9.4 | osh-nosouffle | mut+alloc+free+gc |
| 234 | 194 | 40 | 9.4 | osh-nosouffle | mut+alloc+free+gc+exit |
| 280 | 207 | 73 | 65.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 293 | 245 | 48 | 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 | 5 | 5 | 4.1 | dash | - |
| 17 | 8 | 9 | 4.7 | bash | - |
| 16 | 4 | 13 | 3.9 | zsh | - |
| 20 | 10 | 11 | 13.3 | bumpleak/osh | mut |
| 19 | 7 | 13 | 13.0 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 12 | 9 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 9 | 13 | 11.5 | osh-native | mut+alloc |
| 21 | 7 | 15 | 11.8 | osh-native | mut+alloc+free |
| 22 | 11 | 11 | 9.4 | osh-native | mut+alloc+free+gc |
| 23 | 10 | 13 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 22 | 7 | 16 | 12.1 | osh-nosouffle | mut+alloc |
| 24 | 13 | 11 | 12.3 | osh-nosouffle | mut+alloc+free |
| 23 | 11 | 13 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 24 | 13 | 12 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 24 | 15 | 10 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 13 | 12 | 10.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |