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 | 149 | 23 | 62 | 44.5 | 49.8 | 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.7 | 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 | 181 | 0 | 4 | 11.1 | 8.8 | 1,021,036 | 15,258 | 22 | 50,000 | 0 | 3,915 | osh-native |
ex.bashcomp-parse-help | 176 | 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 | 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 | 5 | 1 | 1.6 | dash | - |
23 | 21 | 2 | 3.0 | bash | - |
99 | 58 | 48 | 3.4 | zsh | - |
16 | 10 | 7 | 28.1 | bumpleak/osh | mut |
19 | 14 | 5 | 29.5 | _bin/cxx-opt+bumproot/osh | mut |
23 | 16 | 7 | 29.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 21 | 8 | 25.3 | osh-native | mut+alloc |
31 | 21 | 10 | 25.7 | osh-native | mut+alloc+free |
35 | 30 | 5 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 25 | 11 | 18.1 | osh-native | mut+alloc+free+gc+exit |
42 | 26 | 17 | 32.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 41 | 7 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 20 | 6 | 24.8 | osh-native-souffle | mut+alloc |
29 | 17 | 13 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 21 | 11 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
34 | 27 | 7 | 17.8 | 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 | 18 | 3 | 1.6 | dash | - |
81 | 78 | 3 | 3.1 | bash | - |
361 | 190 | 192 | 3.4 | zsh | - |
49 | 40 | 9 | 84.3 | bumpleak/osh | mut |
60 | 50 | 10 | 86.2 | _bin/cxx-opt+bumproot/osh | mut |
71 | 65 | 6 | 86.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 58 | 39 | 73.5 | osh-native | mut+alloc |
105 | 69 | 36 | 75.5 | osh-native | mut+alloc+free |
149 | 131 | 17 | 49.8 | osh-native | mut+alloc+free+gc |
153 | 126 | 27 | 50.5 | osh-native | mut+alloc+free+gc+exit |
140 | 93 | 47 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 182 | 28 | 66.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 52 | 36 | 73.3 | osh-native-souffle | mut+alloc |
97 | 67 | 30 | 75.0 | osh-native-souffle | mut+alloc+free |
139 | 121 | 18 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
146 | 126 | 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 | 1 | 1 | 1.4 | dash | - |
5 | 4 | 2 | 2.9 | bash | - |
7 | 3 | 5 | 3.3 | zsh | - |
6 | 2 | 4 | 11.5 | bumpleak/osh | mut |
6 | 5 | 2 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 3 | 5 | 10.2 | osh-native | mut+alloc |
9 | 7 | 2 | 10.1 | osh-native | mut+alloc+free |
9 | 8 | 1 | 8.7 | osh-native | mut+alloc+free+gc |
9 | 5 | 4 | 8.4 | osh-native | mut+alloc+free+gc+exit |
12 | 6 | 6 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 7 | 4 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.6 | osh-native-souffle | mut+alloc |
8 | 5 | 3 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 5 | 3 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
8 | 5 | 4 | 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 | - |
29 | 28 | 1 | 2.9 | bash | - |
23 | 17 | 6 | 3.3 | zsh | - |
18 | 13 | 5 | 32.8 | bumpleak/osh | mut |
26 | 21 | 5 | 33.2 | _bin/cxx-opt+bumproot/osh | mut |
28 | 25 | 3 | 32.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 26 | 10 | 26.3 | osh-native | mut+alloc |
38 | 29 | 9 | 26.6 | osh-native | mut+alloc+free |
28 | 26 | 2 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 26 | 3 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 38 | 16 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 35 | 3 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 25 | 5 | 25.8 | osh-native-souffle | mut+alloc |
31 | 22 | 9 | 26.0 | osh-native-souffle | mut+alloc+free |
22 | 17 | 5 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 18 | 4 | 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 | 69 | 4 | 3.3 | bash | - |
167 | 113 | 54 | 55.8 | bumpleak/osh | mut |
181 | 120 | 61 | 57.9 | _bin/cxx-opt+bumproot/osh | mut |
195 | 132 | 63 | 57.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
214 | 146 | 69 | 49.0 | osh-native | mut+alloc |
221 | 144 | 74 | 50.9 | osh-native | mut+alloc+free |
181 | 132 | 50 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 123 | 59 | 8.9 | osh-native | mut+alloc+free+gc+exit |
237 | 155 | 82 | 64.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 167 | 42 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
205 | 144 | 61 | 48.4 | osh-native-souffle | mut+alloc |
212 | 120 | 91 | 50.3 | osh-native-souffle | mut+alloc+free |
176 | 131 | 45 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
174 | 135 | 40 | 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.5 | dash | - |
19 | 9 | 10 | 4.3 | bash | - |
17 | 9 | 9 | 3.4 | zsh | - |
19 | 7 | 12 | 13.0 | bumpleak/osh | mut |
19 | 10 | 9 | 13.7 | _bin/cxx-opt+bumproot/osh | mut |
21 | 9 | 12 | 13.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 11 | 11 | 11.1 | osh-native | mut+alloc |
22 | 13 | 10 | 11.3 | osh-native | mut+alloc+free |
22 | 8 | 14 | 9.2 | osh-native | mut+alloc+free+gc |
22 | 12 | 11 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 11 | 14 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 14 | 11 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
19 | 7 | 13 | 10.6 | osh-native-souffle | mut+alloc |
21 | 11 | 11 | 10.6 | osh-native-souffle | mut+alloc+free |
21 | 7 | 14 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 10 | 12 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |