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 | 9 | 12.0 | 18.0 | 476,751 | 1,282 | 6 | 406,604 | 5 | 203,302 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.7 | 476,751 | 1,282 | 6 | 406,200 | 5 | 203,100 | osh-native-souffle |
parse.configure-coreutils | 163 | 25 | 75 | 44.5 | 49.6 | 1,653,339 | 4,764 | 12 | 1,025,526 | 6 | 764,306 | osh-native |
parse.configure-coreutils | 146 | 24 | 69 | 44.5 | 49.4 | 1,653,338 | 4,764 | 12 | 1,025,396 | 6 | 764,241 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,942 | 180 | 2 | 75,030 | 1 | 37,515 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 8.0 | 101,942 | 180 | 3 | 87,092 | 1 | 43,546 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.2 | 8.0 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,919 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.2 | 7.6 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,858 | osh-native-souffle |
ex.bashcomp-parse-help | 184 | 0 | 4 | 10.9 | 8.8 | 1,017,204 | 15,258 | 21 | 50,000 | 0 | 3,900 | osh-native |
ex.bashcomp-parse-help | 174 | 0 | 4 | 10.9 | 8.4 | 1,017,203 | 15,258 | 21 | 50,000 | 0 | 3,851 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,318 | 277 | 3 | 85,248 | 1 | 42,624 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.5 | 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 | 23 | 0 | 3.0 | bash | - |
102 | 51 | 58 | 3.3 | zsh | - |
17 | 11 | 6 | 28.2 | bumpleak/osh | mut |
20 | 17 | 3 | 28.7 | _bin/cxx-opt+bumproot/osh | mut |
26 | 22 | 4 | 29.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 18 | 11 | 25.0 | osh-native | mut+alloc |
32 | 17 | 14 | 25.8 | osh-native | mut+alloc+free |
36 | 32 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 26 | 11 | 18.1 | osh-native | mut+alloc+free+gc+exit |
42 | 29 | 13 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
50 | 38 | 12 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 16 | 10 | 24.8 | osh-native-souffle | mut+alloc |
29 | 21 | 8 | 25.4 | osh-native-souffle | mut+alloc+free |
32 | 24 | 8 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
35 | 29 | 7 | 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 | 76 | 2 | 3.1 | bash | - |
364 | 189 | 196 | 3.7 | zsh | - |
48 | 37 | 11 | 85.5 | bumpleak/osh | mut |
60 | 52 | 8 | 85.1 | _bin/cxx-opt+bumproot/osh | mut |
70 | 51 | 19 | 84.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 57 | 39 | 73.8 | osh-native | mut+alloc |
106 | 74 | 32 | 75.4 | osh-native | mut+alloc+free |
163 | 147 | 16 | 49.6 | osh-native | mut+alloc+free+gc |
164 | 139 | 25 | 50.5 | osh-native | mut+alloc+free+gc+exit |
138 | 98 | 40 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
227 | 198 | 29 | 66.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 54 | 34 | 73.1 | osh-native-souffle | mut+alloc |
94 | 65 | 29 | 75.0 | osh-native-souffle | mut+alloc+free |
146 | 123 | 22 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
148 | 126 | 22 | 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 | 4 | 1 | 2.9 | bash | - |
7 | 4 | 4 | 3.3 | zsh | - |
6 | 2 | 4 | 12.0 | bumpleak/osh | mut |
7 | 4 | 3 | 10.8 | _bin/cxx-opt+bumproot/osh | mut |
8 | 5 | 3 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 7 | 2 | 10.0 | osh-native | mut+alloc |
9 | 6 | 3 | 10.1 | osh-native | mut+alloc+free |
9 | 8 | 1 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.4 | osh-native | mut+alloc+free+gc+exit |
12 | 2 | 10 | 11.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 9 | 3 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 6 | 2 | 9.6 | osh-native-souffle | mut+alloc |
9 | 7 | 2 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 7 | 2 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
9 | 5 | 4 | 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 | 10 | 0 | 1.6 | dash | - |
30 | 29 | 1 | 3.0 | bash | - |
23 | 16 | 7 | 3.3 | zsh | - |
18 | 15 | 3 | 31.1 | bumpleak/osh | mut |
26 | 22 | 4 | 32.0 | _bin/cxx-opt+bumproot/osh | mut |
27 | 24 | 3 | 31.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 27 | 10 | 26.2 | 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 | 25 | 4 | 8.1 | osh-native | mut+alloc+free+gc+exit |
53 | 37 | 16 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 34 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 16 | 14 | 26.0 | osh-native-souffle | mut+alloc |
31 | 23 | 8 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 19 | 3 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 19 | 3 | 7.5 | 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.0 | bash | - |
165 | 110 | 55 | 55.3 | bumpleak/osh | mut |
180 | 135 | 45 | 56.1 | _bin/cxx-opt+bumproot/osh | mut |
195 | 127 | 68 | 58.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 138 | 74 | 48.7 | osh-native | mut+alloc |
221 | 143 | 78 | 50.6 | osh-native | mut+alloc+free |
184 | 128 | 56 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 127 | 55 | 8.9 | osh-native | mut+alloc+free+gc+exit |
236 | 154 | 82 | 64.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 162 | 49 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 126 | 78 | 48.3 | osh-native-souffle | mut+alloc |
211 | 130 | 81 | 50.2 | osh-native-souffle | mut+alloc+free |
174 | 117 | 57 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
175 | 121 | 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.5 | dash | - |
19 | 10 | 9 | 4.5 | bash | - |
17 | 5 | 13 | 3.4 | zsh | - |
18 | 6 | 12 | 13.2 | bumpleak/osh | mut |
19 | 10 | 10 | 12.2 | _bin/cxx-opt+bumproot/osh | mut |
21 | 12 | 11 | 13.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 7 | 14 | 11.0 | osh-native | mut+alloc |
22 | 9 | 14 | 11.3 | osh-native | mut+alloc+free |
22 | 15 | 8 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 9 | 14 | 9.2 | osh-native | mut+alloc+free+gc+exit |
25 | 11 | 14 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 16 | 10 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 8 | 12 | 10.6 | osh-native-souffle | mut+alloc |
22 | 9 | 14 | 10.6 | osh-native-souffle | mut+alloc+free |
21 | 8 | 13 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
21 | 11 | 11 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |