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 | 17.7 | 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 | 151 | 20 | 67 | 41.1 | 45.9 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 139 | 24 | 64 | 44.6 | 49.7 | 1,653,329 | 4,764 | 12 | 1,030,678 | 6 | 769,423 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,933 | 180 | 2 | 75,266 | 1 | 37,633 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.6 | 8.3 | 101,933 | 180 | 2 | 75,136 | 1 | 37,568 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.1 | 7.9 | 579,597 | 22,608 | 12 | 50,000 | 0 | 2,910 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.1 | 7.6 | 579,597 | 22,608 | 12 | 50,000 | 0 | 2,848 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 3 | 10.3 | 8.8 | 995,279 | 15,258 | 21 | 50,000 | 0 | 3,893 | osh-native |
ex.bashcomp-parse-help | 174 | 0 | 4 | 10.3 | 8.3 | 995,278 | 15,258 | 21 | 50,000 | 0 | 3,838 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 116,309 | 277 | 3 | 85,502 | 1 | 42,751 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 116,309 | 277 | 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 | - |
23 | 23 | 0 | 3.0 | bash | - |
105 | 58 | 53 | 3.5 | zsh | - |
16 | 12 | 4 | 29.7 | bumpleak/osh | mut |
19 | 19 | 0 | 28.7 | _bin/cxx-opt+bumproot/osh | mut |
22 | 17 | 4 | 30.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 25 | 4 | 25.2 | osh-native | mut+alloc |
32 | 16 | 16 | 25.7 | osh-native | mut+alloc+free |
36 | 28 | 8 | 17.7 | osh-native | mut+alloc+free+gc |
37 | 22 | 15 | 18.2 | osh-native | mut+alloc+free+gc+exit |
43 | 27 | 16 | 32.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 43 | 4 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 15 | 11 | 24.6 | osh-native-souffle | mut+alloc |
28 | 8 | 20 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 28 | 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 | 18 | 4 | 1.4 | dash | - |
78 | 77 | 0 | 3.1 | bash | - |
374 | 220 | 176 | 3.5 | zsh | - |
50 | 34 | 15 | 84.9 | bumpleak/osh | mut |
59 | 51 | 8 | 85.6 | _bin/cxx-opt+bumproot/osh | mut |
69 | 50 | 19 | 85.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 72 | 24 | 73.4 | osh-native | mut+alloc |
105 | 70 | 35 | 75.2 | osh-native | mut+alloc+free |
151 | 127 | 24 | 45.9 | osh-native | mut+alloc+free+gc |
159 | 138 | 20 | 46.0 | osh-native | mut+alloc+free+gc+exit |
137 | 97 | 39 | 99.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
214 | 190 | 24 | 61.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 55 | 31 | 73.3 | osh-native-souffle | mut+alloc |
95 | 47 | 47 | 74.9 | osh-native-souffle | mut+alloc+free |
139 | 130 | 8 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
148 | 124 | 24 | 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 | 0 | 7 | 3.3 | zsh | - |
6 | 6 | 0 | 11.8 | bumpleak/osh | mut |
6 | 6 | 0 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
8 | 8 | 0 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 6 | 3 | 8.4 | 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 | 4 | 8 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
7 | 0 | 7 | 9.7 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.6 | osh-native-souffle | mut+alloc+free |
9 | 8 | 0 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
8 | 8 | 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.6 | dash | - |
29 | 28 | 0 | 2.9 | bash | - |
24 | 24 | 0 | 3.3 | zsh | - |
19 | 19 | 0 | 32.2 | bumpleak/osh | mut |
25 | 21 | 4 | 31.3 | _bin/cxx-opt+bumproot/osh | mut |
27 | 27 | 0 | 32.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 25.8 | osh-native | mut+alloc |
37 | 28 | 8 | 26.2 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 34 | 19 | 35.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 30 | 7 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 17 | 13 | 25.6 | osh-native-souffle | mut+alloc |
31 | 17 | 13 | 25.8 | osh-native-souffle | mut+alloc+free |
22 | 14 | 7 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 17 | 4 | 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 | 69 | 4 | 3.3 | bash | - |
168 | 124 | 44 | 55.5 | bumpleak/osh | mut |
180 | 121 | 59 | 55.0 | _bin/cxx-opt+bumproot/osh | mut |
197 | 122 | 75 | 56.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
209 | 126 | 83 | 47.1 | osh-native | mut+alloc |
217 | 146 | 71 | 48.7 | osh-native | mut+alloc+free |
182 | 146 | 36 | 8.8 | osh-native | mut+alloc+free+gc |
184 | 160 | 24 | 8.8 | osh-native | mut+alloc+free+gc+exit |
232 | 180 | 52 | 63.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
213 | 138 | 75 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
203 | 139 | 64 | 46.6 | osh-native-souffle | mut+alloc |
210 | 158 | 51 | 48.5 | osh-native-souffle | mut+alloc+free |
174 | 99 | 75 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
175 | 123 | 52 | 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.4 | dash | - |
21 | 10 | 11 | 4.5 | bash | - |
18 | 12 | 7 | 3.4 | zsh | - |
19 | 6 | 13 | 12.2 | bumpleak/osh | mut |
19 | 12 | 8 | 11.8 | _bin/cxx-opt+bumproot/osh | mut |
19 | 16 | 4 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 19 | 3 | 11.0 | osh-native | mut+alloc |
22 | 16 | 6 | 11.3 | osh-native | mut+alloc+free |
22 | 16 | 6 | 8.9 | osh-native | mut+alloc+free+gc |
22 | 19 | 4 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 16 | 8 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 15 | 10 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
19 | 14 | 6 | 10.6 | osh-native-souffle | mut+alloc |
21 | 19 | 2 | 10.9 | osh-native-souffle | mut+alloc+free |
21 | 15 | 7 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 16 | 6 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |