Source code: oil/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 | 26 | 2 | 7 | 12.0 | 18.0 | 476,754 | 1,282 | 6 | 406,328 | 5 | 203,164 | osh-native |
| parse.configure-cpython | 24 | 2 | 7 | 12.0 | 17.5 | 476,754 | 1,282 | 6 | 406,198 | 5 | 203,099 | osh-native-souffle |
| parse.configure-coreutils | 108 | 18 | 43 | 44.5 | 49.9 | 1,653,342 | 4,764 | 12 | 1,025,524 | 6 | 764,305 | osh-native |
| parse.configure-coreutils | 105 | 19 | 47 | 45.9 | 51.1 | 1,653,341 | 4,764 | 12 | 1,063,854 | 6 | 792,365 | osh-native-souffle |
| parse.abuild | 6 | 0 | 1 | 2.6 | 8.6 | 101,945 | 180 | 2 | 75,028 | 1 | 37,514 | osh-native |
| parse.abuild | 7 | 1 | 2 | 2.4 | 8.1 | 101,945 | 180 | 3 | 87,090 | 1 | 43,545 | osh-native-souffle |
| ex.compute-fib | 20 | 0 | 1 | 2.1 | 8.1 | 579,612 | 22,608 | 12 | 50,000 | 0 | 2,918 | osh-native |
| ex.compute-fib | 15 | 0 | 1 | 2.1 | 7.7 | 579,612 | 22,608 | 12 | 50,000 | 0 | 2,857 | osh-native-souffle |
| ex.bashcomp-parse-help | 123 | 0 | 2 | 10.3 | 8.9 | 995,291 | 15,258 | 21 | 50,000 | 0 | 3,900 | osh-native |
| ex.bashcomp-parse-help | 118 | 0 | 2 | 10.3 | 8.5 | 995,290 | 15,258 | 21 | 50,000 | 0 | 3,843 | osh-native-souffle |
| ex.abuild-print-help | 24 | 0 | 1 | 2.8 | 9.2 | 116,321 | 277 | 3 | 85,246 | 1 | 42,623 | osh-native |
| ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.7 | 116,321 | 277 | 3 | 85,122 | 1 | 42,561 | osh-native-souffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 5 | 5 | 0 | 1.7 | dash | - |
| 16 | 16 | 0 | 3.2 | bash | - |
| 111 | 55 | 62 | 3.6 | zsh | - |
| 12 | 8 | 4 | 28.0 | bumpleak/osh | mut |
| 14 | 9 | 5 | 29.8 | _bin/cxx-opt+bumproot/osh | mut |
| 16 | 12 | 4 | 30.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 22 | 9 | 13 | 25.3 | osh-native | mut+alloc |
| 23 | 8 | 16 | 25.7 | osh-native | mut+alloc+free |
| 26 | 17 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
| 26 | 15 | 11 | 18.1 | osh-native | mut+alloc+free+gc+exit |
| 33 | 16 | 16 | 32.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 36 | 32 | 4 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 20 | 12 | 8 | 24.8 | osh-native-souffle | mut+alloc |
| 22 | 17 | 4 | 25.3 | osh-native-souffle | mut+alloc+free |
| 24 | 16 | 8 | 17.5 | osh-native-souffle | mut+alloc+free+gc |
| 25 | 25 | 0 | 17.8 | osh-native-souffle | mut+alloc+free+gc+exit |
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 |
| 28 | 28 | 0 | 1.6 | dash | - |
| 62 | 62 | 0 | 3.4 | bash | - |
| 319 | 216 | 119 | 3.5 | zsh | - |
| 36 | 28 | 8 | 84.1 | bumpleak/osh | mut |
| 44 | 36 | 8 | 85.4 | _bin/cxx-opt+bumproot/osh | mut |
| 53 | 45 | 8 | 85.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 73 | 38 | 34 | 73.6 | osh-native | mut+alloc |
| 80 | 48 | 32 | 75.4 | osh-native | mut+alloc+free |
| 108 | 91 | 16 | 49.9 | osh-native | mut+alloc+free+gc |
| 112 | 80 | 32 | 50.4 | osh-native | mut+alloc+free+gc+exit |
| 104 | 60 | 44 | 99.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 151 | 123 | 28 | 66.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 66 | 49 | 16 | 73.1 | osh-native-souffle | mut+alloc |
| 73 | 53 | 20 | 75.1 | osh-native-souffle | mut+alloc+free |
| 105 | 97 | 8 | 51.1 | osh-native-souffle | mut+alloc+free+gc |
| 108 | 87 | 20 | 50.0 | osh-native-souffle | mut+alloc+free+gc+exit |
Parsing abuild from Alpine Linux.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 1 | 1 | 0 | 1.6 | dash | - |
| 4 | 4 | 0 | 3.0 | bash | - |
| 6 | 6 | 0 | 3.5 | zsh | - |
| 4 | 4 | 0 | 11.8 | bumpleak/osh | mut |
| 4 | 4 | 0 | 12.6 | _bin/cxx-opt+bumproot/osh | mut |
| 5 | 5 | 0 | 10.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 6 | 6 | 0 | 10.2 | osh-native | mut+alloc |
| 13 | 3 | 10 | 10.2 | osh-native | mut+alloc+free |
| 6 | 3 | 3 | 8.6 | osh-native | mut+alloc+free+gc |
| 7 | 0 | 7 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 9 | 4 | 4 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 9 | 8 | 0 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 6 | 0 | 6 | 9.8 | osh-native-souffle | mut+alloc |
| 12 | 11 | 0 | 9.8 | osh-native-souffle | mut+alloc+free |
| 7 | 3 | 3 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
| 6 | 6 | 0 | 8.1 | osh-native-souffle | mut+alloc+free+gc+exit |
A synthetic benchmark for POSIX shell arithmetic.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 8 | 7 | 0 | 1.6 | dash | - |
| 20 | 20 | 0 | 3.0 | bash | - |
| 17 | 12 | 4 | 3.3 | zsh | - |
| 13 | 13 | 0 | 32.4 | bumpleak/osh | mut |
| 19 | 15 | 4 | 31.1 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 16 | 4 | 31.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 27 | 22 | 4 | 26.0 | osh-native | mut+alloc |
| 28 | 24 | 4 | 26.2 | osh-native | mut+alloc+free |
| 20 | 20 | 0 | 8.1 | osh-native | mut+alloc+free+gc |
| 19 | 19 | 0 | 8.1 | osh-native | mut+alloc+free+gc+exit |
| 40 | 28 | 12 | 35.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 52 | 52 | 0 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 22 | 18 | 4 | 25.5 | osh-native-souffle | mut+alloc |
| 23 | 16 | 8 | 25.8 | osh-native-souffle | mut+alloc+free |
| 15 | 8 | 8 | 7.7 | osh-native-souffle | mut+alloc+free+gc |
| 15 | 15 | 0 | 7.7 | osh-native-souffle | mut+alloc+free+gc+exit |
A realistic bash-completion workload.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 52 | 51 | 0 | 3.3 | bash | - |
| 114 | 71 | 43 | 54.7 | bumpleak/osh | mut |
| 125 | 84 | 40 | 56.4 | _bin/cxx-opt+bumproot/osh | mut |
| 134 | 101 | 32 | 56.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 147 | 130 | 16 | 47.0 | osh-native | mut+alloc |
| 152 | 112 | 40 | 48.8 | osh-native | mut+alloc+free |
| 123 | 91 | 32 | 8.9 | osh-native | mut+alloc+free+gc |
| 123 | 91 | 32 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 163 | 119 | 44 | 63.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 142 | 126 | 16 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 140 | 92 | 48 | 46.4 | osh-native-souffle | mut+alloc |
| 147 | 79 | 67 | 48.4 | osh-native-souffle | mut+alloc+free |
| 118 | 91 | 28 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
| 119 | 87 | 32 | 8.4 | osh-native-souffle | mut+alloc+free+gc+exit |
Running abuild -h from Alpine Linux.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 12 | 8 | 3 | 3.6 | dash | - |
| 21 | 15 | 7 | 4.5 | bash | - |
| 19 | 7 | 13 | 3.6 | zsh | - |
| 22 | 14 | 7 | 13.3 | bumpleak/osh | mut |
| 24 | 16 | 9 | 13.7 | _bin/cxx-opt+bumproot/osh | mut |
| 25 | 20 | 6 | 14.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 23 | 17 | 6 | 11.1 | osh-native | mut+alloc |
| 25 | 19 | 6 | 11.3 | osh-native | mut+alloc+free |
| 24 | 18 | 7 | 9.2 | osh-native | mut+alloc+free+gc |
| 25 | 21 | 4 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 26 | 15 | 12 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 27 | 19 | 8 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 23 | 9 | 14 | 10.8 | osh-native-souffle | mut+alloc |
| 23 | 15 | 9 | 10.9 | osh-native-souffle | mut+alloc+free |
| 23 | 16 | 8 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
| 23 | 20 | 3 | 8.8 | osh-native-souffle | mut+alloc+free+gc+exit |