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.0 | 18.0 | 476,766 | 1,282 | 6 | 406,618 | 5 | 203,309 | osh-native |
parse.configure-cpython | 33 | 3 | 9 | 12.0 | 17.6 | 476,766 | 1,282 | 6 | 406,608 | 5 | 203,304 | osh-native-souffle |
parse.configure-coreutils | 151 | 26 | 65 | 44.5 | 49.8 | 1,653,354 | 4,764 | 12 | 1,025,540 | 6 | 764,313 | osh-native |
parse.configure-coreutils | 145 | 26 | 68 | 44.5 | 49.4 | 1,653,353 | 4,764 | 12 | 1,025,530 | 6 | 764,308 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,957 | 180 | 2 | 75,044 | 1 | 37,522 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.1 | 101,957 | 180 | 2 | 75,034 | 1 | 37,517 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.2 | 8.0 | 579,721 | 22,608 | 12 | 50,000 | 0 | 2,926 | osh-native |
ex.compute-fib | 21 | 0 | 1 | 2.2 | 7.5 | 579,721 | 22,608 | 12 | 50,000 | 0 | 2,921 | osh-native-souffle |
ex.bashcomp-parse-help | 184 | 0 | 4 | 11.1 | 8.8 | 1,021,036 | 15,258 | 22 | 50,000 | 0 | 3,915 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 4 | 11.1 | 8.4 | 1,021,035 | 15,258 | 22 | 50,000 | 0 | 3,915 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.2 | 116,340 | 277 | 3 | 85,262 | 1 | 42,631 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 116,340 | 277 | 3 | 85,252 | 1 | 42,626 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 22 | 1 | 3.0 | bash | - |
100 | 55 | 52 | 3.5 | zsh | - |
17 | 12 | 5 | 28.2 | bumpleak/osh | mut |
20 | 17 | 3 | 28.2 | _bin/cxx-opt+bumproot/osh | mut |
23 | 16 | 7 | 29.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 21 | 8 | 25.2 | osh-native | mut+alloc |
31 | 21 | 10 | 25.7 | osh-native | mut+alloc+free |
36 | 31 | 5 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 26 | 11 | 18.0 | osh-native | mut+alloc+free+gc+exit |
42 | 28 | 14 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 40 | 8 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 17 | 9 | 24.8 | osh-native-souffle | mut+alloc |
29 | 18 | 10 | 25.2 | osh-native-souffle | mut+alloc+free |
33 | 28 | 5 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 28 | 5 | 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 | 19 | 2 | 1.4 | dash | - |
78 | 77 | 1 | 3.3 | bash | - |
364 | 204 | 183 | 3.5 | zsh | - |
50 | 38 | 12 | 84.6 | bumpleak/osh | mut |
59 | 56 | 3 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
71 | 57 | 13 | 85.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 68 | 31 | 73.5 | osh-native | mut+alloc |
107 | 67 | 40 | 75.4 | osh-native | mut+alloc+free |
151 | 128 | 23 | 49.8 | osh-native | mut+alloc+free+gc |
164 | 138 | 26 | 50.4 | osh-native | mut+alloc+free+gc+exit |
139 | 95 | 44 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 186 | 25 | 66.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 55 | 32 | 73.1 | osh-native-souffle | mut+alloc |
97 | 54 | 43 | 75.0 | osh-native-souffle | mut+alloc+free |
145 | 123 | 22 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
150 | 134 | 16 | 50.0 | 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 | 1 | 1 | 1.4 | dash | - |
5 | 5 | 0 | 2.8 | bash | - |
7 | 2 | 5 | 3.3 | zsh | - |
6 | 1 | 5 | 12.2 | bumpleak/osh | mut |
7 | 4 | 3 | 11.8 | _bin/cxx-opt+bumproot/osh | mut |
7 | 5 | 2 | 11.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 6 | 2 | 10.0 | osh-native | mut+alloc |
9 | 7 | 2 | 10.1 | osh-native | mut+alloc+free |
9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 8 | 1 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 7 | 5 | 11.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 9 | 3 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 6 | 2 | 9.6 | osh-native-souffle | mut+alloc |
8 | 6 | 2 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 5 | 3 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
8 | 7 | 1 | 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 | 10 | 0 | 1.4 | dash | - |
29 | 28 | 1 | 2.9 | bash | - |
23 | 18 | 5 | 3.3 | zsh | - |
18 | 14 | 4 | 32.8 | bumpleak/osh | mut |
26 | 22 | 3 | 31.8 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 25 | 12 | 26.3 | osh-native | mut+alloc |
37 | 27 | 10 | 26.6 | osh-native | mut+alloc+free |
28 | 26 | 2 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 26 | 3 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 35 | 18 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 34 | 4 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 21 | 8 | 26.0 | osh-native-souffle | mut+alloc |
31 | 19 | 12 | 26.3 | osh-native-souffle | mut+alloc+free |
21 | 17 | 5 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 19 | 3 | 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 |
73 | 68 | 5 | 3.1 | bash | - |
167 | 112 | 55 | 56.8 | bumpleak/osh | mut |
180 | 124 | 56 | 56.8 | _bin/cxx-opt+bumproot/osh | mut |
197 | 133 | 63 | 58.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
214 | 133 | 80 | 49.0 | osh-native | mut+alloc |
222 | 147 | 75 | 50.7 | osh-native | mut+alloc+free |
184 | 123 | 61 | 8.8 | osh-native | mut+alloc+free+gc |
184 | 123 | 61 | 8.9 | osh-native | mut+alloc+free+gc+exit |
239 | 146 | 93 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 156 | 53 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
206 | 140 | 66 | 48.4 | osh-native-souffle | mut+alloc |
214 | 148 | 66 | 50.3 | osh-native-souffle | mut+alloc+free |
175 | 106 | 69 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
175 | 127 | 48 | 8.3 | 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 | 7 | 3 | 3.5 | dash | - |
19 | 10 | 9 | 4.5 | bash | - |
17 | 11 | 7 | 3.4 | zsh | - |
19 | 7 | 12 | 12.7 | bumpleak/osh | mut |
19 | 9 | 11 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
20 | 11 | 9 | 12.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 11 | 11 | 11.1 | osh-native | mut+alloc |
23 | 13 | 10 | 11.1 | osh-native | mut+alloc+free |
23 | 11 | 12 | 9.2 | osh-native | mut+alloc+free+gc |
23 | 11 | 12 | 9.3 | osh-native | mut+alloc+free+gc+exit |
24 | 8 | 17 | 12.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 16 | 9 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 9 | 11 | 10.6 | osh-native-souffle | mut+alloc |
21 | 8 | 14 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 9 | 12 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 11 | 11 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |