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 | 9 | 12.1 | 18.0 | 476,742 | 1,282 | 6 | 409,294 | 5 | 204,647 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.7 | 476,742 | 1,282 | 6 | 408,794 | 5 | 204,397 | osh-native-souffle |
parse.configure-coreutils | 167 | 24 | 81 | 41.1 | 45.9 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 156 | 27 | 78 | 44.6 | 49.5 | 1,653,329 | 4,764 | 12 | 1,030,678 | 6 | 769,423 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,933 | 180 | 2 | 75,266 | 1 | 37,633 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.0 | 101,933 | 180 | 2 | 75,136 | 1 | 37,568 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.4 | 8.0 | 584,198 | 22,608 | 12 | 50,000 | 0 | 2,910 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.4 | 7.6 | 584,198 | 22,608 | 12 | 50,000 | 0 | 2,848 | osh-native-souffle |
ex.bashcomp-parse-help | 184 | 0 | 4 | 10.3 | 8.8 | 995,279 | 12,911 | 21 | 50,000 | 0 | 3,898 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 3 | 10.3 | 8.4 | 995,278 | 12,911 | 21 | 50,000 | 0 | 3,838 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.2 | 116,348 | 270 | 3 | 85,502 | 1 | 42,751 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.5 | 116,348 | 270 | 3 | 85,378 | 1 | 42,689 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
24 | 24 | 0 | 3.1 | bash | - |
105 | 65 | 47 | 3.4 | zsh | - |
16 | 16 | 0 | 28.2 | bumpleak/osh | mut |
19 | 19 | 0 | 29.8 | _bin/cxx-opt+bumproot/osh | mut |
22 | 19 | 4 | 29.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 22 | 7 | 25.2 | osh-native | mut+alloc |
32 | 16 | 16 | 25.6 | osh-native | mut+alloc+free |
36 | 24 | 12 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 37 | 0 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 28 | 16 | 33.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 34 | 15 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 11 | 15 | 24.8 | osh-native-souffle | mut+alloc |
29 | 25 | 4 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 29 | 4 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
34 | 22 | 11 | 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 | - |
78 | 78 | 0 | 3.3 | bash | - |
380 | 199 | 202 | 3.5 | zsh | - |
48 | 48 | 0 | 85.4 | bumpleak/osh | mut |
59 | 47 | 12 | 85.8 | _bin/cxx-opt+bumproot/osh | mut |
71 | 67 | 4 | 85.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 53 | 44 | 73.6 | osh-native | mut+alloc |
106 | 58 | 47 | 75.3 | osh-native | mut+alloc+free |
167 | 147 | 20 | 45.9 | osh-native | mut+alloc+free+gc |
174 | 141 | 32 | 46.0 | osh-native | mut+alloc+free+gc+exit |
138 | 95 | 43 | 98.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
247 | 214 | 32 | 62.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 64 | 24 | 73.1 | osh-native-souffle | mut+alloc |
96 | 48 | 48 | 75.0 | osh-native-souffle | mut+alloc+free |
156 | 123 | 32 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
151 | 135 | 16 | 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 | 0 | 2 | 1.4 | dash | - |
6 | 3 | 3 | 3.0 | bash | - |
8 | 7 | 0 | 3.4 | zsh | - |
6 | 3 | 3 | 11.7 | bumpleak/osh | mut |
7 | 3 | 3 | 11.0 | _bin/cxx-opt+bumproot/osh | mut |
8 | 8 | 0 | 11.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 12 | 0 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 8 | 0 | 9.7 | osh-native-souffle | mut+alloc |
8 | 0 | 8 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 4 | 4 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
9 | 9 | 0 | 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 | 10 | 0 | 1.4 | dash | - |
29 | 29 | 0 | 2.8 | bash | - |
24 | 16 | 8 | 3.3 | zsh | - |
18 | 18 | 0 | 31.4 | bumpleak/osh | mut |
26 | 26 | 0 | 31.5 | _bin/cxx-opt+bumproot/osh | mut |
29 | 29 | 0 | 32.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 20 | 16 | 26.3 | osh-native | mut+alloc |
38 | 25 | 13 | 26.7 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
55 | 39 | 16 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 37 | 0 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 22 | 9 | 25.8 | osh-native-souffle | mut+alloc |
32 | 16 | 16 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 21 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 21 | 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 | 68 | 4 | 3.1 | bash | - |
168 | 104 | 64 | 54.5 | bumpleak/osh | mut |
181 | 88 | 92 | 54.7 | _bin/cxx-opt+bumproot/osh | mut |
193 | 120 | 72 | 55.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 163 | 48 | 47.0 | osh-native | mut+alloc |
217 | 122 | 95 | 48.8 | osh-native | mut+alloc+free |
184 | 128 | 56 | 8.8 | osh-native | mut+alloc+free+gc |
183 | 127 | 56 | 8.8 | osh-native | mut+alloc+free+gc+exit |
235 | 171 | 64 | 63.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
212 | 156 | 56 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
205 | 129 | 76 | 46.6 | osh-native-souffle | mut+alloc |
213 | 114 | 98 | 48.3 | osh-native-souffle | mut+alloc+free |
175 | 119 | 56 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
176 | 136 | 40 | 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 | 4 | 6 | 3.4 | dash | - |
20 | 10 | 10 | 4.5 | bash | - |
18 | 5 | 13 | 3.5 | zsh | - |
18 | 13 | 5 | 11.6 | bumpleak/osh | mut |
19 | 17 | 3 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 8 | 13.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 17 | 5 | 11.0 | osh-native | mut+alloc |
23 | 11 | 13 | 11.1 | osh-native | mut+alloc+free |
22 | 15 | 8 | 9.2 | osh-native | mut+alloc+free+gc |
23 | 21 | 3 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 15 | 10 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 19 | 6 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 5 | 16 | 10.5 | osh-native-souffle | mut+alloc |
22 | 13 | 9 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 15 | 7 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 15 | 8 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |