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,736 | 1,282 | 6 | 409,282 | 5 | 204,641 | osh-native |
parse.configure-cpython | 32 | 3 | 10 | 12.0 | 17.6 | 476,736 | 1,282 | 6 | 408,782 | 5 | 204,391 | osh-native-souffle |
parse.configure-coreutils | 152 | 20 | 68 | 41.1 | 45.9 | 1,653,324 | 4,764 | 12 | 1,591,964 | 7 | 795,982 | osh-native |
parse.configure-coreutils | 151 | 24 | 67 | 44.6 | 49.7 | 1,653,323 | 4,764 | 12 | 1,030,666 | 6 | 769,417 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,927 | 180 | 2 | 75,254 | 1 | 37,627 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.3 | 101,927 | 180 | 2 | 75,124 | 1 | 37,562 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.4 | 7.9 | 584,192 | 22,608 | 12 | 50,000 | 0 | 2,904 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.4 | 7.6 | 584,192 | 22,608 | 12 | 50,000 | 0 | 2,842 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 4 | 10.3 | 8.9 | 995,273 | 12,911 | 21 | 50,000 | 0 | 3,892 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 4 | 10.3 | 8.4 | 995,272 | 12,911 | 21 | 50,000 | 0 | 3,832 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 116,342 | 270 | 3 | 85,490 | 1 | 42,745 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 116,342 | 270 | 3 | 85,366 | 1 | 42,683 | 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 | 53 | 58 | 3.3 | zsh | - |
16 | 15 | 0 | 28.7 | bumpleak/osh | mut |
19 | 19 | 0 | 28.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 29.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 25 | 4 | 25.0 | osh-native | mut+alloc |
31 | 22 | 9 | 25.7 | osh-native | mut+alloc+free |
36 | 27 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 28 | 8 | 18.2 | osh-native | mut+alloc+free+gc+exit |
42 | 29 | 13 | 32.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 43 | 4 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 22 | 4 | 24.8 | osh-native-souffle | mut+alloc |
28 | 16 | 12 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 24 | 8 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
34 | 26 | 9 | 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.4 | dash | - |
77 | 73 | 4 | 3.3 | bash | - |
376 | 213 | 183 | 3.4 | zsh | - |
47 | 31 | 16 | 84.6 | bumpleak/osh | mut |
60 | 56 | 4 | 85.5 | _bin/cxx-opt+bumproot/osh | mut |
69 | 61 | 8 | 86.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 65 | 33 | 73.4 | osh-native | mut+alloc |
104 | 68 | 36 | 75.3 | osh-native | mut+alloc+free |
152 | 135 | 16 | 45.9 | osh-native | mut+alloc+free+gc |
158 | 138 | 20 | 46.1 | osh-native | mut+alloc+free+gc+exit |
139 | 99 | 40 | 98.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
212 | 180 | 32 | 60.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 66 | 21 | 72.9 | osh-native-souffle | mut+alloc |
96 | 68 | 28 | 74.9 | osh-native-souffle | mut+alloc+free |
151 | 131 | 20 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
142 | 126 | 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 | 0 | 2 | 1.3 | dash | - |
6 | 6 | 0 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 0 | 6 | 10.5 | bumpleak/osh | mut |
6 | 6 | 0 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 12.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 0 | 8 | 10.0 | osh-native | mut+alloc |
8 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc+exit |
11 | 11 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 11 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
7 | 7 | 0 | 9.7 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.6 | osh-native-souffle | mut+alloc+free |
8 | 8 | 0 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
8 | 8 | 0 | 8.1 | 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 | 28 | 0 | 2.9 | bash | - |
23 | 14 | 9 | 3.3 | zsh | - |
18 | 18 | 0 | 31.0 | bumpleak/osh | mut |
25 | 21 | 4 | 32.7 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 33.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 26.3 | osh-native | mut+alloc |
37 | 25 | 12 | 26.7 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
29 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
53 | 37 | 16 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
36 | 28 | 8 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 29 | 0 | 26.1 | osh-native-souffle | mut+alloc |
31 | 17 | 13 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 18 | 4 | 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 |
72 | 67 | 4 | 3.3 | bash | - |
166 | 121 | 44 | 53.9 | bumpleak/osh | mut |
180 | 152 | 28 | 55.4 | _bin/cxx-opt+bumproot/osh | mut |
194 | 133 | 60 | 56.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 131 | 79 | 47.0 | osh-native | mut+alloc |
217 | 140 | 76 | 48.9 | osh-native | mut+alloc+free |
182 | 137 | 44 | 8.9 | osh-native | mut+alloc+free+gc |
182 | 125 | 57 | 8.7 | osh-native | mut+alloc+free+gc+exit |
230 | 161 | 69 | 63.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
207 | 139 | 68 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
203 | 130 | 73 | 46.6 | osh-native-souffle | mut+alloc |
209 | 132 | 76 | 48.3 | osh-native-souffle | mut+alloc+free |
175 | 111 | 63 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
174 | 122 | 51 | 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 | 8 | 2 | 3.4 | dash | - |
19 | 15 | 5 | 4.3 | bash | - |
17 | 18 | 0 | 3.4 | zsh | - |
18 | 15 | 4 | 12.0 | bumpleak/osh | mut |
20 | 16 | 4 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
21 | 12 | 9 | 13.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
20 | 13 | 8 | 11.0 | osh-native | mut+alloc |
22 | 17 | 5 | 11.3 | osh-native | mut+alloc+free |
22 | 16 | 6 | 8.9 | osh-native | mut+alloc+free+gc |
22 | 22 | 1 | 9.2 | osh-native | mut+alloc+free+gc+exit |
24 | 13 | 11 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 17 | 8 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
19 | 18 | 2 | 10.6 | osh-native-souffle | mut+alloc |
22 | 13 | 9 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 16 | 6 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 15 | 7 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |