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 | 37 | 4 | 10 | 12.1 | 17.8 | 476,744 | 1,282 | 6 | 409,298 | 5 | 204,649 | osh-native |
parse.configure-cpython | 35 | 4 | 11 | 12.0 | 17.4 | 476,744 | 1,282 | 6 | 408,798 | 5 | 204,399 | osh-native-souffle |
parse.configure-coreutils | 175 | 27 | 88 | 41.1 | 45.9 | 1,653,332 | 4,764 | 12 | 1,591,980 | 7 | 795,990 | osh-native |
parse.configure-coreutils | 153 | 26 | 76 | 44.6 | 49.7 | 1,653,331 | 4,764 | 12 | 1,030,682 | 6 | 769,425 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.7 | 101,935 | 180 | 2 | 75,270 | 1 | 37,635 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.6 | 8.3 | 101,935 | 180 | 2 | 75,140 | 1 | 37,570 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.1 | 8.0 | 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 | 182 | 0 | 4 | 10.3 | 8.7 | 995,281 | 15,258 | 21 | 50,000 | 0 | 3,895 | osh-native |
ex.bashcomp-parse-help | 178 | 0 | 4 | 10.3 | 8.4 | 995,280 | 15,258 | 21 | 50,000 | 0 | 3,840 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.2 | 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.1 | bash | - |
106 | 56 | 56 | 3.4 | zsh | - |
17 | 17 | 0 | 28.0 | bumpleak/osh | mut |
20 | 16 | 4 | 28.6 | _bin/cxx-opt+bumproot/osh | mut |
23 | 19 | 4 | 30.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 19 | 11 | 25.2 | osh-native | mut+alloc |
32 | 20 | 12 | 25.7 | osh-native | mut+alloc+free |
37 | 37 | 0 | 17.8 | osh-native | mut+alloc+free+gc |
38 | 29 | 8 | 18.1 | osh-native | mut+alloc+free+gc+exit |
44 | 32 | 12 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
50 | 41 | 8 | 22.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 23 | 4 | 24.8 | osh-native-souffle | mut+alloc |
29 | 21 | 8 | 25.3 | osh-native-souffle | mut+alloc+free |
35 | 31 | 4 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
37 | 37 | 0 | 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 | 21 | 0 | 1.6 | dash | - |
78 | 78 | 0 | 3.3 | bash | - |
380 | 214 | 189 | 3.5 | zsh | - |
50 | 41 | 8 | 84.2 | bumpleak/osh | mut |
60 | 48 | 12 | 85.5 | _bin/cxx-opt+bumproot/osh | mut |
71 | 59 | 13 | 86.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 53 | 45 | 73.4 | osh-native | mut+alloc |
108 | 84 | 24 | 75.4 | osh-native | mut+alloc+free |
175 | 147 | 28 | 45.9 | osh-native | mut+alloc+free+gc |
168 | 163 | 4 | 46.1 | osh-native | mut+alloc+free+gc+exit |
140 | 72 | 68 | 97.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
243 | 203 | 40 | 61.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
89 | 54 | 35 | 73.2 | osh-native-souffle | mut+alloc |
99 | 70 | 29 | 74.9 | osh-native-souffle | mut+alloc+free |
153 | 133 | 20 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
154 | 122 | 31 | 50.3 | 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.3 | dash | - |
6 | 6 | 0 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 3 | 3 | 10.4 | bumpleak/osh | mut |
7 | 3 | 3 | 10.8 | _bin/cxx-opt+bumproot/osh | mut |
7 | 0 | 7 | 11.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.2 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 9 | 0 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
9 | 9 | 0 | 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 | 7 | 3 | 1.6 | dash | - |
29 | 21 | 7 | 3.0 | bash | - |
24 | 20 | 4 | 3.4 | zsh | - |
19 | 15 | 4 | 30.9 | bumpleak/osh | mut |
26 | 26 | 0 | 32.7 | _bin/cxx-opt+bumproot/osh | mut |
30 | 22 | 7 | 31.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 28 | 8 | 26.0 | osh-native | mut+alloc |
38 | 33 | 4 | 26.2 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
55 | 43 | 12 | 36.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 26 | 11 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 19 | 11 | 25.6 | osh-native-souffle | mut+alloc |
32 | 20 | 12 | 25.6 | osh-native-souffle | mut+alloc+free |
22 | 17 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 18 | 4 | 7.3 | 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 | 66 | 8 | 3.3 | bash | - |
172 | 100 | 72 | 55.2 | bumpleak/osh | mut |
183 | 142 | 40 | 56.0 | _bin/cxx-opt+bumproot/osh | mut |
197 | 120 | 76 | 56.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
237 | 158 | 79 | 47.1 | osh-native | mut+alloc |
223 | 125 | 97 | 48.7 | osh-native | mut+alloc+free |
182 | 130 | 51 | 8.7 | osh-native | mut+alloc+free+gc |
185 | 136 | 48 | 8.8 | osh-native | mut+alloc+free+gc+exit |
235 | 158 | 77 | 63.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
215 | 159 | 56 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
205 | 117 | 88 | 46.6 | osh-native-souffle | mut+alloc |
212 | 152 | 60 | 48.3 | osh-native-souffle | mut+alloc+free |
178 | 127 | 51 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
177 | 102 | 75 | 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 | 10 | 0 | 3.5 | dash | - |
20 | 12 | 9 | 4.5 | bash | - |
18 | 10 | 9 | 3.5 | zsh | - |
20 | 7 | 14 | 12.8 | bumpleak/osh | mut |
20 | 14 | 7 | 13.9 | _bin/cxx-opt+bumproot/osh | mut |
21 | 11 | 10 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 12 | 10 | 11.0 | osh-native | mut+alloc |
22 | 13 | 10 | 11.0 | osh-native | mut+alloc+free |
23 | 16 | 8 | 9.2 | osh-native | mut+alloc+free+gc |
23 | 17 | 7 | 9.2 | osh-native | mut+alloc+free+gc+exit |
25 | 10 | 15 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 18 | 9 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
21 | 21 | 0 | 10.6 | osh-native-souffle | mut+alloc |
22 | 12 | 11 | 10.7 | osh-native-souffle | mut+alloc+free |
22 | 17 | 6 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
23 | 16 | 7 | 8.8 | osh-native-souffle | mut+alloc+free+gc+exit |