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.1 | 476,742 | 1,282 | 6 | 409,294 | 5 | 204,647 | osh-native |
parse.configure-cpython | 34 | 4 | 10 | 12.0 | 17.6 | 476,742 | 1,282 | 6 | 408,794 | 5 | 204,397 | osh-native-souffle |
parse.configure-coreutils | 158 | 22 | 73 | 41.1 | 45.8 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 149 | 26 | 72 | 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 | 2 | 2.6 | 8.3 | 101,933 | 180 | 2 | 75,136 | 1 | 37,568 | osh-native-souffle |
ex.compute-fib | 28 | 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.5 | 579,597 | 22,608 | 12 | 50,000 | 0 | 2,848 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 4 | 10.3 | 8.7 | 995,279 | 15,258 | 21 | 50,000 | 0 | 3,893 | osh-native |
ex.bashcomp-parse-help | 188 | 0 | 4 | 10.3 | 8.3 | 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 | 22 | 1 | 2 | 2.8 | 8.8 | 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 | - |
25 | 25 | 0 | 3.1 | bash | - |
104 | 66 | 44 | 3.4 | zsh | - |
17 | 10 | 6 | 29.4 | bumpleak/osh | mut |
19 | 15 | 4 | 29.8 | _bin/cxx-opt+bumproot/osh | mut |
23 | 23 | 0 | 28.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 26 | 4 | 25.3 | osh-native | mut+alloc |
32 | 12 | 20 | 25.6 | osh-native | mut+alloc+free |
37 | 28 | 8 | 18.1 | osh-native | mut+alloc+free+gc |
37 | 33 | 4 | 18.1 | osh-native | mut+alloc+free+gc+exit |
44 | 28 | 16 | 32.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
56 | 48 | 8 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 18 | 9 | 24.9 | osh-native-souffle | mut+alloc |
28 | 16 | 12 | 25.2 | osh-native-souffle | mut+alloc+free |
34 | 26 | 7 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
34 | 15 | 19 | 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 | 21 | 0 | 1.6 | dash | - |
78 | 74 | 4 | 3.3 | bash | - |
383 | 221 | 183 | 3.7 | zsh | - |
49 | 45 | 4 | 85.5 | bumpleak/osh | mut |
59 | 59 | 0 | 85.8 | _bin/cxx-opt+bumproot/osh | mut |
72 | 52 | 20 | 84.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 68 | 28 | 73.4 | osh-native | mut+alloc |
105 | 60 | 44 | 75.5 | osh-native | mut+alloc+free |
158 | 142 | 16 | 45.8 | osh-native | mut+alloc+free+gc |
167 | 146 | 20 | 46.1 | osh-native | mut+alloc+free+gc+exit |
139 | 71 | 67 | 99.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
249 | 213 | 35 | 61.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 37 | 49 | 73.2 | osh-native-souffle | mut+alloc |
95 | 52 | 44 | 75.0 | osh-native-souffle | mut+alloc+free |
149 | 133 | 16 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
159 | 123 | 36 | 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.8 | bash | - |
8 | 0 | 7 | 3.3 | zsh | - |
6 | 6 | 0 | 11.4 | bumpleak/osh | mut |
7 | 3 | 3 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 10.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc |
9 | 0 | 9 | 10.1 | osh-native | mut+alloc+free |
9 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc |
10 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 0 | 12 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 8 | 0 | 9.7 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 9 | 0 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
9 | 0 | 9 | 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 | 28 | 0 | 2.9 | bash | - |
24 | 20 | 4 | 3.4 | zsh | - |
19 | 11 | 7 | 32.4 | bumpleak/osh | mut |
26 | 17 | 9 | 33.1 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 31.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 26.0 | osh-native | mut+alloc |
38 | 34 | 4 | 26.1 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 25 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 41 | 12 | 35.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 19 | 11 | 25.4 | osh-native-souffle | mut+alloc |
32 | 24 | 8 | 25.8 | osh-native-souffle | mut+alloc+free |
22 | 22 | 0 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
23 | 22 | 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 | 73 | 0 | 3.3 | bash | - |
168 | 124 | 44 | 54.9 | bumpleak/osh | mut |
181 | 124 | 56 | 55.0 | _bin/cxx-opt+bumproot/osh | mut |
196 | 128 | 68 | 56.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
214 | 133 | 81 | 47.0 | osh-native | mut+alloc |
220 | 136 | 84 | 48.8 | osh-native | mut+alloc+free |
182 | 125 | 57 | 8.7 | osh-native | mut+alloc+free+gc |
182 | 150 | 32 | 8.8 | osh-native | mut+alloc+free+gc+exit |
233 | 145 | 89 | 63.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
216 | 168 | 48 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
206 | 122 | 83 | 46.6 | osh-native-souffle | mut+alloc |
214 | 141 | 73 | 48.3 | osh-native-souffle | mut+alloc+free |
188 | 124 | 64 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
176 | 127 | 48 | 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 | 12 | 9 | 4.3 | bash | - |
18 | 6 | 13 | 3.5 | zsh | - |
20 | 17 | 4 | 12.7 | bumpleak/osh | mut |
20 | 11 | 9 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
20 | 15 | 6 | 12.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 10 | 11 | 11.0 | osh-native | mut+alloc |
22 | 10 | 12 | 11.1 | osh-native | mut+alloc+free |
22 | 17 | 6 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 16 | 7 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 15 | 10 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 22 | 4 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 16 | 4 | 10.6 | osh-native-souffle | mut+alloc |
22 | 7 | 15 | 10.6 | osh-native-souffle | mut+alloc+free |
22 | 15 | 7 | 8.8 | osh-native-souffle | mut+alloc+free+gc |
23 | 11 | 12 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |