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 | 38 | 4 | 11 | 12.1 | 18.0 | 476,735 | 1,282 | 6 | 409,280 | 5 | 204,640 | osh-native |
parse.configure-cpython | 36 | 5 | 12 | 12.0 | 17.7 | 476,735 | 1,282 | 6 | 408,780 | 5 | 204,390 | osh-native-souffle |
parse.configure-coreutils | 173 | 25 | 87 | 41.1 | 45.8 | 1,653,323 | 4,764 | 12 | 1,591,962 | 7 | 795,981 | osh-native |
parse.configure-coreutils | 159 | 28 | 80 | 44.6 | 49.5 | 1,653,322 | 4,764 | 12 | 1,030,664 | 6 | 769,416 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,926 | 180 | 2 | 75,252 | 1 | 37,626 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.3 | 101,926 | 180 | 2 | 75,122 | 1 | 37,561 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 2 | 2.4 | 8.0 | 584,191 | 22,608 | 12 | 50,000 | 0 | 2,903 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.4 | 7.6 | 584,191 | 22,608 | 12 | 50,000 | 0 | 2,841 | osh-native-souffle |
ex.bashcomp-parse-help | 183 | 0 | 4 | 10.3 | 8.8 | 995,272 | 12,911 | 21 | 50,000 | 0 | 3,891 | osh-native |
ex.bashcomp-parse-help | 177 | 0 | 4 | 10.3 | 8.4 | 995,271 | 12,911 | 21 | 50,000 | 0 | 3,831 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 116,341 | 270 | 3 | 85,488 | 1 | 42,744 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 116,341 | 270 | 3 | 85,364 | 1 | 42,682 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
7 | 6 | 0 | 1.6 | dash | - |
23 | 23 | 0 | 2.9 | bash | - |
105 | 47 | 65 | 3.4 | zsh | - |
16 | 12 | 4 | 29.2 | bumpleak/osh | mut |
20 | 16 | 4 | 29.3 | _bin/cxx-opt+bumproot/osh | mut |
23 | 15 | 7 | 29.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
31 | 23 | 8 | 25.2 | osh-native | mut+alloc |
32 | 16 | 16 | 25.6 | osh-native | mut+alloc+free |
38 | 26 | 11 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 26 | 11 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 32 | 12 | 33.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
52 | 36 | 16 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 19 | 8 | 24.8 | osh-native-souffle | mut+alloc |
30 | 17 | 13 | 25.3 | osh-native-souffle | mut+alloc+free |
36 | 20 | 16 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
35 | 23 | 11 | 17.8 | 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.6 | dash | - |
77 | 74 | 4 | 3.3 | bash | - |
382 | 186 | 216 | 3.5 | zsh | - |
49 | 41 | 8 | 84.7 | bumpleak/osh | mut |
59 | 43 | 16 | 85.6 | _bin/cxx-opt+bumproot/osh | mut |
69 | 61 | 8 | 86.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 61 | 36 | 73.6 | osh-native | mut+alloc |
105 | 57 | 49 | 75.3 | osh-native | mut+alloc+free |
173 | 156 | 16 | 45.8 | osh-native | mut+alloc+free+gc |
184 | 168 | 16 | 46.0 | osh-native | mut+alloc+free+gc+exit |
139 | 69 | 69 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
260 | 239 | 20 | 61.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 60 | 28 | 73.0 | osh-native-souffle | mut+alloc |
97 | 68 | 28 | 75.0 | osh-native-souffle | mut+alloc+free |
159 | 135 | 24 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
158 | 138 | 20 | 50.3 | 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 | 3 | 3 | 3.0 | bash | - |
8 | 4 | 4 | 3.1 | zsh | - |
6 | 6 | 0 | 11.3 | bumpleak/osh | mut |
6 | 3 | 3 | 12.2 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 10.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 0 | 8 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 4 | 4 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
8 | 8 | 0 | 8.4 | 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 | - |
28 | 28 | 0 | 3.0 | bash | - |
24 | 12 | 12 | 3.3 | zsh | - |
19 | 11 | 7 | 32.3 | bumpleak/osh | mut |
26 | 17 | 9 | 31.7 | _bin/cxx-opt+bumproot/osh | mut |
29 | 14 | 14 | 33.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 25 | 12 | 26.2 | osh-native | mut+alloc |
38 | 38 | 0 | 26.6 | osh-native | mut+alloc+free |
29 | 18 | 11 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 25 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
55 | 27 | 27 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 29 | 8 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 23 | 8 | 26.0 | osh-native-souffle | mut+alloc |
32 | 21 | 11 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.6 | 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 | 61 | 12 | 3.1 | bash | - |
168 | 108 | 60 | 55.6 | bumpleak/osh | mut |
184 | 126 | 57 | 56.3 | _bin/cxx-opt+bumproot/osh | mut |
195 | 131 | 64 | 56.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
214 | 146 | 67 | 47.2 | osh-native | mut+alloc |
221 | 120 | 100 | 48.7 | osh-native | mut+alloc+free |
183 | 126 | 57 | 8.8 | osh-native | mut+alloc+free+gc |
184 | 116 | 68 | 8.7 | osh-native | mut+alloc+free+gc+exit |
232 | 160 | 72 | 63.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 161 | 48 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
207 | 119 | 87 | 46.6 | osh-native-souffle | mut+alloc |
213 | 124 | 88 | 48.3 | osh-native-souffle | mut+alloc+free |
177 | 122 | 55 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
177 | 84 | 92 | 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 | 8 | 2 | 3.4 | dash | - |
20 | 18 | 2 | 4.3 | bash | - |
18 | 10 | 8 | 3.4 | zsh | - |
20 | 16 | 4 | 12.4 | bumpleak/osh | mut |
20 | 11 | 9 | 12.2 | _bin/cxx-opt+bumproot/osh | mut |
22 | 14 | 9 | 13.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 21 | 0 | 11.0 | osh-native | mut+alloc |
23 | 16 | 7 | 11.1 | osh-native | mut+alloc+free |
22 | 12 | 11 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 17 | 7 | 9.2 | osh-native | mut+alloc+free+gc+exit |
25 | 22 | 4 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 17 | 9 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
21 | 15 | 6 | 10.6 | osh-native-souffle | mut+alloc |
21 | 14 | 8 | 10.4 | osh-native-souffle | mut+alloc+free |
21 | 20 | 2 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 11 | 12 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |