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 | 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.7 | 476,742 | 1,282 | 6 | 408,794 | 5 | 204,397 | osh-native-souffle |
parse.configure-coreutils | 153 | 20 | 69 | 41.1 | 45.8 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 136 | 22 | 61 | 44.6 | 49.8 | 1,653,329 | 4,764 | 12 | 1,030,678 | 6 | 769,423 | osh-native-souffle |
parse.abuild | 8 | 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.1 | 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 | 2 | 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.7 | 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 | 8.9 | 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 | - |
23 | 23 | 0 | 3.0 | bash | - |
105 | 72 | 39 | 3.3 | zsh | - |
16 | 16 | 0 | 28.3 | bumpleak/osh | mut |
20 | 20 | 0 | 28.8 | _bin/cxx-opt+bumproot/osh | mut |
22 | 22 | 0 | 29.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 7 | 21 | 25.2 | osh-native | mut+alloc |
31 | 19 | 11 | 25.6 | osh-native | mut+alloc+free |
36 | 32 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 36 | 0 | 18.2 | osh-native | mut+alloc+free+gc+exit |
42 | 17 | 25 | 32.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
46 | 33 | 12 | 22.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 17 | 9 | 24.8 | osh-native-souffle | mut+alloc |
28 | 24 | 4 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 32 | 0 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
33 | 18 | 15 | 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 |
21 | 21 | 0 | 1.6 | dash | - |
78 | 74 | 4 | 3.1 | bash | - |
372 | 219 | 174 | 3.4 | zsh | - |
48 | 44 | 4 | 84.2 | bumpleak/osh | mut |
60 | 60 | 0 | 85.2 | _bin/cxx-opt+bumproot/osh | mut |
70 | 58 | 12 | 87.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
95 | 50 | 46 | 73.6 | osh-native | mut+alloc |
103 | 79 | 24 | 75.4 | osh-native | mut+alloc+free |
153 | 125 | 28 | 45.8 | osh-native | mut+alloc+free+gc |
155 | 138 | 16 | 46.0 | osh-native | mut+alloc+free+gc+exit |
137 | 110 | 27 | 98.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 174 | 36 | 62.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
85 | 65 | 20 | 73.0 | osh-native-souffle | mut+alloc |
93 | 58 | 35 | 74.9 | osh-native-souffle | mut+alloc+free |
136 | 96 | 40 | 49.8 | osh-native-souffle | mut+alloc+free+gc |
143 | 123 | 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 | - |
7 | 4 | 4 | 3.3 | zsh | - |
6 | 6 | 0 | 11.7 | bumpleak/osh | mut |
6 | 6 | 0 | 10.8 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.0 | osh-native | mut+alloc |
8 | 8 | 0 | 10.2 | osh-native | mut+alloc+free |
8 | 4 | 4 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 4 | 4 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _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.7 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 4 | 4 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
8 | 8 | 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 | 7 | 3 | 1.4 | dash | - |
29 | 24 | 4 | 2.9 | bash | - |
23 | 23 | 0 | 3.4 | zsh | - |
18 | 18 | 0 | 32.2 | bumpleak/osh | mut |
25 | 22 | 4 | 32.8 | _bin/cxx-opt+bumproot/osh | mut |
27 | 23 | 4 | 32.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 26 | 11 | 26.2 | osh-native | mut+alloc |
37 | 24 | 12 | 26.5 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
53 | 41 | 11 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
36 | 36 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 29 | 0 | 25.7 | osh-native-souffle | mut+alloc |
31 | 22 | 9 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 21 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
23 | 23 | 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 | 70 | 4 | 3.0 | bash | - |
166 | 115 | 51 | 55.8 | bumpleak/osh | mut |
176 | 112 | 64 | 55.7 | _bin/cxx-opt+bumproot/osh | mut |
193 | 101 | 92 | 56.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 129 | 81 | 47.1 | osh-native | mut+alloc |
216 | 143 | 72 | 48.8 | osh-native | mut+alloc+free |
181 | 117 | 64 | 8.7 | osh-native | mut+alloc+free+gc |
182 | 130 | 51 | 8.8 | osh-native | mut+alloc+free+gc+exit |
228 | 156 | 72 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
207 | 159 | 48 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
203 | 100 | 104 | 46.6 | osh-native-souffle | mut+alloc |
208 | 104 | 104 | 48.3 | osh-native-souffle | mut+alloc+free |
175 | 123 | 52 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
177 | 125 | 52 | 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 |
9 | 7 | 3 | 3.5 | dash | - |
19 | 6 | 13 | 4.3 | bash | - |
17 | 11 | 7 | 3.4 | zsh | - |
19 | 13 | 7 | 13.0 | bumpleak/osh | mut |
20 | 11 | 8 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
20 | 8 | 13 | 13.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 18 | 3 | 11.1 | osh-native | mut+alloc |
22 | 13 | 9 | 11.1 | osh-native | mut+alloc+free |
22 | 21 | 2 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 12 | 11 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 15 | 10 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 19 | 6 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
19 | 19 | 1 | 10.7 | osh-native-souffle | mut+alloc |
21 | 17 | 5 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 12 | 9 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 11 | 10 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |