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 | 34 | 4 | 11 | 12.0 | 17.6 | 476,742 | 1,282 | 6 | 408,794 | 5 | 204,397 | osh-native-souffle |
parse.configure-coreutils | 157 | 21 | 72 | 41.1 | 45.8 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 150 | 26 | 73 | 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.7 | 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 | 33 | 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 | 183 | 0 | 4 | 10.3 | 8.8 | 995,279 | 15,258 | 21 | 50,000 | 0 | 3,893 | osh-native |
ex.bashcomp-parse-help | 175 | 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 | 21 | 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 |
6 | 6 | 0 | 1.6 | dash | - |
23 | 23 | 0 | 3.1 | bash | - |
104 | 53 | 57 | 3.4 | zsh | - |
17 | 17 | 0 | 29.9 | bumpleak/osh | mut |
19 | 15 | 4 | 29.1 | _bin/cxx-opt+bumproot/osh | mut |
22 | 19 | 4 | 28.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 21 | 8 | 25.3 | osh-native | mut+alloc |
32 | 12 | 20 | 25.6 | osh-native | mut+alloc+free |
37 | 36 | 0 | 18.0 | osh-native | mut+alloc+free+gc |
38 | 29 | 8 | 18.1 | osh-native | mut+alloc+free+gc+exit |
44 | 28 | 16 | 33.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 33 | 16 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 17 | 9 | 24.8 | osh-native-souffle | mut+alloc |
28 | 16 | 12 | 25.2 | osh-native-souffle | mut+alloc+free |
34 | 30 | 4 | 17.6 | 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 | - |
377 | 198 | 201 | 3.4 | zsh | - |
50 | 46 | 4 | 85.0 | bumpleak/osh | mut |
59 | 47 | 12 | 86.2 | _bin/cxx-opt+bumproot/osh | mut |
70 | 39 | 31 | 86.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 73 | 24 | 73.4 | osh-native | mut+alloc |
107 | 61 | 45 | 75.3 | osh-native | mut+alloc+free |
157 | 125 | 32 | 45.8 | osh-native | mut+alloc+free+gc |
163 | 147 | 16 | 46.1 | osh-native | mut+alloc+free+gc+exit |
139 | 86 | 53 | 99.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
220 | 199 | 20 | 61.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 52 | 36 | 73.0 | osh-native-souffle | mut+alloc |
96 | 64 | 32 | 74.8 | osh-native-souffle | mut+alloc+free |
150 | 114 | 35 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
150 | 126 | 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 | 3 | 3 | 2.9 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 6 | 0 | 11.9 | bumpleak/osh | mut |
7 | 3 | 3 | 11.3 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.1 | osh-native | mut+alloc |
9 | 8 | 0 | 10.2 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc |
9 | 3 | 6 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 12 | 0 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 11 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc |
8 | 0 | 8 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 4 | 4 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
9 | 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.6 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
23 | 16 | 8 | 3.3 | zsh | - |
19 | 19 | 0 | 31.7 | bumpleak/osh | mut |
25 | 22 | 4 | 32.2 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 33.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 26.0 | osh-native | mut+alloc |
38 | 25 | 12 | 26.2 | osh-native | mut+alloc+free |
33 | 32 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 42 | 11 | 35.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 29 | 8 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 21 | 8 | 25.6 | osh-native-souffle | mut+alloc |
31 | 23 | 8 | 25.8 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 14 | 7 | 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 | 73 | 0 | 3.1 | bash | - |
167 | 126 | 41 | 54.3 | bumpleak/osh | mut |
183 | 119 | 64 | 56.1 | _bin/cxx-opt+bumproot/osh | mut |
194 | 119 | 75 | 57.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 140 | 72 | 47.1 | osh-native | mut+alloc |
220 | 134 | 85 | 48.8 | osh-native | mut+alloc+free |
183 | 131 | 51 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 118 | 63 | 8.8 | osh-native | mut+alloc+free+gc+exit |
235 | 132 | 104 | 64.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 162 | 49 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
206 | 125 | 81 | 46.6 | osh-native-souffle | mut+alloc |
213 | 125 | 88 | 48.3 | osh-native-souffle | mut+alloc+free |
175 | 123 | 52 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
176 | 108 | 68 | 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 | 9 | 1 | 3.3 | dash | - |
20 | 18 | 2 | 4.3 | bash | - |
18 | 16 | 2 | 3.5 | zsh | - |
18 | 10 | 8 | 11.7 | bumpleak/osh | mut |
21 | 16 | 5 | 13.5 | _bin/cxx-opt+bumproot/osh | mut |
21 | 16 | 5 | 14.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 16 | 5 | 10.9 | osh-native | mut+alloc |
22 | 15 | 8 | 11.1 | osh-native | mut+alloc+free |
22 | 20 | 3 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 18 | 5 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 20 | 5 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 17 | 8 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 16 | 4 | 10.6 | osh-native-souffle | mut+alloc |
21 | 13 | 9 | 10.9 | osh-native-souffle | mut+alloc+free |
21 | 19 | 3 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 10 | 12 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |