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 | 4 | 9 | 12.0 | 18.1 | 476,744 | 1,282 | 6 | 406,316 | 5 | 203,158 | osh-native |
parse.configure-cpython | 33 | 3 | 10 | 12.0 | 17.6 | 476,744 | 1,282 | 6 | 406,186 | 5 | 203,093 | osh-native-souffle |
parse.configure-coreutils | 154 | 25 | 65 | 44.5 | 49.7 | 1,653,332 | 4,764 | 12 | 1,025,512 | 6 | 764,299 | osh-native |
parse.configure-coreutils | 144 | 26 | 66 | 45.9 | 51.0 | 1,653,331 | 4,764 | 12 | 1,063,842 | 6 | 792,359 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,935 | 180 | 2 | 75,016 | 1 | 37,508 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 7.9 | 101,935 | 180 | 3 | 87,078 | 1 | 43,539 | osh-native-souffle |
ex.compute-fib | 34 | 0 | 2 | 2.1 | 7.7 | 579,599 | 22,608 | 12 | 50,000 | 0 | 2,912 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.1 | 7.6 | 579,599 | 22,608 | 12 | 50,000 | 0 | 2,850 | osh-native-souffle |
ex.bashcomp-parse-help | 183 | 0 | 3 | 10.3 | 8.7 | 995,281 | 15,258 | 21 | 50,000 | 0 | 3,894 | osh-native |
ex.bashcomp-parse-help | 177 | 0 | 3 | 10.3 | 8.1 | 995,280 | 15,258 | 21 | 50,000 | 0 | 3,839 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,311 | 277 | 3 | 85,234 | 1 | 42,617 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.5 | 116,311 | 277 | 3 | 85,110 | 1 | 42,555 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
7 | 6 | 0 | 1.4 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
105 | 58 | 54 | 3.3 | zsh | - |
17 | 9 | 9 | 28.4 | bumpleak/osh | mut |
20 | 12 | 8 | 30.0 | _bin/cxx-opt+bumproot/osh | mut |
22 | 11 | 11 | 29.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 25 | 4 | 25.2 | osh-native | mut+alloc |
31 | 16 | 16 | 25.7 | osh-native | mut+alloc+free |
35 | 31 | 4 | 18.1 | osh-native | mut+alloc+free+gc |
36 | 31 | 4 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 32 | 12 | 32.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 40 | 8 | 21.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 15 | 11 | 24.9 | osh-native-souffle | mut+alloc |
29 | 20 | 8 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 16 | 16 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 25 | 7 | 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 | 18 | 4 | 1.6 | dash | - |
78 | 78 | 0 | 3.1 | bash | - |
378 | 193 | 207 | 3.5 | zsh | - |
49 | 44 | 4 | 85.5 | bumpleak/osh | mut |
60 | 60 | 0 | 85.3 | _bin/cxx-opt+bumproot/osh | mut |
69 | 57 | 12 | 85.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 54 | 43 | 73.6 | osh-native | mut+alloc |
104 | 62 | 42 | 75.4 | osh-native | mut+alloc+free |
154 | 134 | 20 | 49.7 | osh-native | mut+alloc+free+gc |
154 | 130 | 24 | 50.5 | osh-native | mut+alloc+free+gc+exit |
139 | 91 | 48 | 98.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 191 | 20 | 67.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 64 | 24 | 73.0 | osh-native-souffle | mut+alloc |
95 | 63 | 32 | 75.0 | osh-native-souffle | mut+alloc+free |
144 | 116 | 28 | 51.0 | osh-native-souffle | mut+alloc+free+gc |
147 | 127 | 20 | 51.7 | 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.3 | dash | - |
6 | 6 | 0 | 2.9 | bash | - |
8 | 0 | 7 | 3.4 | zsh | - |
6 | 6 | 0 | 12.2 | bumpleak/osh | mut |
6 | 7 | 0 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
7 | 3 | 3 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.0 | osh-native | mut+alloc |
9 | 3 | 6 | 10.2 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc |
9 | 8 | 0 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 9 | 0 | 7.9 | 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 | 7 | 3 | 1.4 | dash | - |
28 | 28 | 0 | 2.9 | bash | - |
23 | 19 | 4 | 3.4 | zsh | - |
19 | 11 | 7 | 30.4 | bumpleak/osh | mut |
26 | 22 | 4 | 33.1 | _bin/cxx-opt+bumproot/osh | mut |
27 | 27 | 0 | 32.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 26.0 | osh-native | mut+alloc |
37 | 28 | 8 | 26.2 | osh-native | mut+alloc+free |
34 | 33 | 0 | 7.7 | osh-native | mut+alloc+free+gc |
28 | 20 | 8 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 46 | 8 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 36 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 29 | 0 | 25.6 | osh-native-souffle | mut+alloc |
31 | 26 | 4 | 25.7 | osh-native-souffle | mut+alloc+free |
22 | 22 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 15 | 7 | 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 |
72 | 68 | 4 | 3.0 | bash | - |
166 | 105 | 61 | 54.2 | bumpleak/osh | mut |
182 | 117 | 64 | 54.9 | _bin/cxx-opt+bumproot/osh | mut |
195 | 111 | 84 | 55.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 156 | 56 | 47.1 | osh-native | mut+alloc |
223 | 174 | 49 | 48.8 | osh-native | mut+alloc+free |
183 | 143 | 40 | 8.7 | osh-native | mut+alloc+free+gc |
181 | 134 | 47 | 8.7 | osh-native | mut+alloc+free+gc+exit |
235 | 142 | 93 | 63.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
217 | 168 | 48 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 128 | 76 | 46.5 | osh-native-souffle | mut+alloc |
213 | 148 | 64 | 48.3 | osh-native-souffle | mut+alloc+free |
177 | 104 | 72 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
175 | 127 | 48 | 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 | 9 | 1 | 3.4 | dash | - |
20 | 16 | 4 | 4.3 | bash | - |
18 | 10 | 8 | 3.5 | zsh | - |
18 | 9 | 9 | 11.6 | bumpleak/osh | mut |
21 | 14 | 7 | 12.8 | _bin/cxx-opt+bumproot/osh | mut |
20 | 18 | 2 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 13 | 9 | 11.1 | osh-native | mut+alloc |
22 | 11 | 12 | 11.3 | osh-native | mut+alloc+free |
22 | 13 | 9 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 15 | 8 | 9.2 | osh-native | mut+alloc+free+gc+exit |
25 | 20 | 5 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 11 | 14 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 17 | 3 | 10.6 | osh-native-souffle | mut+alloc |
21 | 13 | 9 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 15 | 7 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 11 | 11 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |