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.1 | 476,761 | 1,282 | 6 | 406,608 | 5 | 203,304 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.7 | 476,761 | 1,282 | 6 | 406,324 | 5 | 203,162 | osh-native-souffle |
parse.configure-coreutils | 156 | 27 | 70 | 44.5 | 49.7 | 1,653,349 | 4,764 | 12 | 1,025,530 | 6 | 764,308 | osh-native |
parse.configure-coreutils | 136 | 24 | 59 | 44.5 | 49.4 | 1,653,348 | 4,764 | 12 | 1,025,520 | 6 | 764,303 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.7 | 101,952 | 180 | 2 | 75,034 | 1 | 37,517 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.1 | 101,952 | 180 | 2 | 75,024 | 1 | 37,512 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.2 | 8.1 | 579,716 | 22,608 | 12 | 50,000 | 0 | 2,921 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.2 | 7.6 | 579,716 | 22,608 | 12 | 50,000 | 0 | 2,916 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 4 | 11.1 | 8.8 | 1,021,031 | 15,258 | 22 | 50,000 | 0 | 3,910 | osh-native |
ex.bashcomp-parse-help | 173 | 0 | 4 | 11.1 | 8.4 | 1,021,030 | 15,258 | 22 | 50,000 | 0 | 3,915 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.8 | 116,335 | 277 | 3 | 85,252 | 1 | 42,626 | osh-native |
ex.abuild-print-help | 20 | 1 | 2 | 2.8 | 8.5 | 116,335 | 277 | 3 | 85,242 | 1 | 42,621 | 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 | - |
100 | 57 | 50 | 3.4 | zsh | - |
17 | 13 | 3 | 29.9 | bumpleak/osh | mut |
20 | 14 | 6 | 30.0 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 29.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 24 | 5 | 25.2 | osh-native | mut+alloc |
31 | 23 | 8 | 25.6 | osh-native | mut+alloc+free |
35 | 29 | 5 | 18.1 | osh-native | mut+alloc+free+gc |
36 | 28 | 8 | 18.2 | osh-native | mut+alloc+free+gc+exit |
41 | 28 | 14 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 40 | 7 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 15 | 12 | 24.8 | osh-native-souffle | mut+alloc |
28 | 21 | 7 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 23 | 9 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
33 | 24 | 9 | 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 | 19 | 2 | 1.6 | dash | - |
79 | 77 | 2 | 3.1 | bash | - |
362 | 200 | 182 | 3.5 | zsh | - |
50 | 40 | 10 | 84.3 | bumpleak/osh | mut |
61 | 55 | 6 | 85.8 | _bin/cxx-opt+bumproot/osh | mut |
70 | 50 | 20 | 85.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 64 | 33 | 73.5 | osh-native | mut+alloc |
105 | 72 | 33 | 75.2 | osh-native | mut+alloc+free |
156 | 128 | 28 | 49.7 | osh-native | mut+alloc+free+gc |
149 | 127 | 22 | 50.6 | osh-native | mut+alloc+free+gc+exit |
138 | 99 | 39 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
204 | 174 | 30 | 66.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
89 | 60 | 29 | 73.3 | osh-native-souffle | mut+alloc |
97 | 66 | 31 | 75.0 | osh-native-souffle | mut+alloc+free |
136 | 110 | 26 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
146 | 120 | 26 | 50.2 | 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.3 | dash | - |
5 | 4 | 1 | 2.9 | bash | - |
7 | 5 | 2 | 3.4 | zsh | - |
6 | 4 | 2 | 12.1 | bumpleak/osh | mut |
6 | 3 | 4 | 10.8 | _bin/cxx-opt+bumproot/osh | mut |
8 | 5 | 2 | 12.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native | mut+alloc |
9 | 6 | 3 | 10.1 | osh-native | mut+alloc+free |
9 | 5 | 4 | 8.7 | osh-native | mut+alloc+free+gc |
9 | 4 | 5 | 8.4 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 3 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 9 | 2 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
7 | 4 | 3 | 9.7 | osh-native-souffle | mut+alloc |
8 | 4 | 3 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 7 | 1 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
8 | 6 | 2 | 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 | 18 | 5 | 3.1 | zsh | - |
19 | 16 | 3 | 32.6 | bumpleak/osh | mut |
25 | 22 | 3 | 31.2 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 5 | 31.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 26 | 10 | 26.5 | osh-native | mut+alloc |
38 | 24 | 14 | 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 | 37 | 16 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 36 | 2 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
29 | 19 | 10 | 25.8 | osh-native-souffle | mut+alloc |
31 | 21 | 11 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
21 | 19 | 2 | 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 | 71 | 3 | 3.1 | bash | - |
167 | 107 | 60 | 57.3 | bumpleak/osh | mut |
180 | 127 | 53 | 56.1 | _bin/cxx-opt+bumproot/osh | mut |
201 | 135 | 67 | 58.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 133 | 77 | 49.0 | osh-native | mut+alloc |
221 | 148 | 73 | 50.8 | osh-native | mut+alloc+free |
182 | 136 | 46 | 8.8 | osh-native | mut+alloc+free+gc |
184 | 135 | 49 | 8.9 | osh-native | mut+alloc+free+gc+exit |
233 | 161 | 72 | 64.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
213 | 161 | 52 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
203 | 132 | 70 | 48.4 | osh-native-souffle | mut+alloc |
210 | 145 | 65 | 50.4 | osh-native-souffle | mut+alloc+free |
173 | 125 | 48 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
173 | 118 | 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 | 4 | 6 | 3.5 | dash | - |
19 | 10 | 9 | 4.3 | bash | - |
17 | 6 | 11 | 3.4 | zsh | - |
17 | 10 | 7 | 13.2 | bumpleak/osh | mut |
20 | 8 | 12 | 13.1 | _bin/cxx-opt+bumproot/osh | mut |
19 | 8 | 12 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
20 | 11 | 10 | 11.1 | osh-native | mut+alloc |
22 | 10 | 12 | 11.1 | osh-native | mut+alloc+free |
22 | 13 | 9 | 8.8 | osh-native | mut+alloc+free+gc |
22 | 13 | 9 | 8.9 | osh-native | mut+alloc+free+gc+exit |
24 | 15 | 9 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 13 | 12 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
19 | 10 | 10 | 10.5 | osh-native-souffle | mut+alloc |
21 | 10 | 11 | 10.7 | osh-native-souffle | mut+alloc+free |
20 | 10 | 11 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
21 | 11 | 11 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |