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 | 39 | 6 | 12 | 12.0 | 18.0 | 476,755 | 1,282 | 6 | 406,612 | 5 | 203,306 | osh-native |
parse.configure-cpython | 36 | 5 | 12 | 12.0 | 17.6 | 476,755 | 1,282 | 6 | 406,208 | 5 | 203,104 | osh-native-souffle |
parse.configure-coreutils | 168 | 27 | 80 | 44.5 | 49.7 | 1,653,343 | 4,764 | 12 | 1,025,534 | 6 | 764,310 | osh-native |
parse.configure-coreutils | 167 | 29 | 88 | 44.5 | 49.2 | 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 | 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 | 2 | 2.1 | 7.6 | 579,610 | 22,608 | 12 | 50,000 | 0 | 2,862 | osh-native-souffle |
ex.bashcomp-parse-help | 183 | 0 | 4 | 10.3 | 8.7 | 995,292 | 15,258 | 21 | 50,000 | 0 | 3,905 | osh-native |
ex.bashcomp-parse-help | 179 | 0 | 5 | 10.3 | 8.1 | 995,291 | 15,258 | 21 | 50,000 | 0 | 3,848 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.0 | 116,322 | 277 | 3 | 85,256 | 1 | 42,628 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.3 | 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 |
6 | 6 | 0 | 1.6 | dash | - |
24 | 19 | 4 | 3.1 | bash | - |
106 | 65 | 47 | 3.4 | zsh | - |
17 | 10 | 7 | 28.3 | bumpleak/osh | mut |
21 | 7 | 14 | 29.0 | _bin/cxx-opt+bumproot/osh | mut |
23 | 23 | 0 | 30.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
31 | 22 | 9 | 25.2 | osh-native | mut+alloc |
32 | 32 | 0 | 25.8 | osh-native | mut+alloc+free |
39 | 31 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
41 | 26 | 15 | 18.1 | osh-native | mut+alloc+free+gc+exit |
44 | 16 | 28 | 33.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
56 | 48 | 8 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 15 | 11 | 24.8 | osh-native-souffle | mut+alloc |
30 | 17 | 13 | 25.3 | osh-native-souffle | mut+alloc+free |
36 | 32 | 4 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
37 | 22 | 15 | 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 |
22 | 18 | 4 | 1.6 | dash | - |
77 | 77 | 0 | 3.3 | bash | - |
386 | 243 | 165 | 3.5 | zsh | - |
49 | 34 | 15 | 85.9 | bumpleak/osh | mut |
60 | 52 | 8 | 85.7 | _bin/cxx-opt+bumproot/osh | mut |
72 | 59 | 12 | 85.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 39 | 59 | 73.5 | osh-native | mut+alloc |
107 | 79 | 28 | 75.4 | osh-native | mut+alloc+free |
168 | 132 | 36 | 49.7 | osh-native | mut+alloc+free+gc |
183 | 163 | 20 | 50.2 | osh-native | mut+alloc+free+gc+exit |
140 | 96 | 44 | 97.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
251 | 231 | 20 | 68.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
90 | 43 | 47 | 73.2 | osh-native-souffle | mut+alloc |
97 | 81 | 16 | 74.9 | osh-native-souffle | mut+alloc+free |
167 | 147 | 20 | 49.2 | osh-native-souffle | mut+alloc+free+gc |
170 | 153 | 16 | 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 | 2 | 0 | 1.3 | dash | - |
6 | 3 | 3 | 3.0 | bash | - |
8 | 8 | 0 | 3.1 | zsh | - |
6 | 6 | 0 | 11.8 | bumpleak/osh | mut |
7 | 7 | 0 | 11.2 | _bin/cxx-opt+bumproot/osh | mut |
8 | 7 | 0 | 11.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 3 | 6 | 10.1 | osh-native | mut+alloc |
9 | 5 | 5 | 10.1 | osh-native | mut+alloc+free |
10 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
13 | 9 | 4 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.4 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 9 | 0 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
9 | 3 | 6 | 7.9 | 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 | - |
29 | 29 | 0 | 3.0 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
18 | 14 | 5 | 32.2 | bumpleak/osh | mut |
27 | 19 | 7 | 33.1 | _bin/cxx-opt+bumproot/osh | mut |
28 | 23 | 4 | 31.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 28 | 8 | 26.2 | osh-native | mut+alloc |
39 | 27 | 11 | 26.6 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
39 | 39 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
56 | 40 | 16 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 38 | 0 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 19 | 11 | 26.0 | osh-native-souffle | mut+alloc |
32 | 20 | 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 |
73 | 68 | 4 | 3.3 | bash | - |
168 | 112 | 56 | 55.0 | bumpleak/osh | mut |
183 | 147 | 36 | 54.8 | _bin/cxx-opt+bumproot/osh | mut |
197 | 112 | 84 | 55.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
215 | 135 | 80 | 47.3 | osh-native | mut+alloc |
220 | 148 | 72 | 49.1 | osh-native | mut+alloc+free |
183 | 143 | 40 | 8.7 | osh-native | mut+alloc+free+gc |
182 | 115 | 67 | 8.8 | osh-native | mut+alloc+free+gc+exit |
235 | 159 | 76 | 63.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
216 | 160 | 56 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
207 | 134 | 73 | 47.0 | osh-native-souffle | mut+alloc |
214 | 174 | 40 | 48.4 | osh-native-souffle | mut+alloc+free |
179 | 107 | 72 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
177 | 126 | 51 | 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 |
10 | 8 | 2 | 3.5 | dash | - |
20 | 18 | 3 | 4.3 | bash | - |
18 | 17 | 2 | 3.5 | zsh | - |
18 | 6 | 13 | 13.0 | bumpleak/osh | mut |
20 | 12 | 8 | 13.7 | _bin/cxx-opt+bumproot/osh | mut |
21 | 13 | 9 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
23 | 19 | 4 | 11.0 | osh-native | mut+alloc |
23 | 10 | 14 | 11.1 | osh-native | mut+alloc+free |
23 | 21 | 3 | 9.0 | osh-native | mut+alloc+free+gc |
24 | 16 | 9 | 9.0 | osh-native | mut+alloc+free+gc+exit |
26 | 20 | 6 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
27 | 24 | 3 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
21 | 14 | 8 | 10.6 | osh-native-souffle | mut+alloc |
23 | 6 | 17 | 10.6 | osh-native-souffle | mut+alloc+free |
23 | 21 | 3 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
24 | 20 | 5 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |