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 | 35 | 3 | 9 | 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.4 | 476,766 | 1,282 | 6 | 406,608 | 5 | 203,304 | osh-native-souffle |
parse.configure-coreutils | 149 | 24 | 64 | 44.5 | 49.8 | 1,653,354 | 4,764 | 12 | 1,025,540 | 6 | 764,313 | osh-native |
parse.configure-coreutils | 136 | 23 | 61 | 44.5 | 49.5 | 1,653,353 | 4,764 | 12 | 1,025,530 | 6 | 764,308 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 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 | 22 | 0 | 1 | 2.2 | 7.6 | 579,721 | 22,608 | 12 | 50,000 | 0 | 2,921 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 4 | 11.1 | 8.9 | 1,021,036 | 15,258 | 22 | 50,000 | 0 | 3,915 | osh-native |
ex.bashcomp-parse-help | 173 | 0 | 4 | 11.1 | 8.3 | 1,021,035 | 15,258 | 22 | 50,000 | 0 | 3,915 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.2 | 116,340 | 277 | 3 | 85,262 | 1 | 42,631 | osh-native |
ex.abuild-print-help | 20 | 1 | 2 | 2.8 | 8.5 | 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 | 5 | 1 | 1.6 | dash | - |
24 | 23 | 1 | 3.1 | bash | - |
100 | 60 | 47 | 3.4 | zsh | - |
16 | 10 | 6 | 29.2 | bumpleak/osh | mut |
19 | 17 | 2 | 29.3 | _bin/cxx-opt+bumproot/osh | mut |
24 | 21 | 3 | 30.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 20 | 9 | 25.2 | osh-native | mut+alloc |
31 | 20 | 11 | 25.7 | osh-native | mut+alloc+free |
35 | 24 | 11 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 26 | 11 | 18.0 | osh-native | mut+alloc+free+gc+exit |
42 | 30 | 12 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 34 | 13 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 16 | 12 | 24.8 | osh-native-souffle | mut+alloc |
29 | 17 | 12 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 25 | 8 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
33 | 27 | 6 | 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 | 20 | 1 | 1.6 | dash | - |
78 | 78 | 0 | 3.3 | bash | - |
361 | 203 | 178 | 3.5 | zsh | - |
48 | 40 | 8 | 85.9 | bumpleak/osh | mut |
66 | 55 | 11 | 85.0 | _bin/cxx-opt+bumproot/osh | mut |
70 | 52 | 18 | 85.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 67 | 29 | 73.7 | osh-native | mut+alloc |
104 | 76 | 28 | 75.2 | osh-native | mut+alloc+free |
149 | 130 | 19 | 49.8 | osh-native | mut+alloc+free+gc |
152 | 130 | 22 | 50.5 | osh-native | mut+alloc+free+gc+exit |
138 | 102 | 37 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
214 | 184 | 30 | 66.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
89 | 61 | 28 | 73.1 | osh-native-souffle | mut+alloc |
96 | 62 | 34 | 75.0 | osh-native-souffle | mut+alloc+free |
136 | 113 | 23 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
144 | 126 | 18 | 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.3 | dash | - |
6 | 6 | 0 | 3.0 | bash | - |
7 | 2 | 5 | 3.3 | zsh | - |
6 | 3 | 3 | 10.3 | bumpleak/osh | mut |
7 | 4 | 3 | 11.0 | _bin/cxx-opt+bumproot/osh | mut |
8 | 5 | 3 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 7 | 1 | 10.0 | osh-native | mut+alloc |
9 | 8 | 1 | 10.2 | osh-native | mut+alloc+free |
9 | 6 | 3 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.8 | osh-native | mut+alloc+free+gc+exit |
12 | 7 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 11 | 1 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 3 | 5 | 9.6 | osh-native-souffle | mut+alloc |
8 | 7 | 1 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 4 | 4 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
8 | 4 | 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 |
10 | 9 | 1 | 1.4 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
23 | 19 | 4 | 3.3 | zsh | - |
18 | 18 | 0 | 31.0 | bumpleak/osh | mut |
26 | 20 | 6 | 32.1 | _bin/cxx-opt+bumproot/osh | mut |
28 | 27 | 1 | 31.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 26 | 11 | 26.3 | osh-native | mut+alloc |
38 | 27 | 11 | 26.5 | osh-native | mut+alloc+free |
28 | 25 | 3 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 27 | 2 | 8.0 | osh-native | mut+alloc+free+gc+exit |
53 | 36 | 17 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 32 | 5 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 18 | 12 | 25.8 | osh-native-souffle | mut+alloc |
31 | 17 | 14 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 20 | 2 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 18 | 4 | 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 | 70 | 3 | 3.1 | bash | - |
167 | 116 | 51 | 55.8 | bumpleak/osh | mut |
180 | 123 | 57 | 57.1 | _bin/cxx-opt+bumproot/osh | mut |
195 | 140 | 55 | 58.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 146 | 66 | 49.0 | osh-native | mut+alloc |
219 | 156 | 63 | 50.8 | osh-native | mut+alloc+free |
182 | 131 | 51 | 8.9 | osh-native | mut+alloc+free+gc |
182 | 124 | 58 | 8.8 | osh-native | mut+alloc+free+gc+exit |
233 | 158 | 75 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 168 | 41 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 137 | 66 | 48.4 | osh-native-souffle | mut+alloc |
214 | 140 | 74 | 50.4 | osh-native-souffle | mut+alloc+free |
173 | 110 | 64 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
176 | 117 | 59 | 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 | 4 | 7 | 3.5 | dash | - |
19 | 11 | 8 | 4.5 | bash | - |
17 | 10 | 8 | 3.5 | zsh | - |
19 | 9 | 11 | 12.3 | bumpleak/osh | mut |
19 | 7 | 12 | 11.9 | _bin/cxx-opt+bumproot/osh | mut |
19 | 9 | 11 | 12.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 10 | 11 | 11.1 | osh-native | mut+alloc |
22 | 10 | 13 | 11.3 | osh-native | mut+alloc+free |
22 | 14 | 9 | 9.2 | osh-native | mut+alloc+free+gc |
22 | 11 | 12 | 9.2 | osh-native | mut+alloc+free+gc+exit |
24 | 10 | 14 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 16 | 10 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 12 | 8 | 10.6 | osh-native-souffle | mut+alloc |
21 | 12 | 9 | 10.9 | osh-native-souffle | mut+alloc+free |
20 | 10 | 11 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
21 | 10 | 11 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |