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 | 35 | 3 | 9 | 12.0 | 17.8 | 476,766 | 1,282 | 6 | 406,618 | 5 | 203,309 | osh-native |
parse.configure-cpython | 35 | 4 | 10 | 12.0 | 17.6 | 476,766 | 1,282 | 6 | 406,608 | 5 | 203,304 | osh-native-souffle |
parse.configure-coreutils | 159 | 26 | 72 | 44.5 | 49.7 | 1,653,354 | 4,764 | 12 | 1,025,540 | 6 | 764,313 | osh-native |
parse.configure-coreutils | 159 | 32 | 80 | 44.5 | 49.5 | 1,653,353 | 4,764 | 12 | 1,025,530 | 6 | 764,308 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.7 | 101,957 | 180 | 2 | 75,044 | 1 | 37,522 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,957 | 180 | 2 | 75,034 | 1 | 37,517 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.2 | 8.0 | 579,721 | 22,608 | 12 | 50,000 | 0 | 2,926 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.2 | 7.6 | 579,721 | 22,608 | 12 | 50,000 | 0 | 2,921 | osh-native-souffle |
ex.bashcomp-parse-help | 184 | 0 | 4 | 11.1 | 8.8 | 1,021,036 | 15,258 | 22 | 50,000 | 0 | 3,915 | osh-native |
ex.bashcomp-parse-help | 174 | 0 | 4 | 11.1 | 8.4 | 1,021,035 | 15,258 | 22 | 50,000 | 0 | 3,915 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.2 | 116,340 | 277 | 3 | 85,262 | 1 | 42,631 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.7 | 116,340 | 277 | 3 | 85,252 | 1 | 42,626 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 5 | 1 | 1.6 | dash | - |
23 | 22 | 1 | 3.1 | bash | - |
100 | 55 | 52 | 3.3 | zsh | - |
16 | 13 | 3 | 29.7 | bumpleak/osh | mut |
20 | 17 | 3 | 30.1 | _bin/cxx-opt+bumproot/osh | mut |
24 | 19 | 5 | 29.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 24 | 6 | 25.3 | osh-native | mut+alloc |
32 | 24 | 8 | 25.7 | osh-native | mut+alloc+free |
35 | 29 | 6 | 17.8 | osh-native | mut+alloc+free+gc |
37 | 29 | 8 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 29 | 15 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 38 | 11 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 17 | 10 | 24.9 | osh-native-souffle | mut+alloc |
30 | 21 | 9 | 25.3 | osh-native-souffle | mut+alloc+free |
35 | 25 | 10 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
35 | 30 | 5 | 17.7 | 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 |
21 | 20 | 1 | 1.6 | dash | - |
77 | 76 | 1 | 3.3 | bash | - |
362 | 197 | 187 | 3.5 | zsh | - |
47 | 41 | 6 | 85.3 | bumpleak/osh | mut |
60 | 46 | 14 | 85.1 | _bin/cxx-opt+bumproot/osh | mut |
71 | 59 | 12 | 85.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
100 | 73 | 27 | 73.4 | osh-native | mut+alloc |
108 | 70 | 38 | 75.5 | osh-native | mut+alloc+free |
159 | 136 | 23 | 49.7 | osh-native | mut+alloc+free+gc |
166 | 142 | 24 | 50.6 | osh-native | mut+alloc+free+gc+exit |
136 | 91 | 45 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
232 | 203 | 29 | 66.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
90 | 54 | 36 | 73.1 | osh-native-souffle | mut+alloc |
97 | 68 | 29 | 75.0 | osh-native-souffle | mut+alloc+free |
159 | 138 | 21 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
166 | 143 | 23 | 49.9 | 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 |
2 | 1 | 1 | 1.4 | dash | - |
6 | 4 | 1 | 2.9 | bash | - |
8 | 6 | 2 | 3.3 | zsh | - |
6 | 3 | 3 | 10.9 | bumpleak/osh | mut |
7 | 6 | 1 | 12.8 | _bin/cxx-opt+bumproot/osh | mut |
7 | 5 | 2 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 6 | 3 | 10.0 | osh-native | mut+alloc |
9 | 7 | 2 | 10.1 | osh-native | mut+alloc+free |
9 | 5 | 4 | 8.7 | osh-native | mut+alloc+free+gc |
9 | 7 | 3 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 9 | 4 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
13 | 9 | 4 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 3 | 5 | 9.7 | osh-native-souffle | mut+alloc |
9 | 5 | 4 | 10.0 | osh-native-souffle | mut+alloc+free |
9 | 7 | 2 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
9 | 6 | 3 | 8.3 | 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 |
10 | 9 | 1 | 1.6 | dash | - |
28 | 27 | 1 | 2.9 | bash | - |
23 | 20 | 3 | 3.3 | zsh | - |
19 | 15 | 4 | 31.9 | bumpleak/osh | mut |
26 | 21 | 5 | 33.2 | _bin/cxx-opt+bumproot/osh | mut |
28 | 23 | 5 | 33.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
43 | 32 | 11 | 26.5 | osh-native | mut+alloc |
38 | 27 | 11 | 26.7 | osh-native | mut+alloc+free |
28 | 26 | 2 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 26 | 2 | 8.0 | osh-native | mut+alloc+free+gc+exit |
56 | 33 | 23 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 5 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 21 | 10 | 26.1 | osh-native-souffle | mut+alloc |
32 | 21 | 11 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 19 | 3 | 7.5 | 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 |
74 | 68 | 6 | 3.0 | bash | - |
171 | 107 | 64 | 55.8 | bumpleak/osh | mut |
184 | 131 | 53 | 58.0 | _bin/cxx-opt+bumproot/osh | mut |
198 | 135 | 63 | 57.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
216 | 143 | 73 | 49.0 | osh-native | mut+alloc |
225 | 149 | 76 | 50.8 | osh-native | mut+alloc+free |
184 | 137 | 47 | 8.8 | osh-native | mut+alloc+free+gc |
184 | 132 | 52 | 8.9 | osh-native | mut+alloc+free+gc+exit |
240 | 171 | 69 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
219 | 166 | 53 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
210 | 142 | 68 | 48.4 | osh-native-souffle | mut+alloc |
215 | 140 | 75 | 50.1 | osh-native-souffle | mut+alloc+free |
174 | 122 | 52 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
177 | 118 | 58 | 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 |
10 | 4 | 6 | 3.5 | dash | - |
19 | 15 | 5 | 4.3 | bash | - |
17 | 9 | 9 | 3.5 | zsh | - |
17 | 9 | 9 | 11.5 | bumpleak/osh | mut |
21 | 7 | 14 | 13.3 | _bin/cxx-opt+bumproot/osh | mut |
21 | 9 | 13 | 13.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 10 | 12 | 11.1 | osh-native | mut+alloc |
23 | 10 | 14 | 11.3 | osh-native | mut+alloc+free |
22 | 10 | 13 | 9.2 | osh-native | mut+alloc+free+gc |
23 | 12 | 11 | 9.2 | osh-native | mut+alloc+free+gc+exit |
26 | 10 | 17 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
27 | 16 | 12 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 9 | 11 | 10.6 | osh-native-souffle | mut+alloc |
21 | 9 | 12 | 10.9 | osh-native-souffle | mut+alloc+free |
22 | 12 | 10 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
23 | 10 | 14 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |