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 | 27 | 3 | 8 | 12.0 | 17.9 | 476,779 | 1,282 | 6 | 406,634 | 5 | 203,317 | osh-native |
| parse.configure-cpython | 26 | 3 | 8 | 12.0 | 17.5 | 476,779 | 1,282 | 6 | 406,624 | 5 | 203,312 | osh-native-souffle |
| parse.configure-coreutils | 115 | 20 | 48 | 44.5 | 49.8 | 1,653,367 | 4,764 | 12 | 1,025,556 | 6 | 764,321 | osh-native |
| parse.configure-coreutils | 103 | 19 | 45 | 44.5 | 49.5 | 1,653,366 | 4,764 | 12 | 1,025,546 | 6 | 764,316 | osh-native-souffle |
| parse.abuild | 7 | 0 | 1 | 2.6 | 8.7 | 101,970 | 180 | 2 | 75,060 | 1 | 37,530 | osh-native |
| parse.abuild | 6 | 0 | 1 | 2.6 | 8.3 | 101,970 | 180 | 2 | 75,050 | 1 | 37,525 | osh-native-souffle |
| ex.compute-fib | 20 | 0 | 1 | 2.2 | 8.1 | 579,730 | 22,608 | 12 | 50,000 | 0 | 2,930 | osh-native |
| ex.compute-fib | 15 | 0 | 1 | 2.2 | 7.7 | 579,730 | 22,608 | 12 | 50,000 | 0 | 2,925 | osh-native-souffle |
| ex.bashcomp-parse-help | 132 | 0 | 3 | 11.1 | 8.9 | 1,021,047 | 15,258 | 22 | 50,000 | 0 | 3,919 | osh-native |
| ex.bashcomp-parse-help | 125 | 0 | 2 | 11.1 | 8.6 | 1,021,046 | 15,258 | 22 | 50,000 | 0 | 3,910 | osh-native-souffle |
| ex.abuild-print-help | 19 | 1 | 2 | 2.8 | 9.2 | 116,366 | 277 | 3 | 85,272 | 1 | 42,636 | osh-native |
| ex.abuild-print-help | 16 | 0 | 1 | 2.8 | 8.7 | 116,366 | 277 | 3 | 85,262 | 1 | 42,631 | osh-native-souffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 5 | 2 | 2 | 1.6 | dash | - |
| 17 | 16 | 0 | 3.0 | bash | - |
| 81 | 51 | 35 | 3.6 | zsh | - |
| 13 | 3 | 9 | 29.5 | bumpleak/osh | mut |
| 15 | 11 | 4 | 28.5 | _bin/cxx-opt+bumproot/osh | mut |
| 17 | 17 | 0 | 29.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 23 | 11 | 11 | 25.3 | osh-native | mut+alloc |
| 24 | 16 | 8 | 25.5 | osh-native | mut+alloc+free |
| 27 | 19 | 8 | 17.9 | osh-native | mut+alloc+free+gc |
| 28 | 24 | 4 | 17.9 | osh-native | mut+alloc+free+gc+exit |
| 33 | 18 | 15 | 32.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 38 | 27 | 11 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 21 | 8 | 12 | 24.8 | osh-native-souffle | mut+alloc |
| 23 | 19 | 4 | 25.2 | osh-native-souffle | mut+alloc+free |
| 26 | 18 | 7 | 17.5 | osh-native-souffle | mut+alloc+free+gc |
| 25 | 11 | 14 | 17.6 | 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 |
| 15 | 15 | 0 | 1.7 | dash | - |
| 56 | 56 | 0 | 3.3 | bash | - |
| 320 | 169 | 166 | 3.6 | zsh | - |
| 38 | 25 | 12 | 84.7 | bumpleak/osh | mut |
| 46 | 30 | 15 | 86.2 | _bin/cxx-opt+bumproot/osh | mut |
| 54 | 38 | 15 | 85.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 74 | 54 | 21 | 73.6 | osh-native | mut+alloc |
| 83 | 55 | 27 | 75.4 | osh-native | mut+alloc+free |
| 115 | 91 | 24 | 49.8 | osh-native | mut+alloc+free+gc |
| 120 | 104 | 16 | 50.4 | osh-native | mut+alloc+free+gc+exit |
| 108 | 68 | 40 | 97.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 168 | 148 | 20 | 68.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 67 | 43 | 24 | 73.3 | osh-native-souffle | mut+alloc |
| 76 | 44 | 32 | 75.1 | osh-native-souffle | mut+alloc+free |
| 103 | 87 | 16 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
| 108 | 84 | 24 | 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 | 0 | 1 | 1.6 | dash | - |
| 4 | 4 | 0 | 2.9 | bash | - |
| 5 | 0 | 5 | 3.4 | zsh | - |
| 5 | 2 | 2 | 11.1 | bumpleak/osh | mut |
| 5 | 5 | 0 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
| 5 | 0 | 5 | 13.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 6 | 6 | 0 | 10.3 | osh-native | mut+alloc |
| 6 | 6 | 0 | 10.3 | osh-native | mut+alloc+free |
| 7 | 3 | 3 | 8.7 | osh-native | mut+alloc+free+gc |
| 7 | 3 | 3 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 9 | 4 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 9 | 4 | 4 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 6 | 6 | 0 | 9.6 | osh-native-souffle | mut+alloc |
| 6 | 6 | 0 | 9.9 | osh-native-souffle | mut+alloc+free |
| 6 | 6 | 0 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
| 6 | 3 | 3 | 8.4 | 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 |
| 7 | 7 | 0 | 1.7 | dash | - |
| 20 | 16 | 4 | 3.0 | bash | - |
| 16 | 12 | 4 | 3.5 | zsh | - |
| 13 | 13 | 0 | 31.7 | bumpleak/osh | mut |
| 18 | 18 | 0 | 32.5 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 16 | 4 | 32.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 27 | 18 | 9 | 26.5 | osh-native | mut+alloc |
| 28 | 20 | 8 | 26.7 | 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 |
| 41 | 20 | 20 | 35.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 27 | 23 | 4 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 22 | 22 | 0 | 26.1 | osh-native-souffle | mut+alloc |
| 23 | 15 | 8 | 26.3 | osh-native-souffle | mut+alloc+free |
| 15 | 11 | 4 | 7.7 | osh-native-souffle | mut+alloc+free+gc |
| 15 | 11 | 4 | 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 | 47 | 4 | 3.3 | bash | - |
| 120 | 84 | 36 | 56.3 | bumpleak/osh | mut |
| 131 | 95 | 36 | 56.8 | _bin/cxx-opt+bumproot/osh | mut |
| 143 | 95 | 48 | 57.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 157 | 113 | 44 | 49.0 | osh-native | mut+alloc |
| 164 | 128 | 36 | 50.8 | osh-native | mut+alloc+free |
| 132 | 99 | 32 | 8.9 | osh-native | mut+alloc+free+gc |
| 130 | 110 | 20 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 173 | 116 | 56 | 66.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 153 | 105 | 48 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 148 | 128 | 20 | 48.6 | osh-native-souffle | mut+alloc |
| 152 | 88 | 64 | 50.4 | osh-native-souffle | mut+alloc+free |
| 125 | 85 | 40 | 8.6 | osh-native-souffle | mut+alloc+free+gc |
| 122 | 77 | 45 | 8.5 | 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 |
| 7 | 7 | 0 | 3.6 | dash | - |
| 16 | 10 | 6 | 4.6 | bash | - |
| 13 | 12 | 1 | 3.6 | zsh | - |
| 15 | 13 | 2 | 13.2 | bumpleak/osh | mut |
| 17 | 12 | 6 | 13.3 | _bin/cxx-opt+bumproot/osh | mut |
| 18 | 9 | 9 | 13.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 17 | 6 | 12 | 11.3 | osh-native | mut+alloc |
| 19 | 10 | 9 | 11.3 | osh-native | mut+alloc+free |
| 19 | 6 | 13 | 9.2 | osh-native | mut+alloc+free+gc |
| 18 | 16 | 2 | 9.3 | osh-native | mut+alloc+free+gc+exit |
| 23 | 14 | 9 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 19 | 15 | 4 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
| 17 | 11 | 6 | 10.8 | osh-native-souffle | mut+alloc |
| 17 | 15 | 2 | 11.0 | osh-native-souffle | mut+alloc+free |
| 16 | 14 | 2 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
| 17 | 16 | 2 | 8.8 | osh-native-souffle | mut+alloc+free+gc+exit |