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 | 37 | 4 | 10 | 12.0 | 18.1 | 476,755 | 1,282 | 6 | 406,612 | 5 | 203,306 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.7 | 476,755 | 1,282 | 6 | 406,208 | 5 | 203,104 | osh-native-souffle |
parse.configure-coreutils | 173 | 29 | 84 | 44.5 | 49.7 | 1,653,343 | 4,764 | 12 | 1,025,534 | 6 | 764,310 | osh-native |
parse.configure-coreutils | 146 | 26 | 68 | 44.5 | 49.4 | 1,653,342 | 4,764 | 12 | 1,025,404 | 6 | 764,245 | osh-native-souffle |
parse.abuild | 10 | 1 | 2 | 2.6 | 8.5 | 101,946 | 180 | 2 | 75,038 | 1 | 37,519 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 7.9 | 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 | 2 | 2.1 | 7.6 | 579,610 | 22,608 | 12 | 50,000 | 0 | 2,862 | osh-native-souffle |
ex.bashcomp-parse-help | 184 | 0 | 4 | 10.3 | 8.8 | 995,292 | 15,258 | 21 | 50,000 | 0 | 3,905 | osh-native |
ex.bashcomp-parse-help | 179 | 0 | 4 | 10.3 | 8.3 | 995,291 | 15,258 | 21 | 50,000 | 0 | 3,848 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.9 | 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 | 7 | 0 | 1.6 | dash | - |
24 | 24 | 0 | 2.9 | bash | - |
114 | 64 | 57 | 3.5 | zsh | - |
17 | 8 | 8 | 28.3 | bumpleak/osh | mut |
20 | 15 | 4 | 30.3 | _bin/cxx-opt+bumproot/osh | mut |
23 | 22 | 0 | 29.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
32 | 24 | 8 | 25.0 | osh-native | mut+alloc |
32 | 28 | 4 | 25.8 | osh-native | mut+alloc+free |
37 | 37 | 0 | 18.1 | osh-native | mut+alloc+free+gc |
37 | 33 | 4 | 18.2 | osh-native | mut+alloc+free+gc+exit |
44 | 28 | 16 | 32.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 36 | 12 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 14 | 14 | 24.8 | osh-native-souffle | mut+alloc |
28 | 16 | 12 | 25.4 | osh-native-souffle | mut+alloc+free |
32 | 24 | 8 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
34 | 30 | 4 | 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 |
22 | 18 | 4 | 1.4 | dash | - |
81 | 81 | 0 | 3.1 | bash | - |
407 | 273 | 154 | 3.5 | zsh | - |
48 | 36 | 12 | 85.2 | bumpleak/osh | mut |
60 | 55 | 4 | 85.1 | _bin/cxx-opt+bumproot/osh | mut |
71 | 63 | 8 | 85.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 63 | 36 | 73.4 | osh-native | mut+alloc |
107 | 83 | 24 | 75.4 | osh-native | mut+alloc+free |
173 | 157 | 16 | 49.7 | osh-native | mut+alloc+free+gc |
185 | 164 | 20 | 50.2 | osh-native | mut+alloc+free+gc+exit |
140 | 100 | 40 | 97.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
206 | 182 | 24 | 66.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 60 | 28 | 73.0 | osh-native-souffle | mut+alloc |
98 | 51 | 47 | 75.0 | osh-native-souffle | mut+alloc+free |
146 | 129 | 16 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
146 | 138 | 8 | 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 | 0 | 2 | 1.4 | dash | - |
6 | 3 | 3 | 2.9 | bash | - |
8 | 4 | 4 | 3.4 | zsh | - |
6 | 0 | 6 | 11.6 | bumpleak/osh | mut |
7 | 3 | 3 | 10.7 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 9 | 0 | 10.0 | osh-native | mut+alloc |
9 | 5 | 5 | 10.1 | osh-native | mut+alloc+free |
10 | 10 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
10 | 7 | 3 | 8.5 | osh-native | mut+alloc+free+gc+exit |
13 | 13 | 0 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 4 | 8 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 8 | 0 | 9.7 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 5 | 5 | 7.9 | osh-native-souffle | mut+alloc+free+gc |
9 | 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 | 24 | 4 | 2.9 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
19 | 19 | 0 | 31.6 | bumpleak/osh | mut |
27 | 22 | 4 | 32.9 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 31.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 20 | 16 | 26.2 | osh-native | mut+alloc |
37 | 37 | 0 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
55 | 39 | 16 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 34 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 19 | 12 | 26.0 | osh-native-souffle | mut+alloc |
31 | 19 | 12 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 22 | 0 | 7.6 | 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 |
76 | 72 | 4 | 3.1 | bash | - |
174 | 115 | 59 | 54.9 | bumpleak/osh | mut |
187 | 135 | 52 | 56.3 | _bin/cxx-opt+bumproot/osh | mut |
199 | 130 | 69 | 55.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
214 | 150 | 65 | 47.4 | osh-native | mut+alloc |
223 | 159 | 64 | 49.0 | osh-native | mut+alloc+free |
184 | 116 | 68 | 8.8 | osh-native | mut+alloc+free+gc |
189 | 116 | 72 | 8.8 | osh-native | mut+alloc+free+gc+exit |
240 | 156 | 84 | 64.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
213 | 142 | 71 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
209 | 126 | 83 | 47.0 | osh-native-souffle | mut+alloc |
214 | 137 | 77 | 48.6 | osh-native-souffle | mut+alloc+free |
179 | 139 | 40 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
179 | 119 | 60 | 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 | 8 | 2 | 3.5 | dash | - |
22 | 14 | 8 | 4.5 | bash | - |
18 | 11 | 8 | 3.5 | zsh | - |
19 | 13 | 7 | 11.6 | bumpleak/osh | mut |
21 | 12 | 10 | 11.8 | _bin/cxx-opt+bumproot/osh | mut |
21 | 15 | 6 | 12.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 11 | 11 | 11.0 | osh-native | mut+alloc |
23 | 16 | 8 | 11.1 | osh-native | mut+alloc+free |
23 | 17 | 6 | 8.9 | osh-native | mut+alloc+free+gc |
25 | 22 | 4 | 9.2 | osh-native | mut+alloc+free+gc+exit |
26 | 12 | 14 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 22 | 5 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
21 | 12 | 9 | 10.6 | osh-native-souffle | mut+alloc |
23 | 15 | 8 | 10.7 | osh-native-souffle | mut+alloc+free |
22 | 19 | 4 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
23 | 12 | 11 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |