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.1 | 18.1 | 476,744 | 1,282 | 6 | 409,298 | 5 | 204,649 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.7 | 476,744 | 1,282 | 6 | 408,798 | 5 | 204,399 | osh-native-souffle |
parse.configure-coreutils | 154 | 21 | 69 | 41.1 | 45.9 | 1,653,332 | 4,764 | 12 | 1,591,980 | 7 | 795,990 | osh-native |
parse.configure-coreutils | 140 | 25 | 64 | 44.6 | 49.8 | 1,653,331 | 4,764 | 12 | 1,030,682 | 6 | 769,425 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,935 | 180 | 2 | 75,270 | 1 | 37,635 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.1 | 101,935 | 180 | 2 | 75,140 | 1 | 37,570 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.1 | 7.9 | 579,599 | 22,608 | 12 | 50,000 | 0 | 2,912 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.1 | 7.6 | 579,599 | 22,608 | 12 | 50,000 | 0 | 2,850 | osh-native-souffle |
ex.bashcomp-parse-help | 185 | 0 | 4 | 10.3 | 8.9 | 995,281 | 15,258 | 21 | 50,000 | 0 | 3,895 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 4 | 10.3 | 8.4 | 995,280 | 15,258 | 21 | 50,000 | 0 | 3,840 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,311 | 277 | 3 | 85,506 | 1 | 42,753 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.7 | 116,311 | 277 | 3 | 85,382 | 1 | 42,691 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
105 | 58 | 53 | 3.3 | zsh | - |
16 | 12 | 4 | 29.0 | bumpleak/osh | mut |
19 | 19 | 0 | 29.2 | _bin/cxx-opt+bumproot/osh | mut |
22 | 22 | 0 | 30.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 22 | 7 | 25.2 | osh-native | mut+alloc |
31 | 19 | 12 | 25.6 | osh-native | mut+alloc+free |
36 | 27 | 8 | 18.1 | osh-native | mut+alloc+free+gc |
36 | 24 | 12 | 18.2 | osh-native | mut+alloc+free+gc+exit |
43 | 34 | 9 | 32.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
51 | 39 | 12 | 22.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 15 | 11 | 24.8 | osh-native-souffle | mut+alloc |
28 | 24 | 4 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 33 | 0 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
36 | 20 | 16 | 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 |
22 | 21 | 0 | 1.6 | dash | - |
77 | 77 | 0 | 3.1 | bash | - |
377 | 237 | 161 | 3.8 | zsh | - |
50 | 34 | 15 | 85.2 | bumpleak/osh | mut |
59 | 51 | 8 | 85.1 | _bin/cxx-opt+bumproot/osh | mut |
71 | 66 | 4 | 86.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 62 | 35 | 73.6 | osh-native | mut+alloc |
106 | 79 | 27 | 75.4 | osh-native | mut+alloc+free |
154 | 134 | 20 | 45.9 | osh-native | mut+alloc+free+gc |
163 | 138 | 24 | 46.1 | osh-native | mut+alloc+free+gc+exit |
140 | 84 | 56 | 98.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
227 | 187 | 40 | 60.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 48 | 40 | 73.2 | osh-native-souffle | mut+alloc |
96 | 84 | 12 | 74.9 | osh-native-souffle | mut+alloc+free |
140 | 116 | 24 | 49.8 | osh-native-souffle | mut+alloc+free+gc |
149 | 128 | 20 | 50.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 | 2.9 | bash | - |
8 | 0 | 7 | 3.3 | zsh | - |
6 | 3 | 3 | 10.6 | bumpleak/osh | mut |
6 | 6 | 0 | 10.9 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.0 | osh-native | mut+alloc |
9 | 8 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 3 | 6 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 11 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 8 | 0 | 9.8 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.7 | osh-native-souffle | mut+alloc+free |
8 | 8 | 0 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
8 | 3 | 5 | 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 | 10 | 0 | 1.6 | dash | - |
29 | 24 | 4 | 3.0 | bash | - |
24 | 19 | 5 | 3.3 | zsh | - |
19 | 14 | 5 | 32.3 | bumpleak/osh | mut |
25 | 21 | 4 | 31.6 | _bin/cxx-opt+bumproot/osh | mut |
27 | 23 | 4 | 32.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 16 | 20 | 26.0 | osh-native | mut+alloc |
37 | 37 | 0 | 26.1 | osh-native | mut+alloc+free |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
52 | 40 | 12 | 35.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
36 | 32 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 17 | 13 | 25.2 | osh-native-souffle | mut+alloc |
31 | 23 | 8 | 25.8 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 22 | 0 | 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 | 72 | 0 | 3.1 | bash | - |
170 | 113 | 56 | 55.0 | bumpleak/osh | mut |
180 | 140 | 40 | 55.1 | _bin/cxx-opt+bumproot/osh | mut |
195 | 135 | 60 | 56.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 140 | 72 | 47.0 | osh-native | mut+alloc |
219 | 147 | 72 | 48.8 | osh-native | mut+alloc+free |
185 | 137 | 48 | 8.9 | osh-native | mut+alloc+free+gc |
211 | 151 | 60 | 8.7 | osh-native | mut+alloc+free+gc+exit |
235 | 151 | 83 | 63.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 121 | 89 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
205 | 124 | 80 | 46.6 | osh-native-souffle | mut+alloc |
212 | 132 | 80 | 48.3 | osh-native-souffle | mut+alloc+free |
175 | 118 | 57 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
176 | 115 | 60 | 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 | 6 | 4 | 3.4 | dash | - |
20 | 13 | 8 | 4.5 | bash | - |
18 | 15 | 4 | 3.5 | zsh | - |
19 | 11 | 9 | 12.5 | bumpleak/osh | mut |
21 | 13 | 9 | 13.0 | _bin/cxx-opt+bumproot/osh | mut |
22 | 12 | 10 | 13.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 8 | 14 | 11.1 | osh-native | mut+alloc |
23 | 21 | 3 | 11.1 | osh-native | mut+alloc+free |
22 | 14 | 9 | 9.0 | osh-native | mut+alloc+free+gc |
25 | 14 | 11 | 9.2 | osh-native | mut+alloc+free+gc+exit |
25 | 8 | 17 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 23 | 3 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 15 | 5 | 10.5 | osh-native-souffle | mut+alloc |
22 | 14 | 8 | 10.7 | osh-native-souffle | mut+alloc+free |
22 | 14 | 8 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 17 | 6 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |