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 | 3 | 9 | 12.1 | 18.0 | 476,742 | 1,282 | 6 | 409,294 | 5 | 204,647 | osh-native |
parse.configure-cpython | 34 | 4 | 11 | 12.0 | 17.6 | 476,742 | 1,282 | 6 | 408,794 | 5 | 204,397 | osh-native-souffle |
parse.configure-coreutils | 170 | 28 | 84 | 41.1 | 45.9 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 150 | 26 | 73 | 44.6 | 49.7 | 1,653,329 | 4,764 | 12 | 1,030,678 | 6 | 769,423 | osh-native-souffle |
parse.abuild | 10 | 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.3 | 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 | 23 | 0 | 2 | 2.1 | 7.5 | 579,597 | 22,608 | 12 | 50,000 | 0 | 2,848 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 4 | 10.3 | 8.8 | 995,279 | 15,258 | 21 | 50,000 | 0 | 3,893 | osh-native |
ex.bashcomp-parse-help | 178 | 0 | 4 | 10.3 | 8.1 | 995,278 | 15,258 | 21 | 50,000 | 0 | 3,838 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,309 | 277 | 3 | 85,502 | 1 | 42,751 | osh-native |
ex.abuild-print-help | 22 | 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 |
7 | 6 | 0 | 1.4 | dash | - |
23 | 19 | 4 | 2.9 | bash | - |
107 | 59 | 54 | 3.4 | zsh | - |
16 | 8 | 8 | 28.4 | bumpleak/osh | mut |
20 | 12 | 8 | 28.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 22 | 0 | 29.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 26 | 4 | 25.2 | osh-native | mut+alloc |
32 | 20 | 12 | 25.6 | osh-native | mut+alloc+free |
36 | 31 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 24 | 12 | 18.2 | osh-native | mut+alloc+free+gc+exit |
44 | 32 | 12 | 31.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
51 | 35 | 16 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 19 | 8 | 24.9 | osh-native-souffle | mut+alloc |
29 | 18 | 11 | 25.3 | osh-native-souffle | mut+alloc+free |
34 | 26 | 8 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
35 | 30 | 4 | 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 | 17 | 4 | 1.4 | dash | - |
78 | 77 | 0 | 3.0 | bash | - |
379 | 200 | 200 | 3.5 | zsh | - |
50 | 37 | 12 | 84.0 | bumpleak/osh | mut |
59 | 51 | 8 | 85.8 | _bin/cxx-opt+bumproot/osh | mut |
71 | 41 | 29 | 85.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 58 | 39 | 73.4 | osh-native | mut+alloc |
106 | 73 | 32 | 75.4 | osh-native | mut+alloc+free |
170 | 158 | 12 | 45.9 | osh-native | mut+alloc+free+gc |
176 | 156 | 20 | 46.0 | osh-native | mut+alloc+free+gc+exit |
137 | 78 | 58 | 97.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
242 | 214 | 28 | 61.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 44 | 44 | 73.2 | osh-native-souffle | mut+alloc |
95 | 65 | 29 | 75.0 | osh-native-souffle | mut+alloc+free |
150 | 121 | 28 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
153 | 128 | 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.4 | dash | - |
6 | 6 | 0 | 3.0 | bash | - |
8 | 0 | 7 | 3.3 | zsh | - |
7 | 3 | 3 | 11.4 | bumpleak/osh | mut |
6 | 6 | 0 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 8 | 0 | 10.1 | osh-native | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
10 | 10 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.3 | _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 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 3 | 6 | 8.3 | 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 |
10 | 10 | 0 | 1.4 | dash | - |
29 | 24 | 4 | 2.9 | bash | - |
24 | 20 | 4 | 3.1 | zsh | - |
18 | 9 | 9 | 31.9 | bumpleak/osh | mut |
25 | 22 | 4 | 31.5 | _bin/cxx-opt+bumproot/osh | mut |
28 | 21 | 7 | 31.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 28 | 8 | 26.0 | osh-native | mut+alloc |
38 | 29 | 8 | 26.1 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 8.1 | osh-native | mut+alloc+free+gc+exit |
55 | 29 | 25 | 35.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 30 | 8 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 15 | 15 | 25.6 | osh-native-souffle | mut+alloc |
32 | 32 | 0 | 25.8 | osh-native-souffle | mut+alloc+free |
23 | 23 | 0 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 22 | 0 | 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 |
74 | 62 | 12 | 3.1 | bash | - |
169 | 118 | 51 | 53.9 | bumpleak/osh | mut |
182 | 111 | 71 | 56.3 | _bin/cxx-opt+bumproot/osh | mut |
195 | 143 | 52 | 57.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 154 | 59 | 47.1 | osh-native | mut+alloc |
223 | 151 | 72 | 48.8 | osh-native | mut+alloc+free |
182 | 133 | 48 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 127 | 55 | 8.8 | osh-native | mut+alloc+free+gc+exit |
236 | 172 | 64 | 63.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
213 | 177 | 36 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
206 | 142 | 65 | 46.6 | osh-native-souffle | mut+alloc |
216 | 160 | 56 | 48.3 | osh-native-souffle | mut+alloc+free |
178 | 125 | 53 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
178 | 130 | 47 | 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 | 9 | 1 | 3.5 | dash | - |
20 | 17 | 3 | 4.3 | bash | - |
18 | 7 | 12 | 3.5 | zsh | - |
20 | 17 | 3 | 12.2 | bumpleak/osh | mut |
21 | 20 | 2 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
21 | 5 | 16 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 15 | 7 | 11.0 | osh-native | mut+alloc |
23 | 12 | 11 | 11.1 | osh-native | mut+alloc+free |
22 | 15 | 7 | 9.0 | osh-native | mut+alloc+free+gc |
24 | 19 | 5 | 9.2 | osh-native | mut+alloc+free+gc+exit |
25 | 14 | 12 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 24 | 2 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
21 | 6 | 16 | 10.5 | osh-native-souffle | mut+alloc |
22 | 5 | 17 | 10.7 | osh-native-souffle | mut+alloc+free |
22 | 14 | 8 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 14 | 8 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |