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 | 5 | 11 | 12.1 | 17.8 | 476,742 | 1,282 | 6 | 409,294 | 5 | 204,647 | osh-native |
parse.configure-cpython | 33 | 3 | 9 | 12.0 | 17.7 | 476,742 | 1,282 | 6 | 408,794 | 5 | 204,397 | osh-native-souffle |
parse.configure-coreutils | 174 | 27 | 88 | 41.1 | 45.9 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 156 | 26 | 77 | 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.5 | 101,933 | 180 | 2 | 75,266 | 1 | 37,633 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.3 | 101,933 | 180 | 2 | 75,136 | 1 | 37,568 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 2 | 2.4 | 7.9 | 584,198 | 22,608 | 12 | 50,000 | 0 | 2,910 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.4 | 7.6 | 584,198 | 22,608 | 12 | 50,000 | 0 | 2,848 | osh-native-souffle |
ex.bashcomp-parse-help | 185 | 0 | 4 | 10.3 | 8.5 | 995,279 | 12,911 | 21 | 50,000 | 0 | 3,898 | osh-native |
ex.bashcomp-parse-help | 177 | 0 | 4 | 10.3 | 8.1 | 995,278 | 12,911 | 21 | 50,000 | 0 | 3,838 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 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.4 | dash | - |
24 | 24 | 0 | 2.9 | bash | - |
106 | 57 | 56 | 3.4 | zsh | - |
16 | 12 | 4 | 28.9 | bumpleak/osh | mut |
19 | 12 | 8 | 29.7 | _bin/cxx-opt+bumproot/osh | mut |
22 | 13 | 9 | 30.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 22 | 7 | 25.0 | osh-native | mut+alloc |
32 | 24 | 8 | 25.6 | osh-native | mut+alloc+free |
38 | 30 | 8 | 17.8 | osh-native | mut+alloc+free+gc |
39 | 34 | 4 | 18.1 | osh-native | mut+alloc+free+gc+exit |
44 | 24 | 20 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
55 | 51 | 4 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
28 | 16 | 12 | 24.8 | osh-native-souffle | mut+alloc |
29 | 17 | 12 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 29 | 4 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
36 | 36 | 0 | 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 |
22 | 18 | 4 | 1.6 | dash | - |
77 | 73 | 4 | 3.1 | bash | - |
381 | 232 | 171 | 3.5 | zsh | - |
49 | 41 | 8 | 85.0 | bumpleak/osh | mut |
61 | 49 | 12 | 85.2 | _bin/cxx-opt+bumproot/osh | mut |
69 | 61 | 8 | 85.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 67 | 32 | 73.4 | osh-native | mut+alloc |
106 | 77 | 28 | 75.4 | osh-native | mut+alloc+free |
174 | 158 | 16 | 45.9 | osh-native | mut+alloc+free+gc |
182 | 166 | 16 | 46.1 | osh-native | mut+alloc+free+gc+exit |
138 | 93 | 44 | 97.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
254 | 230 | 24 | 61.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 68 | 20 | 73.2 | osh-native-souffle | mut+alloc |
96 | 56 | 40 | 74.9 | osh-native-souffle | mut+alloc+free |
156 | 140 | 16 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
156 | 144 | 12 | 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 | 3 | 3 | 11.4 | bumpleak/osh | mut |
7 | 7 | 0 | 11.5 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 10.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc |
9 | 6 | 3 | 10.1 | osh-native | mut+alloc+free |
9 | 3 | 6 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.6 | osh-native-souffle | mut+alloc+free |
9 | 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 |
11 | 11 | 0 | 1.6 | dash | - |
29 | 29 | 0 | 2.9 | bash | - |
24 | 12 | 12 | 3.3 | zsh | - |
19 | 19 | 0 | 32.0 | bumpleak/osh | mut |
26 | 21 | 4 | 32.3 | _bin/cxx-opt+bumproot/osh | mut |
29 | 28 | 0 | 31.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 24 | 12 | 26.3 | osh-native | mut+alloc |
39 | 34 | 4 | 26.6 | osh-native | mut+alloc+free |
29 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 21 | 7 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 39 | 15 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 37 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
36 | 20 | 16 | 26.1 | osh-native-souffle | mut+alloc |
32 | 20 | 12 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 22 | 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 |
73 | 72 | 0 | 3.3 | bash | - |
167 | 115 | 51 | 54.3 | bumpleak/osh | mut |
181 | 133 | 48 | 54.9 | _bin/cxx-opt+bumproot/osh | mut |
197 | 133 | 64 | 56.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
215 | 155 | 60 | 47.0 | osh-native | mut+alloc |
227 | 186 | 40 | 48.8 | osh-native | mut+alloc+free |
185 | 116 | 68 | 8.5 | osh-native | mut+alloc+free+gc |
184 | 152 | 32 | 8.8 | osh-native | mut+alloc+free+gc+exit |
235 | 167 | 68 | 62.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
212 | 140 | 72 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
206 | 147 | 59 | 46.6 | osh-native-souffle | mut+alloc |
213 | 120 | 92 | 48.4 | osh-native-souffle | mut+alloc+free |
177 | 133 | 44 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
177 | 100 | 76 | 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 | 9 | 2 | 3.4 | dash | - |
20 | 13 | 7 | 4.3 | bash | - |
18 | 12 | 6 | 3.5 | zsh | - |
18 | 14 | 5 | 13.2 | bumpleak/osh | mut |
19 | 16 | 3 | 13.8 | _bin/cxx-opt+bumproot/osh | mut |
22 | 16 | 7 | 13.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 10 | 12 | 11.0 | osh-native | mut+alloc |
23 | 12 | 12 | 11.1 | osh-native | mut+alloc+free |
22 | 11 | 12 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 11 | 13 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 19 | 6 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 20 | 6 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 11 | 9 | 10.7 | osh-native-souffle | mut+alloc |
22 | 14 | 8 | 10.6 | osh-native-souffle | mut+alloc+free |
21 | 14 | 8 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 13 | 10 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |