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.4 | 476,742 | 1,282 | 6 | 408,794 | 5 | 204,397 | osh-native-souffle |
parse.configure-coreutils | 176 | 25 | 90 | 41.1 | 45.9 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 143 | 25 | 67 | 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.0 | 101,933 | 180 | 2 | 75,136 | 1 | 37,568 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.4 | 7.9 | 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 | 182 | 0 | 4 | 10.3 | 8.8 | 995,279 | 12,911 | 21 | 50,000 | 0 | 3,898 | osh-native |
ex.bashcomp-parse-help | 178 | 0 | 4 | 10.3 | 8.3 | 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.6 | dash | - |
24 | 23 | 0 | 3.1 | bash | - |
104 | 51 | 60 | 3.4 | zsh | - |
16 | 11 | 5 | 27.9 | bumpleak/osh | mut |
20 | 16 | 4 | 30.3 | _bin/cxx-opt+bumproot/osh | mut |
24 | 19 | 4 | 29.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 21 | 8 | 25.3 | osh-native | mut+alloc |
31 | 19 | 12 | 25.6 | osh-native | mut+alloc+free |
36 | 36 | 0 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 25 | 11 | 18.2 | osh-native | mut+alloc+free+gc+exit |
43 | 34 | 9 | 32.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 40 | 8 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 18 | 9 | 24.9 | osh-native-souffle | mut+alloc |
29 | 16 | 12 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 29 | 4 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
34 | 22 | 11 | 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 | 21 | 0 | 1.6 | dash | - |
78 | 77 | 0 | 3.0 | bash | - |
377 | 193 | 205 | 3.4 | zsh | - |
49 | 49 | 0 | 84.9 | bumpleak/osh | mut |
63 | 46 | 17 | 84.7 | _bin/cxx-opt+bumproot/osh | mut |
70 | 61 | 8 | 85.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 60 | 36 | 73.6 | osh-native | mut+alloc |
105 | 72 | 32 | 75.3 | osh-native | mut+alloc+free |
176 | 171 | 4 | 45.9 | osh-native | mut+alloc+free+gc |
177 | 165 | 12 | 46.0 | osh-native | mut+alloc+free+gc+exit |
139 | 87 | 51 | 97.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
237 | 209 | 28 | 61.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 51 | 35 | 73.0 | osh-native-souffle | mut+alloc |
95 | 63 | 31 | 75.0 | osh-native-souffle | mut+alloc+free |
143 | 123 | 20 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
146 | 122 | 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.1 | zsh | - |
5 | 5 | 0 | 11.7 | bumpleak/osh | mut |
6 | 6 | 0 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 3 | 6 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 11 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 8 | 0 | 9.6 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 4 | 4 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
9 | 4 | 4 | 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 | 10 | 0 | 1.4 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
24 | 24 | 0 | 3.1 | zsh | - |
19 | 18 | 0 | 31.8 | bumpleak/osh | mut |
25 | 22 | 4 | 31.7 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 31.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.5 | osh-native | mut+alloc |
38 | 29 | 8 | 26.7 | osh-native | mut+alloc+free |
28 | 21 | 7 | 7.9 | osh-native | mut+alloc+free+gc |
29 | 18 | 11 | 8.1 | osh-native | mut+alloc+free+gc+exit |
53 | 42 | 11 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 23 | 8 | 26.0 | osh-native-souffle | mut+alloc |
32 | 16 | 16 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 15 | 7 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 22 | 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 | 66 | 8 | 3.1 | bash | - |
168 | 104 | 64 | 55.1 | bumpleak/osh | mut |
180 | 132 | 48 | 54.6 | _bin/cxx-opt+bumproot/osh | mut |
195 | 127 | 67 | 56.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 140 | 72 | 47.0 | osh-native | mut+alloc |
218 | 161 | 56 | 48.7 | osh-native | mut+alloc+free |
182 | 138 | 43 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 117 | 65 | 8.8 | osh-native | mut+alloc+free+gc+exit |
234 | 166 | 69 | 62.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 125 | 85 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 116 | 88 | 46.6 | osh-native-souffle | mut+alloc |
211 | 135 | 75 | 48.4 | osh-native-souffle | mut+alloc+free |
178 | 119 | 59 | 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 | 9 | 2 | 3.5 | dash | - |
19 | 17 | 3 | 4.3 | bash | - |
18 | 11 | 8 | 3.4 | zsh | - |
18 | 7 | 11 | 13.3 | bumpleak/osh | mut |
19 | 11 | 8 | 13.9 | _bin/cxx-opt+bumproot/osh | mut |
22 | 13 | 9 | 13.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 10 | 12 | 10.9 | osh-native | mut+alloc |
22 | 20 | 3 | 11.3 | osh-native | mut+alloc+free |
22 | 17 | 5 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 11 | 12 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 9 | 16 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 15 | 11 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 11 | 10 | 10.6 | osh-native-souffle | mut+alloc |
21 | 16 | 5 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 16 | 6 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
25 | 14 | 11 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |