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 | 17.8 | 476,761 | 1,282 | 6 | 406,608 | 5 | 203,304 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.4 | 476,761 | 1,282 | 6 | 406,228 | 5 | 203,114 | osh-native-souffle |
parse.configure-coreutils | 163 | 26 | 66 | 44.5 | 49.7 | 1,653,349 | 4,764 | 12 | 1,025,530 | 6 | 764,308 | osh-native |
parse.configure-coreutils | 135 | 23 | 58 | 44.5 | 49.4 | 1,653,348 | 4,764 | 12 | 1,025,424 | 6 | 764,255 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,952 | 180 | 2 | 75,034 | 1 | 37,517 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 7.7 | 101,952 | 180 | 3 | 87,120 | 1 | 43,560 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.2 | 7.9 | 579,616 | 22,608 | 12 | 50,000 | 0 | 2,921 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.2 | 7.5 | 579,616 | 22,608 | 12 | 50,000 | 0 | 2,872 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 3 | 10.9 | 8.8 | 1,017,214 | 15,258 | 21 | 50,000 | 0 | 3,902 | osh-native |
ex.bashcomp-parse-help | 174 | 0 | 3 | 10.9 | 8.3 | 1,017,213 | 15,258 | 21 | 50,000 | 0 | 3,856 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,328 | 277 | 3 | 85,252 | 1 | 42,626 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.5 | 116,328 | 277 | 3 | 85,152 | 1 | 42,576 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 5 | 1 | 1.4 | dash | - |
23 | 22 | 1 | 3.1 | bash | - |
101 | 55 | 52 | 3.5 | zsh | - |
16 | 14 | 2 | 29.1 | bumpleak/osh | mut |
19 | 15 | 4 | 29.1 | _bin/cxx-opt+bumproot/osh | mut |
22 | 16 | 6 | 28.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 17 | 12 | 25.4 | osh-native | mut+alloc |
31 | 16 | 15 | 25.8 | osh-native | mut+alloc+free |
35 | 26 | 9 | 17.8 | osh-native | mut+alloc+free+gc |
35 | 24 | 11 | 18.0 | osh-native | mut+alloc+free+gc+exit |
41 | 26 | 15 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 35 | 12 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 17 | 9 | 24.9 | osh-native-souffle | mut+alloc |
28 | 19 | 9 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 22 | 10 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
34 | 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 |
21 | 21 | 0 | 1.6 | dash | - |
78 | 75 | 2 | 3.3 | bash | - |
359 | 193 | 188 | 3.4 | zsh | - |
50 | 43 | 7 | 85.0 | bumpleak/osh | mut |
60 | 51 | 9 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
69 | 53 | 16 | 86.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 69 | 29 | 73.5 | osh-native | mut+alloc |
108 | 78 | 30 | 75.4 | osh-native | mut+alloc+free |
163 | 134 | 29 | 49.7 | osh-native | mut+alloc+free+gc |
150 | 125 | 25 | 50.3 | osh-native | mut+alloc+free+gc+exit |
137 | 82 | 56 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
202 | 172 | 30 | 66.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
89 | 62 | 27 | 73.1 | osh-native-souffle | mut+alloc |
94 | 66 | 28 | 75.1 | osh-native-souffle | mut+alloc+free |
135 | 111 | 24 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
141 | 122 | 19 | 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.4 | dash | - |
5 | 5 | 0 | 3.0 | bash | - |
7 | 3 | 4 | 3.3 | zsh | - |
7 | 3 | 4 | 10.7 | bumpleak/osh | mut |
7 | 4 | 3 | 11.6 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 6 | 2 | 10.0 | osh-native | mut+alloc |
8 | 5 | 3 | 10.1 | osh-native | mut+alloc+free |
9 | 8 | 1 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.8 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 8 | 3 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
7 | 6 | 1 | 9.6 | osh-native-souffle | mut+alloc |
8 | 5 | 3 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 6 | 3 | 7.7 | osh-native-souffle | mut+alloc+free+gc |
9 | 6 | 3 | 8.0 | 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.6 | dash | - |
30 | 29 | 1 | 3.0 | bash | - |
23 | 17 | 6 | 3.1 | zsh | - |
18 | 13 | 5 | 31.0 | bumpleak/osh | mut |
25 | 19 | 6 | 33.3 | _bin/cxx-opt+bumproot/osh | mut |
27 | 24 | 3 | 31.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 26.3 | osh-native | mut+alloc |
37 | 30 | 7 | 26.6 | osh-native | mut+alloc+free |
28 | 23 | 5 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 26 | 2 | 8.0 | osh-native | mut+alloc+free+gc+exit |
53 | 38 | 15 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 35 | 3 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 23 | 6 | 26.0 | osh-native-souffle | mut+alloc |
31 | 21 | 9 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 21 | 1 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
21 | 20 | 1 | 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 | 68 | 5 | 3.1 | bash | - |
166 | 116 | 50 | 56.1 | bumpleak/osh | mut |
178 | 126 | 51 | 57.2 | _bin/cxx-opt+bumproot/osh | mut |
196 | 135 | 61 | 57.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 131 | 82 | 48.7 | osh-native | mut+alloc |
217 | 148 | 68 | 50.6 | osh-native | mut+alloc+free |
182 | 134 | 48 | 8.8 | osh-native | mut+alloc+free+gc |
180 | 124 | 56 | 8.8 | osh-native | mut+alloc+free+gc+exit |
230 | 154 | 77 | 64.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 151 | 58 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
205 | 131 | 74 | 48.2 | osh-native-souffle | mut+alloc |
210 | 141 | 69 | 50.2 | osh-native-souffle | mut+alloc+free |
174 | 114 | 60 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
174 | 116 | 58 | 8.3 | 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.3 | dash | - |
19 | 11 | 8 | 4.3 | bash | - |
17 | 8 | 10 | 3.5 | zsh | - |
18 | 7 | 11 | 11.4 | bumpleak/osh | mut |
19 | 9 | 11 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
19 | 11 | 9 | 12.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 7 | 15 | 10.9 | osh-native | mut+alloc |
22 | 9 | 13 | 11.3 | osh-native | mut+alloc+free |
22 | 13 | 10 | 9.0 | osh-native | mut+alloc+free+gc |
22 | 12 | 10 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 11 | 14 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 18 | 7 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
19 | 10 | 10 | 10.5 | osh-native-souffle | mut+alloc |
21 | 13 | 8 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 12 | 9 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
21 | 10 | 11 | 8.4 | osh-native-souffle | mut+alloc+free+gc+exit |