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 | 17.8 | 476,744 | 1,282 | 6 | 406,316 | 5 | 203,158 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.4 | 476,744 | 1,282 | 6 | 406,186 | 5 | 203,093 | osh-native-souffle |
parse.configure-coreutils | 153 | 23 | 66 | 44.5 | 49.7 | 1,653,332 | 4,764 | 12 | 1,025,512 | 6 | 764,299 | osh-native |
parse.configure-coreutils | 144 | 25 | 64 | 45.9 | 51.0 | 1,653,331 | 4,764 | 12 | 1,063,842 | 6 | 792,359 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,935 | 180 | 2 | 75,016 | 1 | 37,508 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 8.0 | 101,935 | 180 | 3 | 87,078 | 1 | 43,539 | osh-native-souffle |
ex.compute-fib | 27 | 0 | 1 | 2.1 | 8.0 | 579,599 | 22,608 | 12 | 50,000 | 0 | 2,912 | osh-native |
ex.compute-fib | 21 | 0 | 2 | 2.1 | 7.5 | 579,599 | 22,608 | 12 | 50,000 | 0 | 2,850 | osh-native-souffle |
ex.bashcomp-parse-help | 180 | 0 | 3 | 10.3 | 8.7 | 995,281 | 15,258 | 21 | 50,000 | 0 | 3,894 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 4 | 10.3 | 8.3 | 995,280 | 15,258 | 21 | 50,000 | 0 | 3,839 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,311 | 277 | 3 | 85,234 | 1 | 42,617 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.5 | 116,311 | 277 | 3 | 85,110 | 1 | 42,555 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 3 | 3 | 1.6 | dash | - |
24 | 24 | 0 | 3.0 | bash | - |
105 | 55 | 57 | 3.4 | zsh | - |
17 | 17 | 0 | 29.7 | bumpleak/osh | mut |
20 | 16 | 4 | 28.8 | _bin/cxx-opt+bumproot/osh | mut |
23 | 15 | 7 | 30.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 17 | 13 | 25.2 | osh-native | mut+alloc |
31 | 26 | 4 | 25.7 | osh-native | mut+alloc+free |
35 | 27 | 8 | 17.8 | osh-native | mut+alloc+free+gc |
37 | 26 | 11 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 31 | 12 | 32.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 43 | 4 | 22.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 16 | 12 | 24.8 | osh-native-souffle | mut+alloc |
29 | 16 | 12 | 25.2 | osh-native-souffle | mut+alloc+free |
33 | 29 | 4 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
34 | 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 |
22 | 18 | 4 | 1.6 | dash | - |
79 | 75 | 4 | 3.1 | bash | - |
372 | 236 | 159 | 3.5 | zsh | - |
48 | 32 | 16 | 84.2 | bumpleak/osh | mut |
60 | 52 | 8 | 86.3 | _bin/cxx-opt+bumproot/osh | mut |
71 | 59 | 12 | 86.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 57 | 40 | 73.5 | osh-native | mut+alloc |
105 | 76 | 28 | 75.1 | osh-native | mut+alloc+free |
153 | 120 | 32 | 49.7 | osh-native | mut+alloc+free+gc |
148 | 120 | 28 | 50.4 | osh-native | mut+alloc+free+gc+exit |
139 | 94 | 45 | 98.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 192 | 16 | 67.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 47 | 39 | 73.1 | osh-native-souffle | mut+alloc |
97 | 52 | 44 | 75.1 | osh-native-souffle | mut+alloc+free |
144 | 123 | 20 | 51.0 | osh-native-souffle | mut+alloc+free+gc |
149 | 129 | 20 | 51.5 | 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 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 6 | 0 | 11.9 | bumpleak/osh | mut |
7 | 7 | 0 | 11.3 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 10.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native | mut+alloc |
9 | 4 | 4 | 10.0 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 8 | 0 | 9.7 | osh-native-souffle | mut+alloc |
8 | 0 | 8 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 4 | 4 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
9 | 9 | 0 | 8.0 | 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.6 | dash | - |
29 | 29 | 0 | 2.9 | bash | - |
23 | 19 | 4 | 3.3 | zsh | - |
18 | 11 | 7 | 32.0 | bumpleak/osh | mut |
26 | 26 | 0 | 32.5 | _bin/cxx-opt+bumproot/osh | mut |
27 | 27 | 0 | 32.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 26.0 | osh-native | mut+alloc |
37 | 28 | 8 | 26.2 | osh-native | mut+alloc+free |
27 | 27 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 23 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 33 | 21 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 37 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 26 | 4 | 25.6 | osh-native-souffle | mut+alloc |
31 | 19 | 12 | 25.8 | osh-native-souffle | mut+alloc+free |
21 | 21 | 0 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
21 | 21 | 0 | 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 |
74 | 65 | 8 | 3.1 | bash | - |
169 | 136 | 32 | 54.0 | bumpleak/osh | mut |
180 | 120 | 60 | 56.3 | _bin/cxx-opt+bumproot/osh | mut |
193 | 141 | 52 | 56.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 133 | 80 | 47.0 | osh-native | mut+alloc |
217 | 129 | 88 | 48.8 | osh-native | mut+alloc+free |
180 | 116 | 64 | 8.7 | osh-native | mut+alloc+free+gc |
183 | 118 | 65 | 8.7 | osh-native | mut+alloc+free+gc+exit |
233 | 169 | 64 | 62.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 174 | 36 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 128 | 76 | 46.6 | osh-native-souffle | mut+alloc |
211 | 138 | 73 | 48.4 | osh-native-souffle | mut+alloc+free |
175 | 123 | 52 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
173 | 137 | 36 | 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 |
10 | 9 | 1 | 3.5 | dash | - |
19 | 16 | 4 | 4.3 | bash | - |
18 | 9 | 9 | 3.4 | zsh | - |
18 | 7 | 11 | 11.8 | bumpleak/osh | mut |
19 | 14 | 5 | 12.2 | _bin/cxx-opt+bumproot/osh | mut |
20 | 13 | 7 | 12.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 12 | 9 | 10.9 | osh-native | mut+alloc |
22 | 13 | 10 | 11.1 | osh-native | mut+alloc+free |
22 | 16 | 7 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 18 | 5 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 14 | 12 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 14 | 11 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 13 | 7 | 10.4 | osh-native-souffle | mut+alloc |
21 | 14 | 8 | 10.9 | osh-native-souffle | mut+alloc+free |
21 | 20 | 2 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 19 | 3 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |