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,280 | 5 | 204,640 | osh-native |
parse.configure-cpython | 34 | 4 | 11 | 12.0 | 17.6 | 476,735 | 1,282 | 6 | 408,780 | 5 | 204,390 | osh-native-souffle |
parse.configure-coreutils | 161 | 22 | 76 | 41.1 | 45.8 | 1,653,323 | 4,764 | 12 | 1,591,962 | 7 | 795,981 | osh-native |
parse.configure-coreutils | 143 | 26 | 66 | 44.6 | 49.7 | 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 | 8 | 1 | 1 | 2.6 | 8.1 | 101,926 | 180 | 2 | 75,122 | 1 | 37,561 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.4 | 7.9 | 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 | 182 | 0 | 4 | 10.3 | 8.9 | 995,272 | 12,911 | 21 | 50,000 | 0 | 3,891 | osh-native |
ex.bashcomp-parse-help | 174 | 0 | 4 | 10.3 | 8.1 | 995,271 | 12,911 | 21 | 50,000 | 0 | 3,831 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.2 | 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 |
6 | 3 | 3 | 1.6 | dash | - |
23 | 19 | 4 | 3.1 | bash | - |
105 | 55 | 56 | 3.4 | zsh | - |
16 | 12 | 4 | 28.6 | bumpleak/osh | mut |
20 | 16 | 4 | 30.4 | _bin/cxx-opt+bumproot/osh | mut |
22 | 22 | 0 | 29.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 4 | 26 | 25.2 | osh-native | mut+alloc |
31 | 16 | 16 | 25.6 | osh-native | mut+alloc+free |
36 | 32 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 33 | 4 | 18.1 | osh-native | mut+alloc+free+gc+exit |
44 | 27 | 16 | 33.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 36 | 12 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 23 | 4 | 24.8 | osh-native-souffle | mut+alloc |
29 | 4 | 25 | 25.3 | osh-native-souffle | mut+alloc+free |
34 | 34 | 0 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
35 | 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 | 22 | 0 | 1.4 | dash | - |
78 | 74 | 4 | 3.3 | bash | - |
382 | 246 | 158 | 3.4 | zsh | - |
48 | 48 | 0 | 84.5 | bumpleak/osh | mut |
60 | 60 | 0 | 86.4 | _bin/cxx-opt+bumproot/osh | mut |
73 | 57 | 16 | 85.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 72 | 24 | 73.5 | osh-native | mut+alloc |
105 | 77 | 28 | 75.3 | osh-native | mut+alloc+free |
161 | 133 | 27 | 45.8 | osh-native | mut+alloc+free+gc |
171 | 151 | 20 | 46.2 | osh-native | mut+alloc+free+gc+exit |
141 | 104 | 36 | 98.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
234 | 197 | 36 | 62.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 60 | 28 | 73.0 | osh-native-souffle | mut+alloc |
96 | 68 | 28 | 75.0 | osh-native-souffle | mut+alloc+free |
143 | 127 | 16 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
146 | 102 | 43 | 50.2 | 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 | - |
7 | 0 | 7 | 11.6 | bumpleak/osh | mut |
7 | 7 | 0 | 11.9 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 11.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 0 | 9 | 10.2 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 0 | 9 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 3 | 6 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 8 | 0 | 9.8 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.6 | osh-native-souffle | mut+alloc+free |
8 | 4 | 4 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
9 | 5 | 5 | 8.3 | 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 |
11 | 11 | 0 | 1.4 | dash | - |
28 | 28 | 0 | 3.0 | bash | - |
23 | 8 | 16 | 3.3 | zsh | - |
19 | 11 | 7 | 32.3 | bumpleak/osh | mut |
26 | 22 | 4 | 31.8 | _bin/cxx-opt+bumproot/osh | mut |
29 | 18 | 11 | 31.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
38 | 38 | 0 | 26.3 | osh-native | mut+alloc |
38 | 26 | 11 | 26.7 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.7 | osh-native | mut+alloc+free+gc+exit |
56 | 36 | 20 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 22 | 7 | 25.8 | osh-native-souffle | mut+alloc |
31 | 12 | 19 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 22 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 15 | 7 | 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 |
72 | 68 | 4 | 3.1 | bash | - |
167 | 107 | 60 | 54.4 | bumpleak/osh | mut |
179 | 140 | 40 | 55.5 | _bin/cxx-opt+bumproot/osh | mut |
196 | 128 | 68 | 55.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
228 | 152 | 76 | 46.9 | osh-native | mut+alloc |
217 | 150 | 67 | 48.7 | osh-native | mut+alloc+free |
182 | 119 | 63 | 8.9 | osh-native | mut+alloc+free+gc |
182 | 129 | 52 | 8.8 | osh-native | mut+alloc+free+gc+exit |
235 | 151 | 84 | 62.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
216 | 168 | 48 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
203 | 111 | 91 | 46.7 | osh-native-souffle | mut+alloc |
212 | 152 | 60 | 48.4 | osh-native-souffle | mut+alloc+free |
174 | 137 | 36 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
176 | 112 | 64 | 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 | 9 | 2 | 3.4 | dash | - |
20 | 13 | 7 | 4.5 | bash | - |
18 | 17 | 1 | 3.5 | zsh | - |
18 | 15 | 3 | 11.6 | bumpleak/osh | mut |
21 | 9 | 13 | 12.9 | _bin/cxx-opt+bumproot/osh | mut |
20 | 7 | 13 | 12.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 12 | 10 | 10.9 | osh-native | mut+alloc |
22 | 14 | 9 | 11.0 | osh-native | mut+alloc+free |
23 | 20 | 3 | 9.2 | osh-native | mut+alloc+free+gc |
23 | 11 | 12 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 11 | 14 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 15 | 11 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 16 | 4 | 10.6 | osh-native-souffle | mut+alloc |
23 | 6 | 17 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 11 | 10 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 19 | 3 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |