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 | 36 | 3 | 10 | 12.0 | 17.7 | 476,761 | 1,282 | 6 | 406,608 | 5 | 203,304 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.6 | 476,761 | 1,282 | 6 | 406,324 | 5 | 203,162 | osh-native-souffle |
parse.configure-coreutils | 151 | 24 | 66 | 44.5 | 49.6 | 1,653,349 | 4,764 | 12 | 1,025,530 | 6 | 764,308 | osh-native |
parse.configure-coreutils | 144 | 25 | 68 | 44.5 | 49.3 | 1,653,348 | 4,764 | 12 | 1,025,520 | 6 | 764,303 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 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.0 | 579,716 | 22,608 | 12 | 50,000 | 0 | 2,921 | osh-native |
ex.compute-fib | 21 | 0 | 2 | 2.2 | 7.6 | 579,716 | 22,608 | 12 | 50,000 | 0 | 2,916 | osh-native-souffle |
ex.bashcomp-parse-help | 183 | 0 | 4 | 11.1 | 9.0 | 1,021,031 | 15,258 | 22 | 50,000 | 0 | 3,910 | osh-native |
ex.bashcomp-parse-help | 174 | 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 | 9.0 | 116,335 | 277 | 3 | 85,252 | 1 | 42,626 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 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 |
7 | 6 | 1 | 1.6 | dash | - |
24 | 22 | 2 | 3.0 | bash | - |
100 | 56 | 50 | 3.3 | zsh | - |
17 | 12 | 5 | 28.6 | bumpleak/osh | mut |
20 | 16 | 4 | 30.4 | _bin/cxx-opt+bumproot/osh | mut |
23 | 16 | 7 | 30.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 16 | 13 | 25.3 | osh-native | mut+alloc |
31 | 24 | 7 | 25.6 | osh-native | mut+alloc+free |
36 | 28 | 8 | 17.7 | osh-native | mut+alloc+free+gc |
37 | 32 | 5 | 18.1 | osh-native | mut+alloc+free+gc+exit |
42 | 30 | 12 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 40 | 8 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 16 | 10 | 24.9 | osh-native-souffle | mut+alloc |
28 | 23 | 5 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 25 | 8 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
34 | 30 | 4 | 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 | - |
77 | 76 | 1 | 3.0 | bash | - |
365 | 192 | 196 | 3.4 | zsh | - |
49 | 43 | 6 | 85.7 | bumpleak/osh | mut |
59 | 49 | 10 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
70 | 55 | 15 | 85.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 63 | 34 | 73.4 | osh-native | mut+alloc |
106 | 76 | 30 | 75.4 | osh-native | mut+alloc+free |
151 | 125 | 26 | 49.6 | osh-native | mut+alloc+free+gc |
151 | 134 | 17 | 50.5 | osh-native | mut+alloc+free+gc+exit |
136 | 89 | 46 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
216 | 185 | 30 | 66.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 54 | 34 | 73.1 | osh-native-souffle | mut+alloc |
94 | 68 | 27 | 75.0 | osh-native-souffle | mut+alloc+free |
144 | 123 | 21 | 49.3 | osh-native-souffle | mut+alloc+free+gc |
146 | 130 | 16 | 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.3 | dash | - |
5 | 4 | 1 | 2.9 | bash | - |
7 | 4 | 3 | 3.1 | zsh | - |
6 | 3 | 4 | 10.3 | bumpleak/osh | mut |
7 | 7 | 0 | 11.3 | _bin/cxx-opt+bumproot/osh | mut |
7 | 5 | 2 | 11.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 7 | 1 | 10.1 | osh-native | mut+alloc |
9 | 5 | 4 | 10.0 | osh-native | mut+alloc+free |
9 | 8 | 1 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 10 | 2 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 7 | 5 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 7 | 1 | 9.7 | osh-native-souffle | mut+alloc |
8 | 6 | 2 | 9.6 | osh-native-souffle | mut+alloc+free |
8 | 6 | 3 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
8 | 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.4 | dash | - |
28 | 28 | 0 | 3.0 | bash | - |
23 | 15 | 8 | 3.4 | zsh | - |
18 | 14 | 4 | 31.1 | bumpleak/osh | mut |
26 | 21 | 5 | 32.5 | _bin/cxx-opt+bumproot/osh | mut |
30 | 24 | 6 | 31.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 27 | 9 | 26.3 | osh-native | mut+alloc |
37 | 27 | 11 | 26.6 | osh-native | mut+alloc+free |
28 | 26 | 2 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 26 | 2 | 8.1 | osh-native | mut+alloc+free+gc+exit |
54 | 37 | 16 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 32 | 6 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
29 | 21 | 8 | 26.0 | osh-native-souffle | mut+alloc |
31 | 23 | 8 | 26.3 | osh-native-souffle | mut+alloc+free |
21 | 20 | 1 | 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 |
73 | 70 | 3 | 3.0 | bash | - |
168 | 111 | 57 | 57.5 | bumpleak/osh | mut |
184 | 127 | 57 | 56.5 | _bin/cxx-opt+bumproot/osh | mut |
199 | 132 | 67 | 57.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 148 | 65 | 48.9 | osh-native | mut+alloc |
221 | 151 | 69 | 50.8 | osh-native | mut+alloc+free |
183 | 129 | 54 | 9.0 | osh-native | mut+alloc+free+gc |
182 | 136 | 46 | 8.8 | osh-native | mut+alloc+free+gc+exit |
239 | 158 | 81 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 150 | 61 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
202 | 132 | 70 | 48.4 | osh-native-souffle | mut+alloc |
210 | 144 | 65 | 50.4 | osh-native-souffle | mut+alloc+free |
174 | 121 | 53 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
173 | 116 | 57 | 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 | 5 | 3.4 | dash | - |
19 | 10 | 10 | 4.5 | bash | - |
17 | 7 | 11 | 3.4 | zsh | - |
19 | 6 | 13 | 12.2 | bumpleak/osh | mut |
19 | 12 | 8 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
20 | 11 | 9 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 8 | 14 | 11.1 | osh-native | mut+alloc |
22 | 10 | 13 | 11.1 | osh-native | mut+alloc+free |
22 | 13 | 10 | 9.0 | osh-native | mut+alloc+free+gc |
22 | 13 | 10 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 9 | 17 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 13 | 12 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 11 | 10 | 10.6 | osh-native-souffle | mut+alloc |
21 | 9 | 12 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 11 | 11 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 11 | 11 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |