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 | 35 | 3 | 9 | 12.0 | 17.8 | 476,751 | 1,282 | 6 | 406,604 | 5 | 203,302 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.6 | 476,751 | 1,282 | 6 | 406,200 | 5 | 203,100 | osh-native-souffle |
parse.configure-coreutils | 162 | 24 | 74 | 44.5 | 49.8 | 1,653,339 | 4,764 | 12 | 1,025,526 | 6 | 764,306 | osh-native |
parse.configure-coreutils | 176 | 23 | 95 | 44.5 | 49.4 | 1,653,338 | 4,764 | 12 | 1,025,396 | 6 | 764,241 | osh-native-souffle |
parse.abuild | 10 | 1 | 2 | 2.6 | 8.5 | 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 | 28 | 0 | 1 | 2.2 | 8.0 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,919 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.2 | 7.6 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,858 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 4 | 10.9 | 8.9 | 1,017,204 | 15,258 | 21 | 50,000 | 0 | 3,900 | osh-native |
ex.bashcomp-parse-help | 172 | 0 | 3 | 10.9 | 8.4 | 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.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 | 22 | 1 | 3.1 | bash | - |
102 | 62 | 46 | 3.4 | zsh | - |
16 | 10 | 6 | 29.0 | bumpleak/osh | mut |
19 | 17 | 3 | 30.0 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 30.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 18 | 12 | 25.2 | osh-native | mut+alloc |
32 | 22 | 10 | 25.7 | osh-native | mut+alloc+free |
35 | 30 | 5 | 17.8 | osh-native | mut+alloc+free+gc |
42 | 36 | 6 | 18.2 | osh-native | mut+alloc+free+gc+exit |
41 | 26 | 16 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 33 | 14 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 16 | 11 | 24.8 | osh-native-souffle | mut+alloc |
29 | 22 | 7 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 27 | 5 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 21 | 11 | 17.8 | 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 | 21 | 0 | 1.6 | dash | - |
77 | 77 | 0 | 3.3 | bash | - |
363 | 185 | 197 | 3.5 | zsh | - |
48 | 39 | 9 | 85.5 | bumpleak/osh | mut |
60 | 50 | 10 | 86.2 | _bin/cxx-opt+bumproot/osh | mut |
70 | 66 | 4 | 85.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 64 | 34 | 73.7 | osh-native | mut+alloc |
104 | 74 | 30 | 75.2 | osh-native | mut+alloc+free |
162 | 145 | 17 | 49.8 | osh-native | mut+alloc+free+gc |
160 | 137 | 23 | 50.5 | osh-native | mut+alloc+free+gc+exit |
140 | 93 | 47 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
219 | 186 | 33 | 66.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
89 | 51 | 38 | 73.1 | osh-native-souffle | mut+alloc |
99 | 66 | 33 | 74.8 | osh-native-souffle | mut+alloc+free |
176 | 154 | 22 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
143 | 119 | 24 | 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.3 | dash | - |
5 | 4 | 1 | 2.9 | bash | - |
7 | 3 | 5 | 3.3 | zsh | - |
7 | 4 | 3 | 11.4 | bumpleak/osh | mut |
7 | 4 | 3 | 11.2 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 3 | 6 | 10.1 | osh-native | mut+alloc |
8 | 5 | 3 | 10.4 | osh-native | mut+alloc+free |
10 | 10 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 4 | 5 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 8 | 4 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 3 | 5 | 9.7 | osh-native-souffle | mut+alloc |
8 | 4 | 3 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 4 | 5 | 7.7 | osh-native-souffle | mut+alloc+free+gc |
10 | 6 | 4 | 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 | 9 | 1 | 1.4 | dash | - |
28 | 28 | 0 | 2.9 | bash | - |
23 | 18 | 5 | 3.3 | zsh | - |
18 | 14 | 4 | 32.2 | bumpleak/osh | mut |
25 | 21 | 4 | 31.5 | _bin/cxx-opt+bumproot/osh | mut |
28 | 22 | 6 | 32.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 25 | 12 | 26.5 | osh-native | mut+alloc |
38 | 23 | 15 | 26.6 | osh-native | mut+alloc+free |
28 | 26 | 2 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 26 | 3 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 41 | 13 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 34 | 3 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 25 | 5 | 26.0 | osh-native-souffle | mut+alloc |
31 | 24 | 7 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 21 | 1 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
21 | 21 | 0 | 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 |
73 | 69 | 4 | 3.1 | bash | - |
167 | 118 | 49 | 55.9 | bumpleak/osh | mut |
179 | 125 | 54 | 57.1 | _bin/cxx-opt+bumproot/osh | mut |
195 | 135 | 61 | 57.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 144 | 68 | 48.7 | osh-native | mut+alloc |
219 | 138 | 81 | 50.6 | osh-native | mut+alloc+free |
182 | 132 | 51 | 8.9 | osh-native | mut+alloc+free+gc |
182 | 131 | 51 | 8.8 | osh-native | mut+alloc+free+gc+exit |
233 | 148 | 85 | 64.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
212 | 156 | 56 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
206 | 136 | 70 | 48.2 | osh-native-souffle | mut+alloc |
214 | 157 | 57 | 50.2 | osh-native-souffle | mut+alloc+free |
172 | 118 | 54 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
174 | 130 | 44 | 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 | 3 | 6 | 3.5 | dash | - |
20 | 9 | 11 | 4.5 | bash | - |
17 | 7 | 11 | 3.5 | zsh | - |
18 | 8 | 11 | 13.1 | bumpleak/osh | mut |
22 | 9 | 14 | 13.3 | _bin/cxx-opt+bumproot/osh | mut |
21 | 10 | 12 | 13.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 10 | 11 | 10.7 | osh-native | mut+alloc |
22 | 9 | 14 | 11.3 | osh-native | mut+alloc+free |
22 | 13 | 9 | 9.0 | osh-native | mut+alloc+free+gc |
22 | 10 | 13 | 9.0 | osh-native | mut+alloc+free+gc+exit |
26 | 10 | 17 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 13 | 13 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 9 | 11 | 10.5 | osh-native-souffle | mut+alloc |
21 | 12 | 10 | 10.9 | osh-native-souffle | mut+alloc+free |
21 | 9 | 13 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 11 | 11 | 8.8 | osh-native-souffle | mut+alloc+free+gc+exit |