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,768 | 1,282 | 6 | 406,620 | 5 | 203,310 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.3 | 476,768 | 1,282 | 6 | 406,610 | 5 | 203,305 | osh-native-souffle |
parse.configure-coreutils | 150 | 25 | 64 | 44.5 | 49.7 | 1,653,356 | 4,764 | 12 | 1,025,542 | 6 | 764,314 | osh-native |
parse.configure-coreutils | 140 | 25 | 63 | 44.5 | 49.4 | 1,653,355 | 4,764 | 12 | 1,025,532 | 6 | 764,309 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,959 | 180 | 2 | 75,046 | 1 | 37,523 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.3 | 101,959 | 180 | 2 | 75,036 | 1 | 37,518 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.2 | 8.1 | 579,723 | 22,608 | 12 | 50,000 | 0 | 2,927 | osh-native |
ex.compute-fib | 21 | 0 | 1 | 2.2 | 7.6 | 579,723 | 22,608 | 12 | 50,000 | 0 | 2,922 | osh-native-souffle |
ex.bashcomp-parse-help | 183 | 0 | 4 | 11.1 | 8.9 | 1,021,040 | 15,258 | 22 | 50,000 | 0 | 3,916 | osh-native |
ex.bashcomp-parse-help | 176 | 0 | 4 | 11.1 | 8.3 | 1,021,039 | 15,258 | 22 | 50,000 | 0 | 3,916 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.2 | 116,358 | 277 | 3 | 85,264 | 1 | 42,632 | osh-native |
ex.abuild-print-help | 20 | 1 | 2 | 2.8 | 8.5 | 116,358 | 277 | 3 | 85,254 | 1 | 42,627 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 5 | 1 | 1.4 | dash | - |
23 | 21 | 2 | 3.0 | bash | - |
100 | 59 | 48 | 3.4 | zsh | - |
16 | 15 | 1 | 28.8 | bumpleak/osh | mut |
19 | 17 | 2 | 29.1 | _bin/cxx-opt+bumproot/osh | mut |
23 | 17 | 6 | 28.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 18 | 11 | 25.2 | osh-native | mut+alloc |
31 | 18 | 13 | 25.7 | osh-native | mut+alloc+free |
35 | 30 | 5 | 17.8 | osh-native | mut+alloc+free+gc |
36 | 28 | 8 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 24 | 19 | 32.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 42 | 5 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 18 | 9 | 25.0 | osh-native-souffle | mut+alloc |
29 | 21 | 8 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 24 | 8 | 17.3 | 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 |
22 | 20 | 2 | 1.6 | dash | - |
78 | 76 | 2 | 3.1 | bash | - |
360 | 202 | 179 | 3.4 | zsh | - |
49 | 44 | 5 | 85.7 | bumpleak/osh | mut |
60 | 53 | 7 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
72 | 58 | 14 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 63 | 34 | 73.4 | osh-native | mut+alloc |
105 | 66 | 40 | 75.2 | osh-native | mut+alloc+free |
150 | 130 | 20 | 49.7 | osh-native | mut+alloc+free+gc |
160 | 137 | 23 | 50.3 | osh-native | mut+alloc+free+gc+exit |
136 | 90 | 46 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 177 | 34 | 66.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 52 | 36 | 73.1 | osh-native-souffle | mut+alloc |
99 | 68 | 31 | 75.0 | osh-native-souffle | mut+alloc+free |
140 | 120 | 20 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
145 | 122 | 23 | 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.4 | dash | - |
5 | 4 | 1 | 3.0 | bash | - |
7 | 5 | 2 | 3.4 | zsh | - |
6 | 3 | 3 | 12.0 | bumpleak/osh | mut |
7 | 3 | 4 | 11.5 | _bin/cxx-opt+bumproot/osh | mut |
7 | 5 | 2 | 11.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 5 | 3 | 10.0 | osh-native | mut+alloc |
9 | 6 | 2 | 10.2 | osh-native | mut+alloc+free |
9 | 7 | 2 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 7 | 2 | 8.8 | osh-native | mut+alloc+free+gc+exit |
12 | 5 | 7 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 7 | 5 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 3 | 9.8 | osh-native-souffle | mut+alloc |
8 | 6 | 2 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 6 | 2 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
8 | 4 | 5 | 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 | 9 | 1 | 1.4 | dash | - |
29 | 28 | 1 | 3.0 | bash | - |
23 | 15 | 8 | 3.3 | zsh | - |
19 | 19 | 0 | 32.8 | bumpleak/osh | mut |
27 | 23 | 4 | 32.4 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 26 | 10 | 26.5 | osh-native | mut+alloc |
38 | 30 | 8 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 5 | 8.1 | osh-native | mut+alloc+free+gc |
29 | 28 | 1 | 8.0 | osh-native | mut+alloc+free+gc+exit |
53 | 39 | 14 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 33 | 5 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 20 | 11 | 26.0 | osh-native-souffle | mut+alloc |
31 | 24 | 7 | 26.2 | osh-native-souffle | mut+alloc+free |
21 | 19 | 2 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 19 | 3 | 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 |
72 | 70 | 2 | 3.1 | bash | - |
168 | 93 | 75 | 57.3 | bumpleak/osh | mut |
182 | 128 | 54 | 58.0 | _bin/cxx-opt+bumproot/osh | mut |
195 | 136 | 59 | 58.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
214 | 140 | 74 | 48.9 | osh-native | mut+alloc |
222 | 140 | 82 | 51.0 | osh-native | mut+alloc+free |
183 | 141 | 42 | 8.9 | osh-native | mut+alloc+free+gc |
186 | 129 | 57 | 8.9 | osh-native | mut+alloc+free+gc+exit |
235 | 154 | 81 | 64.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
212 | 160 | 52 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
207 | 135 | 72 | 48.3 | osh-native-souffle | mut+alloc |
213 | 133 | 80 | 50.3 | osh-native-souffle | mut+alloc+free |
176 | 118 | 59 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
175 | 117 | 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 | 6 | 4 | 3.3 | dash | - |
19 | 13 | 7 | 4.5 | bash | - |
17 | 6 | 12 | 3.4 | zsh | - |
20 | 7 | 14 | 12.9 | bumpleak/osh | mut |
19 | 7 | 13 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
20 | 7 | 13 | 13.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 12 | 9 | 11.1 | osh-native | mut+alloc |
22 | 12 | 11 | 11.3 | osh-native | mut+alloc+free |
22 | 14 | 8 | 9.2 | osh-native | mut+alloc+free+gc |
22 | 11 | 12 | 9.2 | osh-native | mut+alloc+free+gc+exit |
24 | 12 | 12 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 12 | 13 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 10 | 10 | 10.6 | osh-native-souffle | mut+alloc |
21 | 7 | 14 | 10.7 | osh-native-souffle | mut+alloc+free |
20 | 11 | 10 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
21 | 12 | 9 | 8.8 | osh-native-souffle | mut+alloc+free+gc+exit |