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 | 3 | 9 | 12.1 | 18.0 | 476,735 | 1,282 | 6 | 409,276 | 5 | 204,638 | osh-native |
parse.configure-cpython | 34 | 4 | 10 | 12.0 | 17.6 | 476,735 | 1,282 | 6 | 408,776 | 5 | 204,388 | osh-native-souffle |
parse.configure-coreutils | 151 | 20 | 67 | 41.1 | 45.9 | 1,653,323 | 4,764 | 12 | 1,591,958 | 7 | 795,979 | osh-native |
parse.configure-coreutils | 138 | 23 | 63 | 44.6 | 49.7 | 1,653,322 | 4,764 | 12 | 1,030,660 | 6 | 769,414 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,926 | 180 | 2 | 75,248 | 1 | 37,624 | osh-native |
parse.abuild | 11 | 1 | 2 | 2.6 | 8.1 | 101,926 | 180 | 2 | 75,118 | 1 | 37,559 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.4 | 8.0 | 584,191 | 22,608 | 12 | 50,000 | 0 | 2,901 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.4 | 7.6 | 584,191 | 22,608 | 12 | 50,000 | 0 | 2,839 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 3 | 10.3 | 8.8 | 995,272 | 12,911 | 21 | 50,000 | 0 | 3,889 | osh-native |
ex.bashcomp-parse-help | 176 | 0 | 4 | 10.3 | 8.4 | 995,271 | 12,911 | 21 | 50,000 | 0 | 3,829 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,341 | 270 | 3 | 85,484 | 1 | 42,742 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.5 | 116,341 | 270 | 3 | 85,360 | 1 | 42,680 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.4 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
105 | 65 | 46 | 3.3 | zsh | - |
16 | 12 | 4 | 28.1 | bumpleak/osh | mut |
19 | 19 | 0 | 29.8 | _bin/cxx-opt+bumproot/osh | mut |
22 | 22 | 0 | 29.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 17 | 12 | 25.2 | osh-native | mut+alloc |
31 | 23 | 8 | 25.7 | osh-native | mut+alloc+free |
35 | 26 | 9 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 35 | 0 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 27 | 16 | 32.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 39 | 8 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 19 | 8 | 24.8 | osh-native-souffle | mut+alloc |
28 | 20 | 8 | 25.3 | osh-native-souffle | mut+alloc+free |
34 | 29 | 4 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
34 | 29 | 4 | 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 | 18 | 4 | 1.6 | dash | - |
78 | 78 | 0 | 3.1 | bash | - |
373 | 228 | 163 | 3.4 | zsh | - |
49 | 45 | 4 | 84.6 | bumpleak/osh | mut |
67 | 59 | 8 | 85.7 | _bin/cxx-opt+bumproot/osh | mut |
71 | 63 | 8 | 85.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
95 | 51 | 44 | 73.4 | osh-native | mut+alloc |
105 | 70 | 35 | 75.3 | osh-native | mut+alloc+free |
151 | 114 | 37 | 45.9 | osh-native | mut+alloc+free+gc |
157 | 137 | 20 | 46.1 | osh-native | mut+alloc+free+gc+exit |
137 | 117 | 20 | 98.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
214 | 169 | 44 | 61.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
86 | 47 | 39 | 73.2 | osh-native-souffle | mut+alloc |
94 | 43 | 51 | 74.9 | osh-native-souffle | mut+alloc+free |
138 | 122 | 16 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
144 | 120 | 24 | 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 | 6 | 0 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 6 | 0 | 12.0 | bumpleak/osh | mut |
6 | 3 | 3 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
7 | 3 | 3 | 11.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.1 | osh-native | mut+alloc |
8 | 8 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 4 | 4 | 8.7 | osh-native | mut+alloc+free+gc+exit |
11 | 8 | 4 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 0 | 11 | 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.6 | osh-native-souffle | mut+alloc+free |
11 | 11 | 0 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
8 | 4 | 4 | 8.1 | 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.6 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
24 | 12 | 12 | 3.3 | zsh | - |
19 | 19 | 0 | 32.2 | bumpleak/osh | mut |
25 | 18 | 7 | 32.3 | _bin/cxx-opt+bumproot/osh | mut |
28 | 28 | 0 | 33.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 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 | 23 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 37 | 16 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
36 | 32 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 13 | 17 | 26.0 | osh-native-souffle | mut+alloc |
31 | 27 | 4 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 17 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
21 | 21 | 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 |
74 | 70 | 4 | 3.3 | bash | - |
168 | 112 | 56 | 55.1 | bumpleak/osh | mut |
180 | 116 | 64 | 55.6 | _bin/cxx-opt+bumproot/osh | mut |
194 | 149 | 44 | 55.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 119 | 91 | 47.0 | osh-native | mut+alloc |
219 | 163 | 56 | 48.7 | osh-native | mut+alloc+free |
182 | 129 | 53 | 8.8 | osh-native | mut+alloc+free+gc |
181 | 125 | 56 | 8.8 | osh-native | mut+alloc+free+gc+exit |
233 | 140 | 92 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 150 | 59 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 144 | 60 | 46.6 | osh-native-souffle | mut+alloc |
211 | 131 | 80 | 48.3 | osh-native-souffle | mut+alloc+free |
176 | 112 | 64 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
176 | 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 | 8 | 2 | 3.5 | dash | - |
20 | 16 | 4 | 4.3 | bash | - |
18 | 10 | 8 | 3.5 | zsh | - |
19 | 10 | 10 | 12.2 | bumpleak/osh | mut |
21 | 12 | 10 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
21 | 14 | 7 | 13.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 16 | 6 | 11.0 | osh-native | mut+alloc |
22 | 13 | 10 | 11.1 | osh-native | mut+alloc+free |
22 | 16 | 6 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 18 | 5 | 9.2 | osh-native | mut+alloc+free+gc+exit |
24 | 15 | 10 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 20 | 6 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 15 | 6 | 10.7 | osh-native-souffle | mut+alloc |
21 | 15 | 7 | 10.6 | osh-native-souffle | mut+alloc+free |
21 | 9 | 12 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
21 | 15 | 7 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |