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.1 | 17.8 | 476,744 | 1,282 | 6 | 409,298 | 5 | 204,649 | osh-native |
parse.configure-cpython | 33 | 3 | 10 | 12.0 | 17.6 | 476,744 | 1,282 | 6 | 408,798 | 5 | 204,399 | osh-native-souffle |
parse.configure-coreutils | 147 | 18 | 63 | 41.1 | 45.8 | 1,653,332 | 4,764 | 12 | 1,591,980 | 7 | 795,990 | osh-native |
parse.configure-coreutils | 137 | 22 | 61 | 44.6 | 49.5 | 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 | 9 | 1 | 1 | 2.6 | 8.1 | 101,935 | 180 | 2 | 75,140 | 1 | 37,570 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 1 | 2.1 | 7.9 | 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 | 181 | 0 | 3 | 10.3 | 8.8 | 995,281 | 15,258 | 21 | 50,000 | 0 | 3,895 | osh-native |
ex.bashcomp-parse-help | 172 | 0 | 3 | 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 | 21 | 1 | 2 | 2.8 | 8.8 | 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.4 | dash | - |
23 | 19 | 4 | 3.0 | bash | - |
104 | 55 | 55 | 3.3 | zsh | - |
16 | 12 | 4 | 29.3 | bumpleak/osh | mut |
19 | 18 | 0 | 29.0 | _bin/cxx-opt+bumproot/osh | mut |
23 | 18 | 4 | 29.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 25 | 4 | 25.2 | osh-native | mut+alloc |
31 | 22 | 9 | 25.7 | osh-native | mut+alloc+free |
35 | 31 | 4 | 17.8 | osh-native | mut+alloc+free+gc |
36 | 32 | 4 | 18.2 | osh-native | mut+alloc+free+gc+exit |
43 | 31 | 12 | 33.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 44 | 4 | 22.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 13 | 13 | 24.8 | osh-native-souffle | mut+alloc |
28 | 24 | 4 | 25.2 | osh-native-souffle | mut+alloc+free |
33 | 18 | 15 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
34 | 22 | 11 | 17.8 | 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 | 21 | 0 | 1.4 | dash | - |
78 | 74 | 4 | 3.1 | bash | - |
374 | 206 | 186 | 3.5 | zsh | - |
48 | 28 | 20 | 85.1 | bumpleak/osh | mut |
58 | 50 | 8 | 86.1 | _bin/cxx-opt+bumproot/osh | mut |
70 | 62 | 8 | 85.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 56 | 40 | 73.6 | osh-native | mut+alloc |
105 | 68 | 36 | 75.3 | osh-native | mut+alloc+free |
147 | 131 | 16 | 45.8 | osh-native | mut+alloc+free+gc |
154 | 138 | 16 | 46.1 | osh-native | mut+alloc+free+gc+exit |
135 | 79 | 56 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
218 | 190 | 28 | 62.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 48 | 40 | 73.2 | osh-native-souffle | mut+alloc |
95 | 55 | 39 | 75.0 | osh-native-souffle | mut+alloc+free |
137 | 101 | 36 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
140 | 104 | 36 | 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 | 3 | 3 | 2.9 | bash | - |
8 | 4 | 4 | 3.4 | zsh | - |
6 | 3 | 3 | 10.9 | bumpleak/osh | mut |
7 | 7 | 0 | 11.4 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 0 | 8 | 10.1 | osh-native | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.6 | osh-native-souffle | mut+alloc+free |
9 | 8 | 0 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
9 | 4 | 4 | 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.4 | dash | - |
28 | 24 | 4 | 2.9 | bash | - |
24 | 16 | 8 | 3.3 | zsh | - |
18 | 11 | 7 | 31.6 | bumpleak/osh | mut |
25 | 18 | 7 | 31.8 | _bin/cxx-opt+bumproot/osh | mut |
28 | 23 | 4 | 32.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 20 | 16 | 26.0 | osh-native | mut+alloc |
36 | 36 | 0 | 26.3 | osh-native | mut+alloc+free |
29 | 21 | 7 | 7.9 | osh-native | mut+alloc+free+gc |
27 | 23 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
53 | 30 | 23 | 35.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
36 | 36 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
29 | 8 | 20 | 25.4 | osh-native-souffle | mut+alloc |
30 | 19 | 11 | 25.8 | osh-native-souffle | mut+alloc+free |
21 | 21 | 0 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
21 | 14 | 7 | 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 |
72 | 68 | 4 | 3.0 | bash | - |
171 | 119 | 52 | 53.9 | bumpleak/osh | mut |
180 | 124 | 56 | 56.6 | _bin/cxx-opt+bumproot/osh | mut |
196 | 155 | 40 | 55.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 141 | 69 | 47.1 | osh-native | mut+alloc |
215 | 159 | 56 | 48.9 | osh-native | mut+alloc+free |
181 | 128 | 52 | 8.8 | osh-native | mut+alloc+free+gc |
180 | 116 | 64 | 8.8 | osh-native | mut+alloc+free+gc+exit |
231 | 124 | 108 | 62.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 156 | 52 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 104 | 100 | 46.6 | osh-native-souffle | mut+alloc |
208 | 122 | 86 | 48.3 | osh-native-souffle | mut+alloc+free |
172 | 108 | 64 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
174 | 119 | 55 | 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 | 6 | 4 | 3.5 | dash | - |
19 | 19 | 0 | 4.5 | bash | - |
18 | 17 | 1 | 3.5 | zsh | - |
20 | 17 | 3 | 12.9 | bumpleak/osh | mut |
21 | 12 | 9 | 13.4 | _bin/cxx-opt+bumproot/osh | mut |
22 | 11 | 11 | 13.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 12 | 9 | 11.0 | osh-native | mut+alloc |
22 | 12 | 10 | 11.1 | osh-native | mut+alloc+free |
22 | 13 | 9 | 9.0 | osh-native | mut+alloc+free+gc |
22 | 21 | 2 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 17 | 8 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 17 | 8 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 5 | 15 | 10.6 | osh-native-souffle | mut+alloc |
21 | 15 | 6 | 10.6 | osh-native-souffle | mut+alloc+free |
21 | 13 | 8 | 8.8 | osh-native-souffle | mut+alloc+free+gc |
21 | 11 | 11 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |