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 | 17.8 | 476,735 | 1,282 | 6 | 409,280 | 5 | 204,640 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.7 | 476,735 | 1,282 | 6 | 408,780 | 5 | 204,390 | osh-native-souffle |
parse.configure-coreutils | 159 | 23 | 74 | 41.1 | 45.8 | 1,653,323 | 4,764 | 12 | 1,591,962 | 7 | 795,981 | osh-native |
parse.configure-coreutils | 145 | 24 | 67 | 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.0 | 101,926 | 180 | 2 | 75,122 | 1 | 37,561 | osh-native-souffle |
ex.compute-fib | 28 | 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 | 182 | 0 | 4 | 10.3 | 8.8 | 995,272 | 12,911 | 21 | 50,000 | 0 | 3,891 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 3 | 10.3 | 8.3 | 995,271 | 12,911 | 21 | 50,000 | 0 | 3,831 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 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 | 3 | 3 | 1.6 | dash | - |
23 | 23 | 0 | 3.1 | bash | - |
126 | 70 | 63 | 3.4 | zsh | - |
17 | 16 | 0 | 29.4 | bumpleak/osh | mut |
20 | 15 | 4 | 29.6 | _bin/cxx-opt+bumproot/osh | mut |
23 | 19 | 4 | 30.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 15 | 15 | 25.3 | osh-native | mut+alloc |
31 | 23 | 8 | 25.6 | osh-native | mut+alloc+free |
36 | 24 | 12 | 17.8 | osh-native | mut+alloc+free+gc |
36 | 28 | 8 | 18.1 | osh-native | mut+alloc+free+gc+exit |
44 | 36 | 8 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 39 | 8 | 22.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 15 | 11 | 24.8 | osh-native-souffle | mut+alloc |
30 | 26 | 4 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 24 | 8 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
33 | 22 | 11 | 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 |
21 | 21 | 0 | 1.6 | dash | - |
78 | 74 | 4 | 3.3 | bash | - |
378 | 206 | 197 | 3.5 | zsh | - |
48 | 36 | 12 | 84.8 | bumpleak/osh | mut |
60 | 47 | 12 | 85.1 | _bin/cxx-opt+bumproot/osh | mut |
71 | 59 | 12 | 86.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 60 | 36 | 73.6 | osh-native | mut+alloc |
105 | 72 | 32 | 75.3 | osh-native | mut+alloc+free |
159 | 139 | 20 | 45.8 | osh-native | mut+alloc+free+gc |
166 | 154 | 12 | 46.1 | osh-native | mut+alloc+free+gc+exit |
138 | 73 | 65 | 99.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
227 | 178 | 49 | 61.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
89 | 64 | 24 | 73.2 | osh-native-souffle | mut+alloc |
96 | 56 | 40 | 75.0 | osh-native-souffle | mut+alloc+free |
145 | 112 | 32 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
142 | 117 | 24 | 50.4 | 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 | 2.9 | bash | - |
8 | 0 | 7 | 3.3 | zsh | - |
6 | 6 | 0 | 12.3 | bumpleak/osh | mut |
6 | 6 | 0 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 10.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.2 | osh-native | mut+alloc |
9 | 9 | 0 | 10.0 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 7 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 0 | 8 | 9.8 | osh-native-souffle | mut+alloc |
8 | 0 | 8 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 4 | 4 | 8.0 | 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 |
11 | 11 | 0 | 1.4 | dash | - |
28 | 28 | 0 | 2.9 | bash | - |
23 | 12 | 12 | 3.4 | zsh | - |
18 | 18 | 0 | 30.8 | bumpleak/osh | mut |
25 | 18 | 7 | 31.8 | _bin/cxx-opt+bumproot/osh | mut |
28 | 20 | 8 | 32.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.3 | osh-native | mut+alloc |
37 | 25 | 12 | 26.7 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 46 | 8 | 36.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 29 | 7 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 25 | 4 | 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 |
22 | 19 | 4 | 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 | 60 | 12 | 3.1 | bash | - |
168 | 116 | 52 | 55.2 | bumpleak/osh | mut |
180 | 112 | 68 | 55.4 | _bin/cxx-opt+bumproot/osh | mut |
194 | 126 | 67 | 56.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 152 | 60 | 47.1 | osh-native | mut+alloc |
219 | 159 | 60 | 48.6 | osh-native | mut+alloc+free |
182 | 127 | 55 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 130 | 51 | 8.9 | osh-native | mut+alloc+free+gc+exit |
231 | 163 | 68 | 64.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 141 | 68 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
205 | 157 | 47 | 46.6 | osh-native-souffle | mut+alloc |
212 | 128 | 84 | 48.3 | osh-native-souffle | mut+alloc+free |
175 | 111 | 64 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
177 | 114 | 63 | 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 |
9 | 4 | 5 | 3.5 | dash | - |
19 | 13 | 7 | 4.5 | bash | - |
18 | 5 | 13 | 3.4 | zsh | - |
20 | 12 | 8 | 12.7 | bumpleak/osh | mut |
20 | 15 | 6 | 12.8 | _bin/cxx-opt+bumproot/osh | mut |
21 | 12 | 9 | 12.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 14 | 7 | 11.0 | osh-native | mut+alloc |
22 | 19 | 3 | 11.0 | osh-native | mut+alloc+free |
22 | 13 | 10 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 16 | 7 | 9.3 | osh-native | mut+alloc+free+gc+exit |
25 | 12 | 13 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 13 | 11 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 14 | 6 | 10.5 | osh-native-souffle | mut+alloc |
21 | 11 | 10 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 16 | 5 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 22 | 0 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |