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 | 18.0 | 476,742 | 1,282 | 6 | 409,294 | 5 | 204,647 | osh-native |
parse.configure-cpython | 34 | 4 | 10 | 12.0 | 17.7 | 476,742 | 1,282 | 6 | 408,794 | 5 | 204,397 | osh-native-souffle |
parse.configure-coreutils | 171 | 25 | 81 | 41.1 | 45.8 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 136 | 24 | 60 | 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 | 8 | 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.1 | 8.0 | 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 | 3 | 10.3 | 8.4 | 995,278 | 15,258 | 21 | 50,000 | 0 | 3,838 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.2 | 116,309 | 277 | 3 | 85,502 | 1 | 42,751 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.5 | 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 | 2.9 | bash | - |
104 | 51 | 60 | 3.4 | zsh | - |
16 | 12 | 4 | 29.3 | bumpleak/osh | mut |
19 | 19 | 0 | 29.8 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 29.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 13 | 17 | 25.2 | osh-native | mut+alloc |
31 | 19 | 12 | 25.6 | osh-native | mut+alloc+free |
35 | 23 | 12 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 32 | 4 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 31 | 12 | 33.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 40 | 8 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 26 | 0 | 24.8 | osh-native-souffle | mut+alloc |
29 | 16 | 12 | 25.3 | osh-native-souffle | mut+alloc+free |
34 | 17 | 17 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
35 | 35 | 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 | 18 | 4 | 1.4 | dash | - |
78 | 74 | 4 | 3.1 | bash | - |
375 | 235 | 162 | 3.5 | zsh | - |
49 | 45 | 4 | 84.3 | bumpleak/osh | mut |
59 | 50 | 8 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
70 | 57 | 12 | 85.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 55 | 43 | 73.6 | osh-native | mut+alloc |
104 | 64 | 40 | 75.4 | osh-native | mut+alloc+free |
171 | 158 | 12 | 45.8 | osh-native | mut+alloc+free+gc |
160 | 140 | 20 | 46.0 | osh-native | mut+alloc+free+gc+exit |
137 | 85 | 52 | 99.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
226 | 198 | 28 | 61.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 58 | 29 | 73.0 | osh-native-souffle | mut+alloc |
97 | 60 | 36 | 74.9 | osh-native-souffle | mut+alloc+free |
136 | 116 | 20 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
141 | 121 | 20 | 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.4 | dash | - |
6 | 3 | 3 | 2.9 | bash | - |
8 | 7 | 0 | 3.1 | zsh | - |
5 | 0 | 5 | 11.8 | bumpleak/osh | mut |
6 | 0 | 6 | 11.2 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.0 | osh-native | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 3 | 6 | 8.4 | osh-native | mut+alloc+free+gc+exit |
11 | 6 | 6 | 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.8 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 8 | 0 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
8 | 3 | 6 | 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 | - |
28 | 24 | 4 | 2.9 | bash | - |
24 | 14 | 9 | 3.3 | zsh | - |
18 | 18 | 0 | 30.8 | bumpleak/osh | mut |
25 | 21 | 4 | 31.9 | _bin/cxx-opt+bumproot/osh | mut |
28 | 20 | 8 | 33.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 32 | 4 | 25.8 | osh-native | mut+alloc |
37 | 33 | 4 | 26.2 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.7 | osh-native | mut+alloc+free+gc+exit |
53 | 38 | 15 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 28 | 8 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 19 | 11 | 25.4 | osh-native-souffle | mut+alloc |
31 | 22 | 9 | 26.0 | osh-native-souffle | mut+alloc+free |
22 | 17 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
21 | 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.0 | bash | - |
168 | 100 | 68 | 55.6 | bumpleak/osh | mut |
181 | 113 | 68 | 55.6 | _bin/cxx-opt+bumproot/osh | mut |
194 | 145 | 48 | 55.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 137 | 73 | 47.0 | osh-native | mut+alloc |
217 | 137 | 80 | 48.7 | osh-native | mut+alloc+free |
182 | 121 | 60 | 8.8 | osh-native | mut+alloc+free+gc |
184 | 151 | 32 | 8.8 | osh-native | mut+alloc+free+gc+exit |
234 | 149 | 85 | 64.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
212 | 156 | 56 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
205 | 154 | 51 | 46.6 | osh-native-souffle | mut+alloc |
210 | 127 | 83 | 48.3 | osh-native-souffle | mut+alloc+free |
174 | 106 | 67 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
175 | 103 | 71 | 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 | 10 | 0 | 3.4 | dash | - |
20 | 12 | 8 | 4.5 | bash | - |
18 | 13 | 5 | 3.4 | zsh | - |
18 | 6 | 13 | 11.8 | bumpleak/osh | mut |
20 | 16 | 5 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
20 | 11 | 10 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 16 | 6 | 11.0 | osh-native | mut+alloc |
22 | 10 | 13 | 11.3 | osh-native | mut+alloc+free |
22 | 16 | 6 | 9.2 | osh-native | mut+alloc+free+gc |
23 | 16 | 7 | 9.2 | osh-native | mut+alloc+free+gc+exit |
25 | 15 | 10 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 12 | 14 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
21 | 15 | 6 | 10.5 | osh-native-souffle | mut+alloc |
21 | 14 | 8 | 10.9 | osh-native-souffle | mut+alloc+free |
21 | 15 | 6 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 15 | 8 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |