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 | 10 | 12.0 | 17.8 | 476,755 | 1,282 | 6 | 406,612 | 5 | 203,306 | osh-native |
parse.configure-cpython | 37 | 6 | 12 | 12.0 | 17.4 | 476,755 | 1,282 | 6 | 406,208 | 5 | 203,104 | osh-native-souffle |
parse.configure-coreutils | 163 | 24 | 74 | 44.5 | 49.8 | 1,653,343 | 4,764 | 12 | 1,025,534 | 6 | 764,310 | osh-native |
parse.configure-coreutils | 145 | 23 | 68 | 44.5 | 49.5 | 1,653,342 | 4,764 | 12 | 1,025,404 | 6 | 764,245 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,946 | 180 | 2 | 75,038 | 1 | 37,519 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 8.0 | 101,946 | 180 | 3 | 87,100 | 1 | 43,550 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.1 | 8.0 | 579,610 | 22,608 | 12 | 50,000 | 0 | 2,923 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.1 | 7.6 | 579,610 | 22,608 | 12 | 50,000 | 0 | 2,862 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 4 | 10.3 | 8.5 | 995,292 | 15,258 | 21 | 50,000 | 0 | 3,905 | osh-native |
ex.bashcomp-parse-help | 176 | 0 | 4 | 10.3 | 8.1 | 995,291 | 15,258 | 21 | 50,000 | 0 | 3,848 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,322 | 277 | 3 | 85,256 | 1 | 42,628 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.7 | 116,322 | 277 | 3 | 85,132 | 1 | 42,566 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
7 | 4 | 4 | 1.6 | dash | - |
24 | 23 | 0 | 3.0 | bash | - |
104 | 55 | 55 | 3.4 | zsh | - |
17 | 12 | 4 | 28.3 | bumpleak/osh | mut |
20 | 19 | 0 | 30.0 | _bin/cxx-opt+bumproot/osh | mut |
23 | 23 | 0 | 28.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 21 | 9 | 25.0 | osh-native | mut+alloc |
32 | 11 | 21 | 25.6 | osh-native | mut+alloc+free |
36 | 36 | 0 | 17.8 | osh-native | mut+alloc+free+gc |
37 | 29 | 8 | 18.1 | osh-native | mut+alloc+free+gc+exit |
44 | 12 | 32 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 49 | 0 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 15 | 12 | 24.9 | osh-native-souffle | mut+alloc |
29 | 4 | 25 | 25.3 | osh-native-souffle | mut+alloc+free |
37 | 37 | 0 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
34 | 34 | 0 | 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 | 21 | 0 | 1.4 | dash | - |
78 | 74 | 4 | 3.1 | bash | - |
378 | 204 | 197 | 3.4 | zsh | - |
49 | 45 | 4 | 85.8 | bumpleak/osh | mut |
64 | 56 | 8 | 86.0 | _bin/cxx-opt+bumproot/osh | mut |
70 | 53 | 16 | 86.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 74 | 24 | 73.7 | osh-native | mut+alloc |
108 | 92 | 16 | 75.2 | osh-native | mut+alloc+free |
163 | 138 | 24 | 49.8 | osh-native | mut+alloc+free+gc |
158 | 129 | 28 | 50.3 | osh-native | mut+alloc+free+gc+exit |
141 | 96 | 44 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
234 | 190 | 44 | 66.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
89 | 61 | 28 | 73.1 | osh-native-souffle | mut+alloc |
99 | 75 | 24 | 75.0 | osh-native-souffle | mut+alloc+free |
145 | 121 | 24 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
157 | 129 | 28 | 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 | 6 | 0 | 2.9 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 0 | 6 | 12.2 | bumpleak/osh | mut |
7 | 7 | 0 | 10.8 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 0 | 9 | 10.0 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 0 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 8 | 0 | 9.6 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 5 | 5 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
10 | 9 | 0 | 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.4 | dash | - |
29 | 25 | 4 | 3.0 | bash | - |
24 | 8 | 16 | 3.3 | zsh | - |
19 | 15 | 4 | 31.2 | bumpleak/osh | mut |
27 | 26 | 0 | 32.5 | _bin/cxx-opt+bumproot/osh | mut |
31 | 27 | 4 | 32.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 29 | 8 | 26.3 | osh-native | mut+alloc |
38 | 25 | 13 | 26.5 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
55 | 43 | 12 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
39 | 35 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 19 | 11 | 26.0 | osh-native-souffle | mut+alloc |
32 | 19 | 12 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 22 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
21 | 21 | 0 | 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 |
73 | 73 | 0 | 3.1 | bash | - |
167 | 103 | 63 | 54.6 | bumpleak/osh | mut |
184 | 88 | 96 | 56.1 | _bin/cxx-opt+bumproot/osh | mut |
197 | 134 | 63 | 55.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
214 | 109 | 105 | 47.4 | osh-native | mut+alloc |
222 | 133 | 89 | 49.1 | osh-native | mut+alloc+free |
182 | 139 | 44 | 8.5 | osh-native | mut+alloc+free+gc |
183 | 135 | 48 | 8.9 | osh-native | mut+alloc+free+gc+exit |
232 | 153 | 79 | 64.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
213 | 170 | 43 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
206 | 143 | 63 | 46.9 | osh-native-souffle | mut+alloc |
213 | 170 | 43 | 48.6 | osh-native-souffle | mut+alloc+free |
176 | 122 | 53 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
177 | 132 | 44 | 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 |
10 | 9 | 1 | 3.5 | dash | - |
21 | 18 | 3 | 4.3 | bash | - |
18 | 13 | 5 | 3.5 | zsh | - |
18 | 7 | 11 | 11.2 | bumpleak/osh | mut |
20 | 12 | 8 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 17 | 6 | 13.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 17 | 5 | 11.0 | osh-native | mut+alloc |
22 | 19 | 4 | 10.9 | osh-native | mut+alloc+free |
22 | 16 | 7 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 15 | 9 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 17 | 8 | 12.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 26 | 0 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
21 | 12 | 9 | 10.6 | osh-native-souffle | mut+alloc |
22 | 14 | 8 | 10.9 | osh-native-souffle | mut+alloc+free |
22 | 13 | 9 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 15 | 7 | 8.8 | osh-native-souffle | mut+alloc+free+gc+exit |