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.0 | 17.7 | 476,751 | 1,282 | 6 | 406,604 | 5 | 203,302 | osh-native |
parse.configure-cpython | 34 | 4 | 11 | 12.0 | 17.6 | 476,751 | 1,282 | 6 | 406,200 | 5 | 203,100 | osh-native-souffle |
parse.configure-coreutils | 147 | 24 | 61 | 44.5 | 49.7 | 1,653,339 | 4,764 | 12 | 1,025,526 | 6 | 764,306 | osh-native |
parse.configure-coreutils | 140 | 26 | 65 | 44.5 | 49.4 | 1,653,338 | 4,764 | 12 | 1,025,396 | 6 | 764,241 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,942 | 180 | 2 | 75,030 | 1 | 37,515 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 8.0 | 101,942 | 180 | 3 | 87,092 | 1 | 43,546 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 1 | 2.2 | 8.1 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,919 | osh-native |
ex.compute-fib | 21 | 0 | 2 | 2.2 | 7.6 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,858 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 3 | 10.9 | 8.9 | 1,017,204 | 15,258 | 21 | 50,000 | 0 | 3,900 | osh-native |
ex.bashcomp-parse-help | 176 | 0 | 4 | 10.9 | 8.3 | 1,017,203 | 15,258 | 21 | 50,000 | 0 | 3,851 | osh-native-souffle |
ex.abuild-print-help | 33 | 1 | 3 | 2.8 | 9.2 | 116,318 | 277 | 3 | 85,248 | 1 | 42,624 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.7 | 116,318 | 277 | 3 | 85,124 | 1 | 42,562 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 21 | 2 | 3.0 | bash | - |
101 | 53 | 55 | 3.4 | zsh | - |
16 | 14 | 2 | 29.1 | bumpleak/osh | mut |
19 | 16 | 3 | 29.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 19 | 3 | 29.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 23 | 6 | 25.0 | osh-native | mut+alloc |
31 | 17 | 15 | 25.7 | osh-native | mut+alloc+free |
36 | 30 | 6 | 17.7 | osh-native | mut+alloc+free+gc |
38 | 31 | 7 | 18.0 | osh-native | mut+alloc+free+gc+exit |
42 | 28 | 14 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 37 | 10 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 19 | 7 | 24.8 | osh-native-souffle | mut+alloc |
28 | 21 | 7 | 25.4 | osh-native-souffle | mut+alloc+free |
34 | 23 | 11 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
34 | 28 | 6 | 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 | 1 | 1.6 | dash | - |
77 | 75 | 2 | 3.1 | bash | - |
365 | 185 | 201 | 3.4 | zsh | - |
50 | 41 | 9 | 85.0 | bumpleak/osh | mut |
60 | 51 | 9 | 85.7 | _bin/cxx-opt+bumproot/osh | mut |
71 | 62 | 9 | 86.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 69 | 28 | 73.5 | osh-native | mut+alloc |
105 | 78 | 27 | 75.4 | osh-native | mut+alloc+free |
147 | 121 | 26 | 49.7 | osh-native | mut+alloc+free+gc |
151 | 128 | 23 | 50.5 | osh-native | mut+alloc+free+gc+exit |
139 | 92 | 47 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
204 | 173 | 31 | 66.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
85 | 51 | 35 | 73.2 | osh-native-souffle | mut+alloc |
96 | 64 | 32 | 74.8 | osh-native-souffle | mut+alloc+free |
140 | 120 | 20 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
142 | 117 | 25 | 50.1 | 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 | 1 | 1 | 1.4 | dash | - |
5 | 4 | 1 | 3.0 | bash | - |
8 | 5 | 3 | 3.3 | zsh | - |
6 | 2 | 4 | 11.2 | bumpleak/osh | mut |
7 | 3 | 4 | 11.1 | _bin/cxx-opt+bumproot/osh | mut |
7 | 5 | 2 | 11.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 3 | 5 | 10.0 | osh-native | mut+alloc |
9 | 5 | 4 | 10.0 | osh-native | mut+alloc+free |
9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 8 | 1 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 6 | 6 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 10 | 2 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc |
8 | 1 | 7 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 6 | 3 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
9 | 7 | 2 | 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 | 9 | 1 | 1.4 | dash | - |
29 | 28 | 1 | 2.9 | bash | - |
23 | 17 | 6 | 3.3 | zsh | - |
18 | 13 | 5 | 31.6 | bumpleak/osh | mut |
26 | 22 | 4 | 33.1 | _bin/cxx-opt+bumproot/osh | mut |
29 | 24 | 5 | 32.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 28 | 9 | 26.3 | osh-native | mut+alloc |
38 | 28 | 10 | 26.5 | osh-native | mut+alloc+free |
29 | 28 | 1 | 8.1 | osh-native | mut+alloc+free+gc |
28 | 25 | 3 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 34 | 20 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 35 | 2 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
29 | 21 | 9 | 25.8 | osh-native-souffle | mut+alloc |
31 | 18 | 13 | 26.2 | osh-native-souffle | mut+alloc+free |
21 | 17 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 21 | 1 | 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 | 5 | 3.1 | bash | - |
165 | 111 | 54 | 56.0 | bumpleak/osh | mut |
180 | 119 | 61 | 57.7 | _bin/cxx-opt+bumproot/osh | mut |
196 | 131 | 64 | 57.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
215 | 131 | 84 | 48.9 | osh-native | mut+alloc |
221 | 154 | 68 | 50.6 | osh-native | mut+alloc+free |
182 | 134 | 48 | 8.9 | osh-native | mut+alloc+free+gc |
183 | 133 | 50 | 8.8 | osh-native | mut+alloc+free+gc+exit |
232 | 158 | 74 | 64.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 160 | 50 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
202 | 127 | 75 | 48.2 | osh-native-souffle | mut+alloc |
213 | 135 | 78 | 50.0 | osh-native-souffle | mut+alloc+free |
176 | 115 | 61 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
173 | 128 | 45 | 8.5 | 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 |
9 | 3 | 7 | 3.5 | dash | - |
19 | 10 | 10 | 4.5 | bash | - |
17 | 8 | 10 | 3.5 | zsh | - |
17 | 7 | 11 | 11.4 | bumpleak/osh | mut |
19 | 10 | 9 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
21 | 9 | 12 | 13.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 9 | 13 | 11.0 | osh-native | mut+alloc |
22 | 11 | 11 | 11.3 | osh-native | mut+alloc+free |
33 | 14 | 20 | 9.2 | osh-native | mut+alloc+free+gc |
22 | 11 | 11 | 9.2 | osh-native | mut+alloc+free+gc+exit |
24 | 11 | 13 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 13 | 13 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
19 | 9 | 11 | 10.5 | osh-native-souffle | mut+alloc |
21 | 8 | 13 | 10.9 | osh-native-souffle | mut+alloc+free |
22 | 13 | 10 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 11 | 12 | 8.8 | osh-native-souffle | mut+alloc+free+gc+exit |