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 | 38 | 4 | 11 | 12.1 | 18.0 | 476,745 | 1,282 | 6 | 409,294 | 5 | 204,647 | osh-native |
parse.configure-cpython | 34 | 4 | 10 | 12.0 | 17.6 | 476,745 | 1,282 | 6 | 408,794 | 5 | 204,397 | osh-native-souffle |
parse.configure-coreutils | 181 | 29 | 95 | 41.1 | 45.9 | 1,653,333 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 158 | 27 | 79 | 44.6 | 49.6 | 1,653,332 | 4,764 | 12 | 1,030,678 | 6 | 769,423 | osh-native-souffle |
parse.abuild | 10 | 1 | 1 | 2.6 | 8.5 | 101,936 | 180 | 2 | 75,266 | 1 | 37,633 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.3 | 101,936 | 180 | 2 | 75,136 | 1 | 37,568 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.4 | 8.0 | 584,201 | 22,608 | 12 | 50,000 | 0 | 2,910 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.4 | 7.7 | 584,201 | 22,608 | 12 | 50,000 | 0 | 2,848 | osh-native-souffle |
ex.bashcomp-parse-help | 183 | 0 | 4 | 10.3 | 8.7 | 995,282 | 12,911 | 21 | 50,000 | 0 | 3,898 | osh-native |
ex.bashcomp-parse-help | 176 | 0 | 4 | 10.3 | 8.3 | 995,281 | 12,911 | 21 | 50,000 | 0 | 3,838 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.9 | 116,351 | 270 | 3 | 85,502 | 1 | 42,751 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.7 | 116,351 | 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.4 | dash | - |
23 | 19 | 4 | 2.9 | bash | - |
105 | 68 | 44 | 3.4 | zsh | - |
16 | 16 | 0 | 28.6 | bumpleak/osh | mut |
20 | 20 | 0 | 28.8 | _bin/cxx-opt+bumproot/osh | mut |
22 | 17 | 4 | 29.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 25 | 4 | 25.2 | osh-native | mut+alloc |
32 | 20 | 12 | 25.7 | osh-native | mut+alloc+free |
38 | 29 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
38 | 27 | 11 | 18.2 | osh-native | mut+alloc+free+gc+exit |
43 | 19 | 23 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
53 | 41 | 12 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 19 | 8 | 24.8 | osh-native-souffle | mut+alloc |
30 | 30 | 0 | 25.2 | osh-native-souffle | mut+alloc+free |
34 | 25 | 8 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
35 | 27 | 8 | 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 | 18 | 4 | 1.6 | dash | - |
78 | 78 | 0 | 3.3 | bash | - |
378 | 211 | 189 | 3.5 | zsh | - |
49 | 37 | 12 | 85.0 | bumpleak/osh | mut |
61 | 56 | 4 | 86.2 | _bin/cxx-opt+bumproot/osh | mut |
70 | 47 | 23 | 85.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 65 | 32 | 73.4 | osh-native | mut+alloc |
106 | 93 | 12 | 75.3 | osh-native | mut+alloc+free |
181 | 172 | 8 | 45.9 | osh-native | mut+alloc+free+gc |
187 | 162 | 24 | 46.1 | osh-native | mut+alloc+free+gc+exit |
139 | 95 | 44 | 98.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
257 | 221 | 36 | 61.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
90 | 61 | 29 | 73.2 | osh-native-souffle | mut+alloc |
97 | 69 | 27 | 74.9 | osh-native-souffle | mut+alloc+free |
158 | 126 | 31 | 49.6 | osh-native-souffle | mut+alloc+free+gc |
164 | 147 | 16 | 50.4 | 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 | 4 | 4 | 3.3 | zsh | - |
6 | 6 | 0 | 11.3 | bumpleak/osh | mut |
7 | 7 | 0 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
7 | 0 | 7 | 11.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.2 | osh-native | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
10 | 10 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.4 | _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.7 | osh-native-souffle | mut+alloc+free |
8 | 8 | 0 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
9 | 9 | 0 | 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 | 7 | 3 | 1.4 | dash | - |
28 | 25 | 4 | 2.9 | bash | - |
24 | 12 | 12 | 3.3 | zsh | - |
19 | 15 | 4 | 32.6 | bumpleak/osh | mut |
26 | 13 | 13 | 31.3 | _bin/cxx-opt+bumproot/osh | mut |
28 | 16 | 12 | 32.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 29 | 8 | 26.3 | osh-native | mut+alloc |
39 | 16 | 24 | 26.6 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 35 | 19 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 19 | 11 | 26.0 | osh-native-souffle | mut+alloc |
32 | 32 | 0 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.7 | osh-native-souffle | mut+alloc+free+gc |
23 | 23 | 0 | 7.6 | 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 |
75 | 74 | 0 | 3.1 | bash | - |
169 | 106 | 63 | 54.0 | bumpleak/osh | mut |
183 | 107 | 75 | 55.8 | _bin/cxx-opt+bumproot/osh | mut |
197 | 136 | 60 | 56.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 139 | 72 | 47.1 | osh-native | mut+alloc |
220 | 172 | 48 | 48.8 | osh-native | mut+alloc+free |
183 | 130 | 53 | 8.7 | osh-native | mut+alloc+free+gc |
182 | 130 | 51 | 8.8 | osh-native | mut+alloc+free+gc+exit |
234 | 146 | 87 | 64.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
212 | 148 | 64 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
209 | 152 | 56 | 46.6 | osh-native-souffle | mut+alloc |
215 | 135 | 80 | 48.3 | osh-native-souffle | mut+alloc+free |
176 | 133 | 43 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
176 | 108 | 68 | 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.4 | dash | - |
20 | 16 | 4 | 4.5 | bash | - |
18 | 16 | 3 | 3.5 | zsh | - |
18 | 15 | 4 | 11.4 | bumpleak/osh | mut |
22 | 13 | 10 | 13.4 | _bin/cxx-opt+bumproot/osh | mut |
20 | 15 | 6 | 11.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 15 | 7 | 11.1 | osh-native | mut+alloc |
22 | 13 | 10 | 11.0 | osh-native | mut+alloc+free |
23 | 12 | 12 | 8.9 | osh-native | mut+alloc+free+gc |
24 | 16 | 9 | 9.3 | osh-native | mut+alloc+free+gc+exit |
26 | 19 | 6 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 19 | 8 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 11 | 10 | 10.7 | osh-native-souffle | mut+alloc |
22 | 19 | 3 | 10.6 | osh-native-souffle | mut+alloc+free |
22 | 20 | 2 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 17 | 5 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |