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 | 10 | 12.1 | 18.0 | 476,742 | 1,282 | 6 | 409,294 | 5 | 204,647 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.7 | 476,742 | 1,282 | 6 | 408,794 | 5 | 204,397 | osh-native-souffle |
parse.configure-coreutils | 155 | 20 | 71 | 41.1 | 45.8 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 139 | 24 | 58 | 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 | 8 | 1 | 1 | 2.6 | 8.3 | 101,933 | 180 | 2 | 75,136 | 1 | 37,568 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 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 | 181 | 0 | 4 | 10.3 | 8.8 | 995,279 | 12,911 | 21 | 50,000 | 0 | 3,898 | osh-native |
ex.bashcomp-parse-help | 179 | 0 | 3 | 10.3 | 8.1 | 995,278 | 12,911 | 21 | 50,000 | 0 | 3,838 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,348 | 270 | 3 | 85,502 | 1 | 42,751 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 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 | 19 | 4 | 2.9 | bash | - |
104 | 78 | 32 | 3.4 | zsh | - |
16 | 8 | 8 | 28.4 | bumpleak/osh | mut |
19 | 12 | 8 | 28.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 30.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 18 | 11 | 25.2 | osh-native | mut+alloc |
30 | 9 | 22 | 25.7 | osh-native | mut+alloc+free |
35 | 27 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 28 | 8 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 19 | 23 | 32.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
46 | 30 | 15 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 11 | 15 | 24.9 | osh-native-souffle | mut+alloc |
28 | 16 | 12 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 28 | 4 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
33 | 29 | 4 | 17.8 | 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 | - |
87 | 87 | 0 | 3.1 | bash | - |
378 | 206 | 193 | 3.7 | zsh | - |
48 | 36 | 12 | 84.3 | bumpleak/osh | mut |
60 | 48 | 12 | 86.1 | _bin/cxx-opt+bumproot/osh | mut |
69 | 57 | 12 | 86.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 49 | 49 | 73.5 | osh-native | mut+alloc |
105 | 81 | 24 | 75.4 | osh-native | mut+alloc+free |
155 | 135 | 20 | 45.8 | osh-native | mut+alloc+free+gc |
157 | 133 | 24 | 46.0 | osh-native | mut+alloc+free+gc+exit |
137 | 84 | 52 | 98.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
212 | 187 | 24 | 60.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 48 | 40 | 73.2 | osh-native-souffle | mut+alloc |
98 | 77 | 20 | 75.1 | osh-native-souffle | mut+alloc+free |
139 | 122 | 16 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
138 | 134 | 4 | 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.3 | dash | - |
6 | 3 | 3 | 2.9 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 6 | 0 | 11.7 | bumpleak/osh | mut |
6 | 3 | 3 | 12.8 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 11.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.2 | osh-native | mut+alloc |
9 | 4 | 4 | 10.2 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 11 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 11 | 0 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
7 | 7 | 0 | 9.8 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc+free |
8 | 4 | 4 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
8 | 4 | 4 | 8.4 | 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 | 25 | 4 | 2.9 | bash | - |
24 | 16 | 8 | 3.3 | zsh | - |
18 | 18 | 0 | 30.8 | bumpleak/osh | mut |
26 | 18 | 7 | 32.9 | _bin/cxx-opt+bumproot/osh | mut |
28 | 20 | 8 | 33.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 26.2 | osh-native | mut+alloc |
38 | 25 | 13 | 26.7 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 35 | 19 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
36 | 32 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 15 | 15 | 26.0 | osh-native-souffle | mut+alloc |
31 | 16 | 16 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 22 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 18 | 4 | 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 |
73 | 65 | 8 | 3.1 | bash | - |
169 | 133 | 36 | 54.1 | bumpleak/osh | mut |
178 | 109 | 69 | 54.8 | _bin/cxx-opt+bumproot/osh | mut |
194 | 137 | 56 | 56.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
209 | 122 | 87 | 47.1 | osh-native | mut+alloc |
216 | 116 | 100 | 48.8 | osh-native | mut+alloc+free |
181 | 128 | 52 | 8.8 | osh-native | mut+alloc+free+gc |
181 | 141 | 40 | 8.7 | osh-native | mut+alloc+free+gc+exit |
232 | 148 | 84 | 64.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 152 | 56 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 144 | 60 | 46.6 | osh-native-souffle | mut+alloc |
210 | 117 | 93 | 48.4 | osh-native-souffle | mut+alloc+free |
179 | 87 | 91 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
173 | 132 | 40 | 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 | 4 | 6 | 3.3 | dash | - |
20 | 18 | 2 | 4.5 | bash | - |
18 | 11 | 7 | 3.4 | zsh | - |
18 | 12 | 6 | 11.6 | bumpleak/osh | mut |
19 | 12 | 7 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
21 | 16 | 5 | 13.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 14 | 7 | 11.0 | osh-native | mut+alloc |
22 | 12 | 11 | 11.1 | osh-native | mut+alloc+free |
22 | 20 | 2 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 12 | 11 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 16 | 8 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 17 | 7 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
19 | 14 | 6 | 10.6 | osh-native-souffle | mut+alloc |
21 | 11 | 10 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 17 | 4 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 18 | 4 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |