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 | 5 | 11 | 12.1 | 18.0 | 476,720 | 1,282 | 6 | 409,234 | 5 | 204,617 | osh-native |
parse.configure-cpython | 34 | 4 | 11 | 12.0 | 17.6 | 476,720 | 1,282 | 6 | 408,734 | 5 | 204,367 | osh-native-souffle |
parse.configure-coreutils | 160 | 27 | 72 | 44.7 | 49.9 | 1,653,308 | 4,764 | 12 | 1,030,990 | 6 | 769,632 | osh-native |
parse.configure-coreutils | 157 | 26 | 78 | 44.6 | 49.7 | 1,653,307 | 4,764 | 12 | 1,030,618 | 6 | 769,393 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.7 | 101,911 | 180 | 2 | 75,206 | 1 | 37,603 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.3 | 101,911 | 180 | 2 | 75,076 | 1 | 37,538 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.4 | 8.0 | 584,179 | 22,608 | 12 | 50,000 | 0 | 2,880 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.4 | 7.5 | 584,179 | 22,608 | 12 | 50,000 | 0 | 2,818 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 3 | 10.3 | 8.7 | 995,257 | 12,911 | 21 | 50,000 | 0 | 3,868 | osh-native |
ex.bashcomp-parse-help | 176 | 0 | 4 | 10.3 | 8.4 | 995,256 | 12,911 | 21 | 50,000 | 0 | 3,815 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,326 | 270 | 3 | 85,442 | 1 | 42,721 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.5 | 116,326 | 270 | 3 | 85,318 | 1 | 42,659 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 3 | 3 | 1.4 | dash | - |
24 | 19 | 4 | 3.1 | bash | - |
106 | 56 | 56 | 3.3 | zsh | - |
17 | 12 | 4 | 28.2 | bumpleak/osh | mut |
19 | 15 | 4 | 29.4 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 30.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 21 | 9 | 25.2 | osh-native | mut+alloc |
33 | 20 | 12 | 25.6 | osh-native | mut+alloc+free |
38 | 38 | 0 | 18.0 | osh-native | mut+alloc+free+gc |
40 | 24 | 16 | 18.2 | osh-native | mut+alloc+free+gc+exit |
42 | 34 | 8 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 38 | 11 | 22.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 15 | 12 | 24.6 | osh-native-souffle | mut+alloc |
30 | 15 | 15 | 25.3 | osh-native-souffle | mut+alloc+free |
34 | 27 | 8 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
35 | 30 | 4 | 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 | 22 | 0 | 1.4 | dash | - |
78 | 78 | 0 | 3.1 | bash | - |
377 | 236 | 164 | 3.7 | zsh | - |
49 | 37 | 12 | 85.0 | bumpleak/osh | mut |
61 | 48 | 12 | 85.7 | _bin/cxx-opt+bumproot/osh | mut |
72 | 60 | 12 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 49 | 49 | 73.4 | osh-native | mut+alloc |
107 | 75 | 32 | 75.4 | osh-native | mut+alloc+free |
160 | 136 | 24 | 49.9 | osh-native | mut+alloc+free+gc |
166 | 142 | 24 | 50.5 | osh-native | mut+alloc+free+gc+exit |
136 | 88 | 48 | 99.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
227 | 191 | 36 | 66.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 52 | 36 | 73.3 | osh-native-souffle | mut+alloc |
96 | 52 | 44 | 74.9 | osh-native-souffle | mut+alloc+free |
157 | 137 | 20 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
158 | 146 | 12 | 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.3 | dash | - |
6 | 3 | 3 | 2.9 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 0 | 6 | 11.9 | bumpleak/osh | mut |
7 | 0 | 7 | 11.7 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 11.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 9 | 0 | 10.2 | osh-native | mut+alloc |
9 | 5 | 5 | 10.1 | osh-native | mut+alloc+free |
9 | 5 | 5 | 8.7 | osh-native | mut+alloc+free+gc |
10 | 5 | 5 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 8 | 0 | 9.7 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 8 | 0 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
9 | 0 | 8 | 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 | 7 | 3 | 1.4 | dash | - |
29 | 29 | 0 | 2.8 | bash | - |
24 | 12 | 12 | 3.3 | zsh | - |
19 | 15 | 4 | 32.5 | bumpleak/osh | mut |
25 | 25 | 0 | 31.6 | _bin/cxx-opt+bumproot/osh | mut |
28 | 28 | 0 | 33.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 20 | 16 | 26.3 | osh-native | mut+alloc |
39 | 30 | 8 | 26.6 | osh-native | mut+alloc+free |
28 | 20 | 8 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 49 | 4 | 36.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 19 | 11 | 25.8 | osh-native-souffle | mut+alloc |
32 | 23 | 9 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 22 | 0 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
21 | 17 | 4 | 7.3 | 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 | 56 | 16 | 3.1 | bash | - |
170 | 130 | 39 | 53.9 | bumpleak/osh | mut |
181 | 121 | 60 | 56.3 | _bin/cxx-opt+bumproot/osh | mut |
193 | 137 | 56 | 56.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 128 | 84 | 47.0 | osh-native | mut+alloc |
218 | 143 | 75 | 48.7 | osh-native | mut+alloc+free |
182 | 138 | 43 | 8.7 | osh-native | mut+alloc+free+gc |
183 | 134 | 47 | 8.7 | osh-native | mut+alloc+free+gc+exit |
234 | 149 | 85 | 62.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 149 | 60 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
224 | 134 | 87 | 46.4 | osh-native-souffle | mut+alloc |
213 | 124 | 88 | 48.3 | osh-native-souffle | mut+alloc+free |
176 | 108 | 68 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
175 | 118 | 57 | 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 | 1 | 3.5 | dash | - |
19 | 14 | 6 | 4.5 | bash | - |
18 | 11 | 7 | 3.5 | zsh | - |
20 | 11 | 9 | 12.5 | bumpleak/osh | mut |
22 | 15 | 7 | 13.3 | _bin/cxx-opt+bumproot/osh | mut |
21 | 14 | 8 | 13.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 20 | 2 | 11.0 | osh-native | mut+alloc |
23 | 7 | 17 | 11.3 | osh-native | mut+alloc+free |
22 | 14 | 8 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 19 | 5 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 20 | 6 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 19 | 7 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 15 | 6 | 10.5 | osh-native-souffle | mut+alloc |
21 | 11 | 11 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 14 | 7 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
21 | 16 | 6 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |