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.2 | 476,773 | 1,282 | 6 | 406,626 | 5 | 203,313 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.6 | 476,773 | 1,282 | 6 | 406,616 | 5 | 203,308 | osh-native-souffle |
parse.configure-coreutils | 147 | 23 | 61 | 44.5 | 49.8 | 1,653,361 | 4,764 | 12 | 1,025,548 | 6 | 764,317 | osh-native |
parse.configure-coreutils | 139 | 23 | 64 | 44.5 | 49.4 | 1,653,360 | 4,764 | 12 | 1,025,538 | 6 | 764,312 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.8 | 101,964 | 180 | 2 | 75,052 | 1 | 37,526 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.3 | 101,964 | 180 | 2 | 75,042 | 1 | 37,521 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.2 | 8.0 | 579,727 | 22,608 | 12 | 50,000 | 0 | 2,929 | osh-native |
ex.compute-fib | 21 | 0 | 1 | 2.2 | 7.7 | 579,727 | 22,608 | 12 | 50,000 | 0 | 2,924 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 4 | 11.1 | 8.9 | 1,021,044 | 15,258 | 22 | 50,000 | 0 | 3,918 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 4 | 11.1 | 8.3 | 1,021,043 | 15,258 | 22 | 50,000 | 0 | 3,909 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.2 | 116,362 | 277 | 3 | 85,268 | 1 | 42,634 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.8 | 116,362 | 277 | 3 | 85,258 | 1 | 42,629 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 22 | 1 | 3.1 | bash | - |
100 | 52 | 55 | 3.5 | zsh | - |
16 | 12 | 4 | 27.9 | bumpleak/osh | mut |
19 | 15 | 4 | 29.2 | _bin/cxx-opt+bumproot/osh | mut |
23 | 20 | 3 | 30.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 21 | 9 | 25.3 | osh-native | mut+alloc |
32 | 25 | 7 | 25.7 | osh-native | mut+alloc+free |
36 | 26 | 10 | 18.2 | osh-native | mut+alloc+free+gc |
36 | 30 | 6 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 31 | 12 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 37 | 11 | 22.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 18 | 8 | 24.9 | osh-native-souffle | mut+alloc |
28 | 21 | 7 | 25.2 | osh-native-souffle | mut+alloc+free |
32 | 26 | 6 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 27 | 6 | 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 |
21 | 20 | 1 | 1.6 | dash | - |
78 | 76 | 2 | 3.3 | bash | - |
363 | 211 | 172 | 3.5 | zsh | - |
49 | 39 | 10 | 86.0 | bumpleak/osh | mut |
61 | 51 | 10 | 86.4 | _bin/cxx-opt+bumproot/osh | mut |
71 | 61 | 10 | 86.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
100 | 64 | 37 | 73.7 | osh-native | mut+alloc |
107 | 69 | 38 | 75.4 | osh-native | mut+alloc+free |
147 | 131 | 16 | 49.8 | osh-native | mut+alloc+free+gc |
159 | 135 | 24 | 50.3 | osh-native | mut+alloc+free+gc+exit |
138 | 89 | 49 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
219 | 188 | 31 | 66.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 50 | 36 | 73.1 | osh-native-souffle | mut+alloc |
93 | 61 | 32 | 75.1 | osh-native-souffle | mut+alloc+free |
139 | 115 | 25 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
145 | 120 | 25 | 49.9 | 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.3 | dash | - |
6 | 5 | 1 | 3.0 | bash | - |
7 | 3 | 4 | 3.3 | zsh | - |
6 | 2 | 4 | 10.4 | bumpleak/osh | mut |
7 | 3 | 4 | 11.2 | _bin/cxx-opt+bumproot/osh | mut |
7 | 3 | 4 | 10.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 7 | 2 | 10.1 | osh-native | mut+alloc |
9 | 8 | 1 | 10.2 | osh-native | mut+alloc+free |
9 | 4 | 5 | 8.8 | osh-native | mut+alloc+free+gc |
9 | 6 | 4 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 7 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 9 | 2 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 5 | 3 | 9.4 | osh-native-souffle | mut+alloc |
8 | 6 | 2 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 6 | 3 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
8 | 5 | 4 | 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 | 29 | 0 | 2.9 | bash | - |
23 | 18 | 5 | 3.3 | zsh | - |
19 | 17 | 2 | 31.8 | bumpleak/osh | mut |
26 | 23 | 3 | 31.7 | _bin/cxx-opt+bumproot/osh | mut |
28 | 21 | 7 | 31.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 30 | 7 | 26.5 | osh-native | mut+alloc |
38 | 30 | 8 | 26.7 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 26 | 2 | 8.0 | osh-native | mut+alloc+free+gc+exit |
53 | 37 | 16 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 35 | 2 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 17 | 12 | 25.8 | osh-native-souffle | mut+alloc |
31 | 23 | 8 | 26.2 | osh-native-souffle | mut+alloc+free |
21 | 19 | 2 | 7.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 22 | 0 | 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 | 72 | 1 | 3.3 | bash | - |
166 | 107 | 59 | 57.0 | bumpleak/osh | mut |
182 | 130 | 52 | 57.5 | _bin/cxx-opt+bumproot/osh | mut |
199 | 129 | 70 | 57.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
214 | 136 | 78 | 48.9 | osh-native | mut+alloc |
221 | 132 | 90 | 51.0 | osh-native | mut+alloc+free |
182 | 125 | 57 | 8.9 | osh-native | mut+alloc+free+gc |
182 | 141 | 41 | 8.8 | osh-native | mut+alloc+free+gc+exit |
236 | 162 | 74 | 64.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
213 | 172 | 41 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
207 | 128 | 78 | 48.5 | osh-native-souffle | mut+alloc |
214 | 156 | 58 | 50.4 | osh-native-souffle | mut+alloc+free |
175 | 134 | 40 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
175 | 118 | 56 | 8.5 | 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 |
10 | 2 | 8 | 3.4 | dash | - |
19 | 12 | 8 | 4.5 | bash | - |
17 | 8 | 9 | 3.5 | zsh | - |
18 | 6 | 13 | 11.8 | bumpleak/osh | mut |
21 | 9 | 12 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
20 | 8 | 13 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 10 | 12 | 11.0 | osh-native | mut+alloc |
22 | 10 | 13 | 11.3 | osh-native | mut+alloc+free |
22 | 14 | 8 | 9.2 | osh-native | mut+alloc+free+gc |
23 | 12 | 11 | 9.2 | osh-native | mut+alloc+free+gc+exit |
25 | 10 | 15 | 12.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 11 | 15 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 8 | 12 | 10.5 | osh-native-souffle | mut+alloc |
21 | 10 | 11 | 10.6 | osh-native-souffle | mut+alloc+free |
21 | 8 | 14 | 8.8 | osh-native-souffle | mut+alloc+free+gc |
21 | 12 | 10 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |