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,742 | 1,282 | 6 | 409,294 | 5 | 204,647 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.4 | 476,742 | 1,282 | 6 | 408,794 | 5 | 204,397 | osh-native-souffle |
parse.configure-coreutils | 166 | 24 | 82 | 41.1 | 45.9 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 143 | 24 | 67 | 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.7 | 101,933 | 180 | 2 | 75,266 | 1 | 37,633 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.1 | 101,933 | 180 | 2 | 75,136 | 1 | 37,568 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 2 | 2.4 | 8.0 | 584,198 | 22,608 | 12 | 50,000 | 0 | 2,910 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.4 | 7.6 | 584,198 | 22,608 | 12 | 50,000 | 0 | 2,848 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 4 | 10.3 | 8.8 | 995,279 | 12,911 | 21 | 50,000 | 0 | 3,898 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 4 | 10.3 | 8.4 | 995,278 | 12,911 | 21 | 50,000 | 0 | 3,838 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.2 | 116,348 | 270 | 3 | 85,502 | 1 | 42,751 | osh-native |
ex.abuild-print-help | 22 | 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 | 3 | 3 | 1.6 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
105 | 60 | 52 | 3.3 | zsh | - |
16 | 12 | 4 | 28.9 | bumpleak/osh | mut |
20 | 12 | 8 | 28.9 | _bin/cxx-opt+bumproot/osh | mut |
23 | 15 | 8 | 29.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 18 | 11 | 25.2 | osh-native | mut+alloc |
31 | 22 | 9 | 25.7 | osh-native | mut+alloc+free |
37 | 36 | 0 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 33 | 4 | 18.2 | osh-native | mut+alloc+free+gc+exit |
44 | 35 | 8 | 32.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 45 | 4 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 15 | 12 | 24.9 | osh-native-souffle | mut+alloc |
29 | 12 | 16 | 25.4 | osh-native-souffle | mut+alloc+free |
33 | 25 | 8 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
34 | 33 | 0 | 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 | - |
78 | 74 | 4 | 3.1 | bash | - |
382 | 215 | 188 | 3.7 | zsh | - |
49 | 38 | 11 | 85.0 | bumpleak/osh | mut |
60 | 52 | 8 | 85.1 | _bin/cxx-opt+bumproot/osh | mut |
70 | 35 | 35 | 85.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 60 | 36 | 73.6 | osh-native | mut+alloc |
105 | 60 | 44 | 75.2 | osh-native | mut+alloc+free |
166 | 138 | 28 | 45.9 | osh-native | mut+alloc+free+gc |
171 | 162 | 8 | 46.0 | osh-native | mut+alloc+free+gc+exit |
139 | 95 | 44 | 97.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
242 | 214 | 28 | 60.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 51 | 35 | 73.0 | osh-native-souffle | mut+alloc |
93 | 43 | 51 | 75.0 | osh-native-souffle | mut+alloc+free |
143 | 115 | 28 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
150 | 129 | 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 | 6 | 0 | 2.9 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 6 | 0 | 11.4 | bumpleak/osh | mut |
7 | 7 | 0 | 11.1 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.1 | osh-native | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
11 | 0 | 11 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 11 | 0 | 9.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 0 | 8 | 9.8 | osh-native-souffle | mut+alloc |
9 | 3 | 6 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 9 | 0 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
9 | 9 | 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.4 | dash | - |
29 | 24 | 4 | 2.9 | bash | - |
24 | 12 | 12 | 3.3 | zsh | - |
18 | 14 | 5 | 31.6 | bumpleak/osh | mut |
26 | 22 | 4 | 32.5 | _bin/cxx-opt+bumproot/osh | mut |
28 | 20 | 8 | 33.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 20 | 16 | 26.3 | osh-native | mut+alloc |
39 | 23 | 15 | 26.9 | osh-native | mut+alloc+free |
29 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 25 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
55 | 39 | 16 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 36 | 0 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 23 | 8 | 25.7 | osh-native-souffle | mut+alloc |
32 | 24 | 8 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
23 | 23 | 0 | 7.7 | 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 | - |
168 | 104 | 64 | 54.4 | bumpleak/osh | mut |
181 | 96 | 84 | 56.4 | _bin/cxx-opt+bumproot/osh | mut |
196 | 135 | 60 | 56.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 148 | 64 | 47.1 | osh-native | mut+alloc |
221 | 148 | 72 | 48.8 | osh-native | mut+alloc+free |
182 | 133 | 48 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 119 | 63 | 8.9 | osh-native | mut+alloc+free+gc+exit |
231 | 144 | 88 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 159 | 52 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 124 | 80 | 46.6 | osh-native-souffle | mut+alloc |
210 | 121 | 89 | 48.4 | osh-native-souffle | mut+alloc+free |
175 | 134 | 41 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
176 | 116 | 60 | 8.1 | 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 | 18 | 3 | 4.3 | bash | - |
18 | 10 | 8 | 3.5 | zsh | - |
20 | 17 | 3 | 12.2 | bumpleak/osh | mut |
21 | 9 | 12 | 12.9 | _bin/cxx-opt+bumproot/osh | mut |
22 | 13 | 9 | 13.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 15 | 7 | 11.1 | osh-native | mut+alloc |
22 | 14 | 9 | 11.3 | osh-native | mut+alloc+free |
22 | 20 | 3 | 9.2 | osh-native | mut+alloc+free+gc |
23 | 16 | 8 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 16 | 8 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 14 | 11 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 16 | 6 | 10.6 | osh-native-souffle | mut+alloc |
21 | 16 | 5 | 10.6 | osh-native-souffle | mut+alloc+free |
22 | 14 | 8 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 14 | 9 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |