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 | 44 | 5 | 13 | 12.0 | 18.0 | 476,766 | 1,282 | 6 | 406,618 | 5 | 203,309 | osh-native |
parse.configure-cpython | 35 | 4 | 11 | 12.0 | 17.4 | 476,766 | 1,282 | 6 | 406,608 | 5 | 203,304 | osh-native-souffle |
parse.configure-coreutils | 156 | 30 | 68 | 44.5 | 49.7 | 1,653,354 | 4,764 | 12 | 1,025,540 | 6 | 764,313 | osh-native |
parse.configure-coreutils | 196 | 44 | 112 | 44.5 | 49.5 | 1,653,353 | 4,764 | 12 | 1,025,530 | 6 | 764,308 | osh-native-souffle |
parse.abuild | 10 | 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.1 | 101,957 | 180 | 2 | 75,034 | 1 | 37,517 | osh-native-souffle |
ex.compute-fib | 29 | 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.5 | 579,721 | 22,608 | 12 | 50,000 | 0 | 2,921 | osh-native-souffle |
ex.bashcomp-parse-help | 189 | 0 | 5 | 11.1 | 8.8 | 1,021,038 | 15,258 | 22 | 50,000 | 0 | 3,915 | osh-native |
ex.bashcomp-parse-help | 180 | 0 | 5 | 11.1 | 8.3 | 1,021,037 | 15,258 | 22 | 50,000 | 0 | 3,915 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.2 | 116,356 | 277 | 3 | 85,262 | 1 | 42,631 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.7 | 116,356 | 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 | - |
24 | 24 | 0 | 3.1 | bash | - |
110 | 61 | 56 | 3.4 | zsh | - |
17 | 14 | 3 | 29.0 | bumpleak/osh | mut |
21 | 14 | 7 | 30.2 | _bin/cxx-opt+bumproot/osh | mut |
24 | 10 | 14 | 29.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 23 | 7 | 25.3 | osh-native | mut+alloc |
33 | 20 | 13 | 25.7 | osh-native | mut+alloc+free |
44 | 36 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
40 | 33 | 7 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 32 | 11 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
53 | 44 | 9 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
28 | 15 | 13 | 24.9 | osh-native-souffle | mut+alloc |
32 | 21 | 11 | 25.3 | osh-native-souffle | mut+alloc+free |
35 | 26 | 9 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
35 | 27 | 8 | 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 |
22 | 20 | 2 | 1.4 | dash | - |
82 | 79 | 3 | 3.3 | bash | - |
387 | 213 | 195 | 3.4 | zsh | - |
51 | 42 | 8 | 85.4 | bumpleak/osh | mut |
63 | 53 | 11 | 85.0 | _bin/cxx-opt+bumproot/osh | mut |
73 | 57 | 16 | 84.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 68 | 29 | 73.4 | osh-native | mut+alloc |
107 | 73 | 35 | 75.4 | osh-native | mut+alloc+free |
156 | 130 | 26 | 49.7 | osh-native | mut+alloc+free+gc |
196 | 174 | 22 | 50.5 | osh-native | mut+alloc+free+gc+exit |
153 | 98 | 55 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
232 | 197 | 35 | 66.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
93 | 52 | 41 | 73.1 | osh-native-souffle | mut+alloc |
106 | 77 | 29 | 75.2 | osh-native-souffle | mut+alloc+free |
196 | 178 | 17 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
178 | 155 | 23 | 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 | - |
6 | 5 | 1 | 3.0 | bash | - |
7 | 2 | 6 | 3.3 | zsh | - |
6 | 3 | 3 | 10.2 | bumpleak/osh | mut |
8 | 7 | 1 | 11.9 | _bin/cxx-opt+bumproot/osh | mut |
8 | 6 | 2 | 10.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 8 | 1 | 10.1 | osh-native | mut+alloc |
9 | 5 | 4 | 10.1 | osh-native | mut+alloc+free |
10 | 7 | 3 | 8.7 | osh-native | mut+alloc+free+gc |
10 | 7 | 2 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 6 | 6 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
9 | 5 | 4 | 9.6 | osh-native-souffle | mut+alloc |
9 | 6 | 3 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 6 | 2 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
10 | 7 | 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 | 10 | 0 | 1.4 | dash | - |
28 | 27 | 1 | 3.0 | bash | - |
23 | 19 | 5 | 3.3 | zsh | - |
21 | 16 | 5 | 32.3 | bumpleak/osh | mut |
27 | 25 | 2 | 31.8 | _bin/cxx-opt+bumproot/osh | mut |
29 | 23 | 6 | 32.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 22 | 15 | 26.5 | osh-native | mut+alloc |
40 | 26 | 14 | 26.6 | osh-native | mut+alloc+free |
29 | 25 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
30 | 28 | 2 | 8.0 | osh-native | mut+alloc+free+gc+exit |
57 | 33 | 23 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 33 | 5 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
32 | 21 | 10 | 26.0 | osh-native-souffle | mut+alloc |
32 | 18 | 13 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 19 | 3 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 18 | 5 | 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 |
74 | 68 | 6 | 3.1 | bash | - |
172 | 125 | 47 | 57.0 | bumpleak/osh | mut |
187 | 127 | 60 | 57.8 | _bin/cxx-opt+bumproot/osh | mut |
203 | 135 | 68 | 57.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
223 | 154 | 69 | 49.1 | osh-native | mut+alloc |
230 | 162 | 68 | 50.8 | osh-native | mut+alloc+free |
189 | 139 | 50 | 8.8 | osh-native | mut+alloc+free+gc |
188 | 131 | 56 | 8.8 | osh-native | mut+alloc+free+gc+exit |
242 | 148 | 94 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
215 | 164 | 51 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
213 | 137 | 76 | 48.6 | osh-native-souffle | mut+alloc |
220 | 160 | 60 | 50.3 | osh-native-souffle | mut+alloc+free |
180 | 121 | 59 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
180 | 122 | 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 | 5 | 5 | 3.5 | dash | - |
21 | 9 | 13 | 4.5 | bash | - |
18 | 7 | 12 | 3.5 | zsh | - |
20 | 11 | 9 | 12.0 | bumpleak/osh | mut |
21 | 11 | 11 | 12.9 | _bin/cxx-opt+bumproot/osh | mut |
21 | 10 | 12 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
23 | 11 | 12 | 11.0 | osh-native | mut+alloc |
23 | 14 | 10 | 11.4 | osh-native | mut+alloc+free |
23 | 12 | 12 | 9.2 | osh-native | mut+alloc+free+gc |
23 | 11 | 13 | 9.2 | osh-native | mut+alloc+free+gc+exit |
25 | 11 | 15 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 15 | 12 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 8 | 13 | 10.6 | osh-native-souffle | mut+alloc |
23 | 9 | 14 | 10.6 | osh-native-souffle | mut+alloc+free |
23 | 13 | 10 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 14 | 9 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |