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 | 41 | 6 | 14 | 12.0 | 18.0 | 476,751 | 1,282 | 6 | 406,604 | 5 | 203,302 | osh-native |
parse.configure-cpython | 34 | 4 | 10 | 12.0 | 17.4 | 476,751 | 1,282 | 6 | 406,200 | 5 | 203,100 | osh-native-souffle |
parse.configure-coreutils | 166 | 28 | 79 | 44.5 | 49.8 | 1,653,339 | 4,764 | 12 | 1,025,526 | 6 | 764,306 | osh-native |
parse.configure-coreutils | 157 | 25 | 79 | 44.5 | 49.2 | 1,653,338 | 4,764 | 12 | 1,025,396 | 6 | 764,241 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,942 | 180 | 2 | 75,030 | 1 | 37,515 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 7.7 | 101,942 | 180 | 3 | 87,092 | 1 | 43,546 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.1 | 7.9 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,919 | osh-native |
ex.compute-fib | 21 | 0 | 1 | 2.1 | 7.6 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,858 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 4 | 10.8 | 8.8 | 1,006,005 | 15,258 | 21 | 50,000 | 0 | 3,919 | osh-native |
ex.bashcomp-parse-help | 174 | 0 | 3 | 10.8 | 8.4 | 1,006,004 | 15,258 | 21 | 50,000 | 0 | 3,842 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.2 | 116,318 | 277 | 3 | 85,248 | 1 | 42,624 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 116,318 | 277 | 3 | 85,124 | 1 | 42,562 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 5 | 1 | 1.6 | dash | - |
23 | 22 | 1 | 3.0 | bash | - |
102 | 61 | 47 | 3.5 | zsh | - |
16 | 13 | 3 | 28.8 | bumpleak/osh | mut |
19 | 17 | 2 | 31.2 | _bin/cxx-opt+bumproot/osh | mut |
23 | 17 | 6 | 28.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 20 | 10 | 25.0 | osh-native | mut+alloc |
33 | 20 | 13 | 25.7 | osh-native | mut+alloc+free |
41 | 33 | 9 | 18.0 | osh-native | mut+alloc+free+gc |
42 | 35 | 7 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 32 | 11 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
61 | 49 | 12 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
28 | 18 | 10 | 24.9 | osh-native-souffle | mut+alloc |
30 | 17 | 13 | 25.3 | osh-native-souffle | mut+alloc+free |
34 | 27 | 6 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
38 | 33 | 5 | 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 |
22 | 21 | 1 | 1.6 | dash | - |
80 | 78 | 2 | 3.3 | bash | - |
367 | 194 | 195 | 3.7 | zsh | - |
50 | 42 | 8 | 84.6 | bumpleak/osh | mut |
61 | 51 | 10 | 86.1 | _bin/cxx-opt+bumproot/osh | mut |
71 | 53 | 18 | 85.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 60 | 37 | 73.4 | osh-native | mut+alloc |
106 | 72 | 34 | 75.4 | osh-native | mut+alloc+free |
166 | 142 | 24 | 49.8 | osh-native | mut+alloc+free+gc |
170 | 154 | 16 | 50.5 | osh-native | mut+alloc+free+gc+exit |
141 | 86 | 55 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
265 | 229 | 36 | 66.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 53 | 35 | 73.1 | osh-native-souffle | mut+alloc |
97 | 63 | 34 | 75.0 | osh-native-souffle | mut+alloc+free |
157 | 132 | 25 | 49.2 | osh-native-souffle | mut+alloc+free+gc |
170 | 147 | 23 | 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 | - |
6 | 4 | 2 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 5 | 1 | 10.9 | bumpleak/osh | mut |
7 | 4 | 3 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 11.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 9.8 | osh-native | mut+alloc |
9 | 6 | 3 | 10.2 | osh-native | mut+alloc+free |
9 | 6 | 4 | 8.4 | osh-native | mut+alloc+free+gc |
11 | 4 | 7 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 6 | 5 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
13 | 7 | 5 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.4 | osh-native-souffle | mut+alloc |
8 | 6 | 2 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 8 | 1 | 7.7 | osh-native-souffle | mut+alloc+free+gc |
9 | 8 | 1 | 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 | - |
29 | 28 | 1 | 3.0 | bash | - |
23 | 19 | 4 | 3.4 | zsh | - |
18 | 13 | 5 | 31.3 | bumpleak/osh | mut |
27 | 23 | 4 | 32.9 | _bin/cxx-opt+bumproot/osh | mut |
29 | 24 | 5 | 33.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 27 | 10 | 26.3 | osh-native | mut+alloc |
39 | 24 | 15 | 26.6 | osh-native | mut+alloc+free |
28 | 26 | 2 | 7.9 | osh-native | mut+alloc+free+gc |
29 | 25 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 33 | 21 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 33 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 20 | 10 | 26.0 | osh-native-souffle | mut+alloc |
32 | 17 | 14 | 26.2 | osh-native-souffle | mut+alloc+free |
21 | 20 | 2 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
21 | 20 | 1 | 7.3 | 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 | 72 | 2 | 3.0 | bash | - |
168 | 118 | 50 | 56.0 | bumpleak/osh | mut |
181 | 118 | 63 | 57.1 | _bin/cxx-opt+bumproot/osh | mut |
196 | 127 | 69 | 56.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 144 | 69 | 48.2 | osh-native | mut+alloc |
221 | 146 | 75 | 50.0 | osh-native | mut+alloc+free |
182 | 136 | 46 | 8.8 | osh-native | mut+alloc+free+gc |
184 | 120 | 64 | 8.9 | osh-native | mut+alloc+free+gc+exit |
240 | 153 | 84 | 64.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
216 | 147 | 69 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
203 | 135 | 69 | 47.6 | osh-native-souffle | mut+alloc |
212 | 139 | 73 | 49.6 | osh-native-souffle | mut+alloc+free |
174 | 122 | 51 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
174 | 119 | 54 | 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.4 | dash | - |
19 | 12 | 8 | 4.5 | bash | - |
17 | 7 | 10 | 3.4 | zsh | - |
19 | 10 | 10 | 12.6 | bumpleak/osh | mut |
20 | 7 | 13 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
20 | 9 | 12 | 12.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 10 | 12 | 11.1 | osh-native | mut+alloc |
22 | 11 | 12 | 11.1 | osh-native | mut+alloc+free |
23 | 11 | 12 | 9.2 | osh-native | mut+alloc+free+gc |
23 | 13 | 11 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 14 | 12 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 15 | 11 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 11 | 10 | 10.6 | osh-native-souffle | mut+alloc |
21 | 9 | 12 | 10.9 | osh-native-souffle | mut+alloc+free |
21 | 12 | 10 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 10 | 12 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |