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.7 | 476,766 | 1,282 | 6 | 406,608 | 5 | 203,304 | osh-native-souffle |
parse.configure-coreutils | 148 | 23 | 62 | 44.5 | 49.7 | 1,653,354 | 4,764 | 12 | 1,025,540 | 6 | 764,313 | osh-native |
parse.configure-coreutils | 139 | 24 | 62 | 44.5 | 49.4 | 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.1 | 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 | 182 | 0 | 4 | 11.1 | 8.9 | 1,021,036 | 15,258 | 22 | 50,000 | 0 | 3,915 | osh-native |
ex.bashcomp-parse-help | 177 | 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 | 20 | 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 | 6 | 0 | 1.6 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
100 | 53 | 53 | 3.3 | zsh | - |
16 | 11 | 5 | 27.7 | bumpleak/osh | mut |
20 | 18 | 2 | 28.6 | _bin/cxx-opt+bumproot/osh | mut |
22 | 17 | 5 | 28.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 19 | 12 | 25.2 | osh-native | mut+alloc |
31 | 18 | 13 | 25.7 | osh-native | mut+alloc+free |
35 | 27 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 30 | 6 | 18.2 | osh-native | mut+alloc+free+gc+exit |
42 | 27 | 14 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 44 | 5 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 12 | 14 | 24.8 | osh-native-souffle | mut+alloc |
29 | 13 | 15 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 26 | 6 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
34 | 25 | 8 | 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 | - |
78 | 77 | 1 | 3.3 | bash | - |
363 | 205 | 179 | 3.4 | zsh | - |
48 | 38 | 10 | 84.4 | bumpleak/osh | mut |
59 | 51 | 8 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
70 | 60 | 11 | 85.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 77 | 21 | 73.4 | osh-native | mut+alloc |
105 | 77 | 28 | 75.5 | osh-native | mut+alloc+free |
148 | 128 | 20 | 49.7 | osh-native | mut+alloc+free+gc |
155 | 126 | 29 | 50.6 | osh-native | mut+alloc+free+gc+exit |
137 | 95 | 42 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
216 | 190 | 26 | 66.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
89 | 52 | 36 | 73.1 | osh-native-souffle | mut+alloc |
97 | 65 | 31 | 75.0 | osh-native-souffle | mut+alloc+free |
139 | 123 | 16 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
147 | 127 | 20 | 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 | 2 | 0 | 1.3 | dash | - |
6 | 6 | 0 | 2.9 | bash | - |
8 | 3 | 5 | 3.3 | zsh | - |
6 | 4 | 3 | 11.6 | bumpleak/osh | mut |
7 | 4 | 2 | 10.9 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 11.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 5 | 3 | 10.1 | osh-native | mut+alloc |
9 | 8 | 1 | 10.0 | osh-native | mut+alloc+free |
9 | 5 | 4 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 7 | 2 | 8.4 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 5 | 6 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 3 | 5 | 9.6 | osh-native-souffle | mut+alloc |
8 | 3 | 5 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 6 | 2 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
8 | 6 | 2 | 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 |
11 | 10 | 1 | 1.6 | dash | - |
29 | 28 | 1 | 2.9 | bash | - |
23 | 16 | 7 | 3.4 | zsh | - |
19 | 12 | 7 | 32.3 | bumpleak/osh | mut |
26 | 21 | 5 | 32.4 | _bin/cxx-opt+bumproot/osh | mut |
28 | 27 | 1 | 33.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.3 | osh-native | mut+alloc |
37 | 27 | 10 | 26.6 | osh-native | mut+alloc+free |
28 | 26 | 2 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 25 | 3 | 7.9 | osh-native | mut+alloc+free+gc+exit |
53 | 39 | 14 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 31 | 6 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 18 | 12 | 26.0 | osh-native-souffle | mut+alloc |
31 | 17 | 14 | 26.1 | osh-native-souffle | mut+alloc+free |
22 | 19 | 3 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 18 | 3 | 7.6 | 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 |
76 | 68 | 7 | 3.1 | bash | - |
166 | 101 | 65 | 56.6 | bumpleak/osh | mut |
182 | 124 | 58 | 57.0 | _bin/cxx-opt+bumproot/osh | mut |
196 | 140 | 56 | 57.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 148 | 64 | 49.0 | osh-native | mut+alloc |
219 | 140 | 78 | 50.8 | osh-native | mut+alloc+free |
182 | 140 | 42 | 8.9 | osh-native | mut+alloc+free+gc |
183 | 132 | 51 | 8.9 | osh-native | mut+alloc+free+gc+exit |
233 | 144 | 89 | 64.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
213 | 161 | 52 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 136 | 68 | 48.4 | osh-native-souffle | mut+alloc |
210 | 140 | 70 | 50.4 | osh-native-souffle | mut+alloc+free |
177 | 127 | 50 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
174 | 119 | 55 | 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 |
9 | 5 | 4 | 3.4 | dash | - |
19 | 14 | 6 | 4.3 | bash | - |
17 | 9 | 9 | 3.4 | zsh | - |
19 | 6 | 13 | 12.4 | bumpleak/osh | mut |
19 | 9 | 10 | 12.2 | _bin/cxx-opt+bumproot/osh | mut |
21 | 11 | 11 | 13.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 12 | 10 | 11.1 | osh-native | mut+alloc |
22 | 12 | 11 | 11.3 | osh-native | mut+alloc+free |
22 | 14 | 9 | 9.2 | osh-native | mut+alloc+free+gc |
22 | 12 | 10 | 9.2 | osh-native | mut+alloc+free+gc+exit |
24 | 11 | 14 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 11 | 14 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
19 | 9 | 10 | 10.6 | osh-native-souffle | mut+alloc |
21 | 7 | 14 | 10.7 | osh-native-souffle | mut+alloc+free |
20 | 11 | 10 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 8 | 14 | 8.8 | osh-native-souffle | mut+alloc+free+gc+exit |