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 | 18.0 | 476,735 | 1,282 | 6 | 409,280 | 5 | 204,640 | osh-native |
parse.configure-cpython | 34 | 5 | 11 | 12.0 | 17.6 | 476,735 | 1,282 | 6 | 408,780 | 5 | 204,390 | osh-native-souffle |
parse.configure-coreutils | 189 | 29 | 101 | 41.1 | 45.9 | 1,653,323 | 4,764 | 12 | 1,591,962 | 7 | 795,981 | osh-native |
parse.configure-coreutils | 158 | 27 | 80 | 44.6 | 49.5 | 1,653,322 | 4,764 | 12 | 1,030,664 | 6 | 769,416 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,926 | 180 | 2 | 75,252 | 1 | 37,626 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.1 | 101,926 | 180 | 2 | 75,122 | 1 | 37,561 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 2 | 2.4 | 8.0 | 584,191 | 22,608 | 12 | 50,000 | 0 | 2,903 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.4 | 7.6 | 584,191 | 22,608 | 12 | 50,000 | 0 | 2,841 | osh-native-souffle |
ex.bashcomp-parse-help | 189 | 0 | 5 | 10.3 | 8.8 | 995,272 | 12,911 | 21 | 50,000 | 0 | 3,891 | osh-native |
ex.bashcomp-parse-help | 174 | 0 | 3 | 10.3 | 8.3 | 995,271 | 12,911 | 21 | 50,000 | 0 | 3,831 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.0 | 116,341 | 270 | 3 | 85,488 | 1 | 42,744 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 116,341 | 270 | 3 | 85,364 | 1 | 42,682 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
7 | 3 | 3 | 1.4 | dash | - |
24 | 24 | 0 | 3.1 | bash | - |
106 | 77 | 35 | 3.4 | zsh | - |
16 | 12 | 4 | 29.3 | bumpleak/osh | mut |
19 | 8 | 12 | 29.9 | _bin/cxx-opt+bumproot/osh | mut |
23 | 19 | 4 | 28.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 26 | 4 | 25.0 | osh-native | mut+alloc |
32 | 24 | 8 | 25.7 | osh-native | mut+alloc+free |
37 | 24 | 12 | 18.0 | osh-native | mut+alloc+free+gc |
38 | 25 | 13 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 30 | 13 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
50 | 27 | 23 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 19 | 8 | 24.9 | osh-native-souffle | mut+alloc |
29 | 14 | 14 | 25.3 | osh-native-souffle | mut+alloc+free |
34 | 26 | 8 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
35 | 27 | 8 | 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 | 22 | 0 | 1.4 | dash | - |
78 | 77 | 0 | 3.3 | bash | - |
382 | 215 | 187 | 3.4 | zsh | - |
47 | 35 | 12 | 85.5 | bumpleak/osh | mut |
61 | 48 | 12 | 85.4 | _bin/cxx-opt+bumproot/osh | mut |
70 | 58 | 12 | 85.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 73 | 24 | 73.4 | osh-native | mut+alloc |
106 | 63 | 43 | 75.3 | osh-native | mut+alloc+free |
189 | 161 | 28 | 45.9 | osh-native | mut+alloc+free+gc |
188 | 160 | 28 | 46.0 | osh-native | mut+alloc+free+gc+exit |
142 | 97 | 44 | 98.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
265 | 237 | 28 | 62.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 51 | 36 | 73.2 | osh-native-souffle | mut+alloc |
96 | 72 | 24 | 74.9 | osh-native-souffle | mut+alloc+free |
158 | 138 | 20 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
162 | 134 | 28 | 50.2 | 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 | 6 | 0 | 2.9 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 6 | 0 | 12.2 | bumpleak/osh | mut |
7 | 0 | 7 | 11.8 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 10.2 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 0 | 8 | 9.7 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc+free |
8 | 8 | 0 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
9 | 4 | 4 | 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 |
11 | 10 | 0 | 1.4 | dash | - |
29 | 29 | 0 | 2.9 | bash | - |
24 | 24 | 0 | 3.3 | zsh | - |
19 | 19 | 0 | 32.0 | bumpleak/osh | mut |
27 | 22 | 4 | 32.7 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 22 | 15 | 26.3 | osh-native | mut+alloc |
38 | 27 | 11 | 26.7 | osh-native | mut+alloc+free |
29 | 29 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
55 | 42 | 12 | 36.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 34 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
32 | 20 | 12 | 26.0 | osh-native-souffle | mut+alloc |
32 | 28 | 4 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 13 | 9 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 22 | 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 | 73 | 0 | 3.1 | bash | - |
169 | 109 | 60 | 54.2 | bumpleak/osh | mut |
183 | 111 | 71 | 55.3 | _bin/cxx-opt+bumproot/osh | mut |
193 | 133 | 60 | 55.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
214 | 146 | 67 | 46.9 | osh-native | mut+alloc |
221 | 140 | 80 | 48.7 | osh-native | mut+alloc+free |
189 | 133 | 56 | 8.8 | osh-native | mut+alloc+free+gc |
181 | 125 | 56 | 8.8 | osh-native | mut+alloc+free+gc+exit |
237 | 140 | 96 | 64.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 152 | 60 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
208 | 114 | 94 | 46.4 | osh-native-souffle | mut+alloc |
219 | 151 | 68 | 48.4 | osh-native-souffle | mut+alloc+free |
174 | 105 | 69 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
175 | 122 | 53 | 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 | 7 | 3 | 3.4 | dash | - |
20 | 15 | 5 | 4.3 | bash | - |
18 | 15 | 4 | 3.5 | zsh | - |
18 | 10 | 9 | 11.6 | bumpleak/osh | mut |
19 | 13 | 6 | 13.7 | _bin/cxx-opt+bumproot/osh | mut |
20 | 18 | 2 | 12.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 17 | 5 | 11.1 | osh-native | mut+alloc |
22 | 7 | 15 | 11.3 | osh-native | mut+alloc+free |
23 | 19 | 4 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 15 | 9 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 11 | 14 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 19 | 7 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 12 | 8 | 10.7 | osh-native-souffle | mut+alloc |
21 | 13 | 8 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 12 | 9 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 17 | 5 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |