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 | 18.0 | 476,766 | 1,282 | 6 | 406,618 | 5 | 203,309 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.4 | 476,766 | 1,282 | 6 | 406,608 | 5 | 203,304 | osh-native-souffle |
parse.configure-coreutils | 148 | 23 | 61 | 44.5 | 49.8 | 1,653,354 | 4,764 | 12 | 1,025,540 | 6 | 764,313 | osh-native |
parse.configure-coreutils | 135 | 24 | 60 | 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.5 | 101,957 | 180 | 2 | 75,044 | 1 | 37,522 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.3 | 101,957 | 180 | 2 | 75,034 | 1 | 37,517 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.2 | 8.1 | 579,721 | 22,608 | 12 | 50,000 | 0 | 2,926 | osh-native |
ex.compute-fib | 21 | 0 | 1 | 2.2 | 7.6 | 579,721 | 22,608 | 12 | 50,000 | 0 | 2,921 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 4 | 11.1 | 8.7 | 1,021,036 | 15,258 | 22 | 50,000 | 0 | 3,915 | osh-native |
ex.bashcomp-parse-help | 175 | 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.0 | 116,340 | 277 | 3 | 85,262 | 1 | 42,631 | osh-native |
ex.abuild-print-help | 21 | 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 | 4 | 2 | 1.6 | dash | - |
23 | 22 | 1 | 3.1 | bash | - |
101 | 56 | 51 | 3.4 | zsh | - |
16 | 11 | 5 | 27.6 | bumpleak/osh | mut |
20 | 15 | 5 | 30.2 | _bin/cxx-opt+bumproot/osh | mut |
22 | 19 | 3 | 30.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 19 | 11 | 25.0 | osh-native | mut+alloc |
31 | 20 | 11 | 25.7 | osh-native | mut+alloc+free |
35 | 30 | 5 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 28 | 8 | 18.1 | osh-native | mut+alloc+free+gc+exit |
42 | 28 | 14 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 35 | 12 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 16 | 10 | 24.9 | osh-native-souffle | mut+alloc |
28 | 22 | 7 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 24 | 8 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
33 | 27 | 6 | 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 |
21 | 20 | 1 | 1.6 | dash | - |
78 | 76 | 2 | 3.1 | bash | - |
363 | 194 | 190 | 3.7 | zsh | - |
49 | 40 | 9 | 84.7 | bumpleak/osh | mut |
60 | 52 | 8 | 85.7 | _bin/cxx-opt+bumproot/osh | mut |
71 | 57 | 14 | 86.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 70 | 25 | 73.6 | osh-native | mut+alloc |
103 | 69 | 35 | 75.4 | osh-native | mut+alloc+free |
148 | 120 | 28 | 49.8 | osh-native | mut+alloc+free+gc |
154 | 130 | 24 | 50.3 | osh-native | mut+alloc+free+gc+exit |
141 | 94 | 47 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
205 | 174 | 31 | 66.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
86 | 54 | 32 | 73.0 | osh-native-souffle | mut+alloc |
94 | 56 | 38 | 75.0 | osh-native-souffle | mut+alloc+free |
135 | 120 | 15 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
141 | 116 | 25 | 50.1 | 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 | - |
5 | 5 | 1 | 2.9 | bash | - |
7 | 4 | 4 | 3.3 | zsh | - |
6 | 3 | 3 | 11.3 | bumpleak/osh | mut |
7 | 4 | 3 | 11.9 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 6 | 2 | 10.0 | osh-native | mut+alloc |
9 | 5 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 7 | 2 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc+exit |
13 | 6 | 7 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 8 | 3 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 1 | 7 | 9.6 | osh-native-souffle | mut+alloc |
8 | 2 | 6 | 9.7 | osh-native-souffle | mut+alloc+free |
8 | 6 | 2 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
8 | 4 | 5 | 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 |
10 | 10 | 0 | 1.4 | dash | - |
28 | 27 | 1 | 2.9 | bash | - |
23 | 21 | 2 | 3.4 | zsh | - |
18 | 12 | 6 | 30.9 | bumpleak/osh | mut |
26 | 21 | 5 | 32.1 | _bin/cxx-opt+bumproot/osh | mut |
28 | 22 | 6 | 33.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 29 | 7 | 26.2 | osh-native | mut+alloc |
38 | 27 | 11 | 26.6 | osh-native | mut+alloc+free |
28 | 26 | 2 | 8.1 | osh-native | mut+alloc+free+gc |
28 | 27 | 1 | 8.0 | osh-native | mut+alloc+free+gc+exit |
53 | 36 | 17 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 34 | 3 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 20 | 10 | 26.1 | osh-native-souffle | mut+alloc |
31 | 20 | 11 | 26.3 | osh-native-souffle | mut+alloc+free |
21 | 19 | 2 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 18 | 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 |
73 | 71 | 2 | 3.0 | bash | - |
168 | 107 | 61 | 55.7 | bumpleak/osh | mut |
180 | 122 | 58 | 57.0 | _bin/cxx-opt+bumproot/osh | mut |
199 | 135 | 63 | 57.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 129 | 82 | 49.0 | osh-native | mut+alloc |
221 | 150 | 70 | 50.8 | osh-native | mut+alloc+free |
182 | 140 | 42 | 8.7 | osh-native | mut+alloc+free+gc |
181 | 130 | 51 | 8.9 | osh-native | mut+alloc+free+gc+exit |
234 | 154 | 79 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 155 | 54 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
203 | 140 | 64 | 48.3 | osh-native-souffle | mut+alloc |
211 | 138 | 73 | 50.3 | osh-native-souffle | mut+alloc+free |
175 | 131 | 44 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
174 | 128 | 47 | 8.1 | 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 |
9 | 5 | 5 | 3.5 | dash | - |
19 | 12 | 8 | 4.3 | bash | - |
17 | 7 | 10 | 3.4 | zsh | - |
19 | 6 | 13 | 12.1 | bumpleak/osh | mut |
19 | 8 | 11 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
20 | 13 | 8 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
20 | 6 | 15 | 11.0 | osh-native | mut+alloc |
22 | 12 | 10 | 11.3 | osh-native | mut+alloc+free |
22 | 11 | 12 | 9.0 | osh-native | mut+alloc+free+gc |
22 | 10 | 13 | 9.2 | osh-native | mut+alloc+free+gc+exit |
24 | 13 | 11 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 15 | 10 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
19 | 11 | 9 | 10.6 | osh-native-souffle | mut+alloc |
21 | 9 | 12 | 10.6 | osh-native-souffle | mut+alloc+free |
21 | 8 | 13 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 10 | 12 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |