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 | 4 | 10 | 12.1 | 18.0 | 476,735 | 1,282 | 6 | 409,276 | 5 | 204,638 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.7 | 476,735 | 1,282 | 6 | 408,776 | 5 | 204,388 | osh-native-souffle |
parse.configure-coreutils | 157 | 22 | 71 | 41.1 | 45.8 | 1,653,323 | 4,764 | 12 | 1,591,958 | 7 | 795,979 | osh-native |
parse.configure-coreutils | 140 | 24 | 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 | 8 | 1 | 1 | 2.6 | 8.1 | 101,926 | 180 | 2 | 75,118 | 1 | 37,559 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 1 | 2.4 | 7.9 | 584,191 | 22,608 | 12 | 50,000 | 0 | 2,901 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.4 | 7.7 | 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 | 175 | 0 | 3 | 10.3 | 8.3 | 995,271 | 12,911 | 21 | 50,000 | 0 | 3,829 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 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.6 | dash | - |
23 | 23 | 0 | 3.1 | bash | - |
104 | 58 | 52 | 3.4 | zsh | - |
17 | 10 | 7 | 28.2 | bumpleak/osh | mut |
19 | 15 | 4 | 29.6 | _bin/cxx-opt+bumproot/osh | mut |
23 | 18 | 4 | 28.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 21 | 8 | 25.0 | osh-native | mut+alloc |
31 | 19 | 12 | 25.6 | osh-native | mut+alloc+free |
36 | 28 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 33 | 4 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 27 | 16 | 32.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 32 | 16 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 11 | 15 | 24.5 | osh-native-souffle | mut+alloc |
28 | 16 | 12 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 32 | 0 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
33 | 22 | 11 | 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 | 21 | 0 | 1.6 | dash | - |
78 | 70 | 8 | 3.3 | bash | - |
374 | 192 | 203 | 3.5 | zsh | - |
50 | 41 | 8 | 85.1 | bumpleak/osh | mut |
60 | 44 | 16 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
69 | 69 | 0 | 87.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
100 | 72 | 28 | 73.4 | osh-native | mut+alloc |
106 | 69 | 36 | 75.4 | osh-native | mut+alloc+free |
157 | 141 | 16 | 45.8 | osh-native | mut+alloc+free+gc |
169 | 136 | 32 | 46.0 | osh-native | mut+alloc+free+gc+exit |
138 | 87 | 51 | 97.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
224 | 204 | 20 | 62.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 47 | 40 | 73.2 | osh-native-souffle | mut+alloc |
96 | 56 | 40 | 75.0 | osh-native-souffle | mut+alloc+free |
140 | 120 | 20 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
143 | 126 | 16 | 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 | 0 | 7 | 3.4 | zsh | - |
6 | 6 | 0 | 10.5 | bumpleak/osh | mut |
7 | 3 | 3 | 11.1 | _bin/cxx-opt+bumproot/osh | mut |
7 | 3 | 3 | 11.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.1 | osh-native | mut+alloc |
9 | 0 | 9 | 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 | 12 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 11 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.6 | osh-native-souffle | mut+alloc |
8 | 0 | 8 | 9.7 | osh-native-souffle | mut+alloc+free |
8 | 8 | 0 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
9 | 9 | 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 | - |
29 | 29 | 0 | 2.8 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
19 | 11 | 7 | 32.1 | bumpleak/osh | mut |
26 | 18 | 7 | 32.6 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 33.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 26.3 | osh-native | mut+alloc |
38 | 26 | 11 | 26.7 | osh-native | mut+alloc+free |
29 | 29 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
53 | 23 | 30 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 29 | 7 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 18 | 11 | 25.7 | osh-native-souffle | mut+alloc |
32 | 20 | 12 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 15 | 7 | 7.7 | 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 |
72 | 68 | 4 | 3.1 | bash | - |
168 | 88 | 80 | 53.6 | bumpleak/osh | mut |
178 | 111 | 67 | 55.7 | _bin/cxx-opt+bumproot/osh | mut |
195 | 155 | 40 | 56.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 172 | 40 | 47.0 | osh-native | mut+alloc |
219 | 166 | 53 | 48.7 | osh-native | mut+alloc+free |
182 | 137 | 44 | 8.8 | osh-native | mut+alloc+free+gc |
183 | 146 | 36 | 8.8 | osh-native | mut+alloc+free+gc+exit |
232 | 152 | 80 | 64.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 144 | 64 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
205 | 144 | 60 | 46.7 | osh-native-souffle | mut+alloc |
211 | 131 | 79 | 48.5 | osh-native-souffle | mut+alloc+free |
175 | 111 | 63 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
175 | 135 | 40 | 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 | 17 | 3 | 4.3 | bash | - |
18 | 13 | 5 | 3.5 | zsh | - |
18 | 10 | 8 | 13.3 | bumpleak/osh | mut |
21 | 6 | 16 | 13.7 | _bin/cxx-opt+bumproot/osh | mut |
20 | 10 | 11 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 15 | 7 | 11.0 | osh-native | mut+alloc |
22 | 16 | 7 | 11.0 | osh-native | mut+alloc+free |
22 | 20 | 3 | 8.9 | osh-native | mut+alloc+free+gc |
22 | 20 | 3 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 15 | 10 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 23 | 2 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 10 | 10 | 10.5 | osh-native-souffle | mut+alloc |
21 | 20 | 2 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 19 | 2 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 15 | 7 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |