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 | 11 | 12.0 | 17.8 | 476,751 | 1,282 | 6 | 406,604 | 5 | 203,302 | osh-native |
parse.configure-cpython | 35 | 4 | 11 | 12.0 | 17.4 | 476,751 | 1,282 | 6 | 406,200 | 5 | 203,100 | osh-native-souffle |
parse.configure-coreutils | 168 | 27 | 79 | 44.5 | 49.7 | 1,653,339 | 4,764 | 12 | 1,025,526 | 6 | 764,306 | osh-native |
parse.configure-coreutils | 157 | 27 | 81 | 44.5 | 49.3 | 1,653,338 | 4,764 | 12 | 1,025,396 | 6 | 764,241 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.7 | 101,942 | 180 | 2 | 75,030 | 1 | 37,515 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 7.7 | 101,942 | 180 | 3 | 87,092 | 1 | 43,546 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 1 | 2.2 | 8.0 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,919 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.2 | 7.7 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,858 | osh-native-souffle |
ex.bashcomp-parse-help | 185 | 0 | 4 | 10.9 | 8.8 | 1,017,204 | 15,258 | 21 | 50,000 | 0 | 3,900 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 4 | 10.9 | 8.3 | 1,017,203 | 15,258 | 21 | 50,000 | 0 | 3,851 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,318 | 277 | 3 | 85,248 | 1 | 42,624 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.5 | 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 | 5 | 1 | 1.6 | dash | - |
23 | 22 | 1 | 3.0 | bash | - |
101 | 59 | 48 | 3.4 | zsh | - |
16 | 13 | 3 | 28.9 | bumpleak/osh | mut |
20 | 17 | 3 | 28.9 | _bin/cxx-opt+bumproot/osh | mut |
23 | 17 | 6 | 30.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 15 | 14 | 25.0 | osh-native | mut+alloc |
32 | 20 | 12 | 25.7 | osh-native | mut+alloc+free |
37 | 27 | 10 | 17.8 | osh-native | mut+alloc+free+gc |
38 | 30 | 8 | 18.0 | osh-native | mut+alloc+free+gc+exit |
42 | 32 | 10 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
53 | 43 | 10 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 20 | 7 | 24.8 | osh-native-souffle | mut+alloc |
29 | 21 | 8 | 25.3 | osh-native-souffle | mut+alloc+free |
35 | 27 | 8 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
39 | 34 | 5 | 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 |
21 | 20 | 1 | 1.4 | dash | - |
80 | 78 | 2 | 3.3 | bash | - |
367 | 190 | 198 | 3.5 | zsh | - |
49 | 40 | 9 | 83.9 | bumpleak/osh | mut |
60 | 54 | 6 | 85.2 | _bin/cxx-opt+bumproot/osh | mut |
71 | 52 | 19 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 64 | 34 | 73.4 | osh-native | mut+alloc |
105 | 65 | 40 | 75.4 | osh-native | mut+alloc+free |
168 | 145 | 23 | 49.7 | osh-native | mut+alloc+free+gc |
171 | 147 | 24 | 50.3 | osh-native | mut+alloc+free+gc+exit |
139 | 90 | 49 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
234 | 201 | 33 | 66.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
86 | 55 | 31 | 73.1 | osh-native-souffle | mut+alloc |
96 | 56 | 40 | 75.1 | osh-native-souffle | mut+alloc+free |
157 | 129 | 28 | 49.3 | osh-native-souffle | mut+alloc+free+gc |
164 | 147 | 17 | 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 | 2 | 2.9 | bash | - |
7 | 3 | 4 | 3.3 | zsh | - |
6 | 6 | 0 | 12.1 | bumpleak/osh | mut |
7 | 5 | 2 | 11.6 | _bin/cxx-opt+bumproot/osh | mut |
8 | 3 | 5 | 12.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 6 | 2 | 10.0 | osh-native | mut+alloc |
9 | 6 | 3 | 10.2 | osh-native | mut+alloc+free |
9 | 5 | 4 | 8.7 | osh-native | mut+alloc+free+gc |
9 | 7 | 2 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 7 | 5 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 5 | 3 | 9.6 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 10.0 | osh-native-souffle | mut+alloc+free |
9 | 8 | 1 | 7.7 | osh-native-souffle | mut+alloc+free+gc |
9 | 8 | 1 | 7.9 | 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 | - |
28 | 27 | 1 | 3.0 | bash | - |
23 | 16 | 7 | 3.3 | zsh | - |
18 | 13 | 5 | 30.9 | bumpleak/osh | mut |
26 | 22 | 4 | 32.5 | _bin/cxx-opt+bumproot/osh | mut |
28 | 21 | 7 | 32.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
38 | 27 | 11 | 26.5 | osh-native | mut+alloc |
39 | 22 | 17 | 26.5 | osh-native | mut+alloc+free |
29 | 26 | 3 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 26 | 2 | 8.0 | osh-native | mut+alloc+free+gc+exit |
56 | 41 | 15 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 36 | 2 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 19 | 11 | 26.1 | osh-native-souffle | mut+alloc |
31 | 23 | 8 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 21 | 1 | 7.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 19 | 3 | 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 |
74 | 70 | 4 | 3.1 | bash | - |
167 | 120 | 46 | 56.1 | bumpleak/osh | mut |
182 | 116 | 66 | 56.3 | _bin/cxx-opt+bumproot/osh | mut |
195 | 139 | 56 | 58.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
216 | 149 | 67 | 48.7 | osh-native | mut+alloc |
223 | 146 | 77 | 50.4 | osh-native | mut+alloc+free |
185 | 130 | 55 | 8.8 | osh-native | mut+alloc+free+gc |
185 | 143 | 42 | 8.8 | osh-native | mut+alloc+free+gc+exit |
234 | 144 | 90 | 64.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
215 | 155 | 59 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
206 | 134 | 73 | 48.3 | osh-native-souffle | mut+alloc |
213 | 143 | 70 | 50.2 | osh-native-souffle | mut+alloc+free |
175 | 119 | 56 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
175 | 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 |
9 | 5 | 4 | 3.4 | dash | - |
19 | 12 | 7 | 4.3 | bash | - |
17 | 9 | 9 | 3.4 | zsh | - |
18 | 8 | 10 | 11.7 | bumpleak/osh | mut |
21 | 9 | 12 | 13.2 | _bin/cxx-opt+bumproot/osh | mut |
20 | 14 | 7 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 10 | 12 | 11.1 | osh-native | mut+alloc |
22 | 10 | 13 | 11.1 | osh-native | mut+alloc+free |
22 | 10 | 13 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 11 | 12 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 13 | 12 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 13 | 12 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 11 | 9 | 10.6 | osh-native-souffle | mut+alloc |
21 | 10 | 12 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 12 | 10 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 12 | 11 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |