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 | 3 | 9 | 12.0 | 17.7 | 476,773 | 1,282 | 6 | 406,626 | 5 | 203,313 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.4 | 476,773 | 1,282 | 6 | 406,616 | 5 | 203,308 | osh-native-souffle |
parse.configure-coreutils | 153 | 23 | 66 | 44.5 | 50.0 | 1,653,361 | 4,764 | 12 | 1,025,548 | 6 | 764,317 | osh-native |
parse.configure-coreutils | 140 | 24 | 63 | 44.5 | 49.4 | 1,653,360 | 4,764 | 12 | 1,025,538 | 6 | 764,312 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.7 | 101,964 | 180 | 2 | 75,052 | 1 | 37,526 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.3 | 101,964 | 180 | 2 | 75,042 | 1 | 37,521 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.2 | 8.1 | 579,727 | 22,608 | 12 | 50,000 | 0 | 2,929 | osh-native |
ex.compute-fib | 21 | 0 | 2 | 2.2 | 7.6 | 579,727 | 22,608 | 12 | 50,000 | 0 | 2,924 | osh-native-souffle |
ex.bashcomp-parse-help | 183 | 0 | 4 | 11.1 | 8.8 | 1,021,044 | 15,258 | 22 | 50,000 | 0 | 3,918 | osh-native |
ex.bashcomp-parse-help | 173 | 0 | 4 | 11.1 | 8.4 | 1,021,043 | 15,258 | 22 | 50,000 | 0 | 3,909 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.2 | 116,362 | 277 | 3 | 85,268 | 1 | 42,634 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.4 | 116,362 | 277 | 3 | 85,258 | 1 | 42,629 | 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 | - |
106 | 61 | 52 | 3.3 | zsh | - |
16 | 11 | 5 | 29.8 | bumpleak/osh | mut |
20 | 18 | 1 | 29.6 | _bin/cxx-opt+bumproot/osh | mut |
23 | 21 | 2 | 29.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 20 | 9 | 25.3 | osh-native | mut+alloc |
32 | 23 | 9 | 25.6 | osh-native | mut+alloc+free |
36 | 30 | 6 | 17.7 | osh-native | mut+alloc+free+gc |
37 | 30 | 7 | 18.0 | osh-native | mut+alloc+free+gc+exit |
42 | 35 | 7 | 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.9 | osh-native-souffle | mut+alloc |
29 | 19 | 10 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 26 | 7 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
33 | 26 | 7 | 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 |
21 | 20 | 1 | 1.4 | dash | - |
78 | 76 | 2 | 3.3 | bash | - |
361 | 199 | 182 | 3.5 | zsh | - |
49 | 40 | 8 | 85.4 | bumpleak/osh | mut |
61 | 49 | 13 | 85.4 | _bin/cxx-opt+bumproot/osh | mut |
71 | 60 | 11 | 86.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
106 | 69 | 37 | 73.5 | osh-native | mut+alloc |
106 | 73 | 33 | 75.5 | osh-native | mut+alloc+free |
153 | 133 | 20 | 50.0 | osh-native | mut+alloc+free+gc |
158 | 133 | 25 | 50.6 | osh-native | mut+alloc+free+gc+exit |
137 | 88 | 49 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 182 | 28 | 66.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 61 | 26 | 73.1 | osh-native-souffle | mut+alloc |
94 | 53 | 41 | 74.8 | osh-native-souffle | mut+alloc+free |
140 | 116 | 25 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
141 | 115 | 25 | 50.1 | 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.9 | bash | - |
7 | 3 | 5 | 3.3 | zsh | - |
6 | 3 | 3 | 12.0 | bumpleak/osh | mut |
7 | 3 | 3 | 10.8 | _bin/cxx-opt+bumproot/osh | mut |
7 | 6 | 1 | 11.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 7 | 1 | 10.1 | osh-native | mut+alloc |
9 | 7 | 2 | 10.2 | osh-native | mut+alloc+free |
9 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 9 | 3 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 5 | 2 | 9.4 | osh-native-souffle | mut+alloc |
8 | 5 | 3 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 6 | 3 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
9 | 5 | 4 | 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 | - |
28 | 28 | 0 | 2.9 | bash | - |
23 | 21 | 2 | 3.3 | zsh | - |
19 | 14 | 4 | 32.3 | bumpleak/osh | mut |
26 | 24 | 2 | 31.6 | _bin/cxx-opt+bumproot/osh | mut |
28 | 25 | 3 | 32.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 25 | 11 | 26.5 | osh-native | mut+alloc |
37 | 29 | 8 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.1 | osh-native | mut+alloc+free+gc |
28 | 25 | 3 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 41 | 13 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 34 | 3 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 19 | 11 | 26.0 | osh-native-souffle | mut+alloc |
31 | 24 | 7 | 26.3 | osh-native-souffle | mut+alloc+free |
21 | 19 | 2 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 21 | 1 | 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 | 69 | 3 | 3.0 | bash | - |
167 | 115 | 52 | 55.8 | bumpleak/osh | mut |
182 | 122 | 60 | 56.9 | _bin/cxx-opt+bumproot/osh | mut |
196 | 139 | 58 | 57.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
214 | 135 | 79 | 48.9 | osh-native | mut+alloc |
219 | 145 | 74 | 50.8 | osh-native | mut+alloc+free |
183 | 144 | 39 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 134 | 49 | 8.9 | osh-native | mut+alloc+free+gc+exit |
243 | 152 | 91 | 64.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 160 | 51 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
205 | 133 | 72 | 48.3 | osh-native-souffle | mut+alloc |
212 | 141 | 71 | 50.4 | osh-native-souffle | mut+alloc+free |
173 | 124 | 49 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
175 | 114 | 61 | 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 | 1 | 9 | 3.5 | dash | - |
19 | 7 | 13 | 4.5 | bash | - |
17 | 6 | 11 | 3.4 | zsh | - |
18 | 7 | 11 | 11.6 | bumpleak/osh | mut |
21 | 9 | 12 | 13.7 | _bin/cxx-opt+bumproot/osh | mut |
19 | 10 | 10 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 9 | 13 | 11.1 | osh-native | mut+alloc |
22 | 9 | 14 | 11.3 | osh-native | mut+alloc+free |
22 | 13 | 10 | 9.2 | osh-native | mut+alloc+free+gc |
23 | 13 | 11 | 9.2 | osh-native | mut+alloc+free+gc+exit |
24 | 13 | 12 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 12 | 13 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 11 | 10 | 10.7 | osh-native-souffle | mut+alloc |
21 | 6 | 16 | 10.6 | osh-native-souffle | mut+alloc+free |
21 | 11 | 10 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
21 | 8 | 14 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |