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 | 10 | 12.0 | 18.1 | 476,772 | 1,282 | 6 | 406,624 | 5 | 203,312 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.6 | 476,772 | 1,282 | 6 | 406,614 | 5 | 203,307 | osh-native-souffle |
parse.configure-coreutils | 142 | 22 | 57 | 44.5 | 49.8 | 1,653,360 | 4,764 | 12 | 1,025,546 | 6 | 764,316 | osh-native |
parse.configure-coreutils | 138 | 24 | 61 | 44.5 | 49.4 | 1,653,359 | 4,764 | 12 | 1,025,536 | 6 | 764,311 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.7 | 101,963 | 180 | 2 | 75,050 | 1 | 37,525 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.1 | 101,963 | 180 | 2 | 75,040 | 1 | 37,520 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.2 | 8.0 | 579,726 | 22,608 | 12 | 50,000 | 0 | 2,928 | osh-native |
ex.compute-fib | 21 | 0 | 1 | 2.2 | 7.7 | 579,726 | 22,608 | 12 | 50,000 | 0 | 2,923 | osh-native-souffle |
ex.bashcomp-parse-help | 184 | 0 | 4 | 11.1 | 8.8 | 1,021,043 | 15,258 | 22 | 50,000 | 0 | 3,917 | osh-native |
ex.bashcomp-parse-help | 177 | 0 | 4 | 11.1 | 8.5 | 1,021,042 | 15,258 | 22 | 50,000 | 0 | 3,917 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 116,361 | 277 | 3 | 85,266 | 1 | 42,633 | osh-native |
ex.abuild-print-help | 20 | 1 | 2 | 2.8 | 8.7 | 116,361 | 277 | 3 | 85,256 | 1 | 42,628 | 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 | 2.9 | bash | - |
102 | 51 | 57 | 3.4 | zsh | - |
16 | 13 | 3 | 29.2 | bumpleak/osh | mut |
20 | 15 | 5 | 29.9 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 29.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 19 | 10 | 25.3 | osh-native | mut+alloc |
32 | 21 | 11 | 25.7 | osh-native | mut+alloc+free |
37 | 24 | 13 | 18.1 | osh-native | mut+alloc+free+gc |
36 | 28 | 8 | 18.2 | osh-native | mut+alloc+free+gc+exit |
42 | 25 | 17 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 40 | 8 | 22.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 17 | 10 | 24.8 | osh-native-souffle | mut+alloc |
28 | 13 | 15 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 26 | 7 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 26 | 7 | 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.6 | dash | - |
78 | 77 | 1 | 3.3 | bash | - |
369 | 202 | 189 | 3.5 | zsh | - |
50 | 41 | 9 | 84.3 | bumpleak/osh | mut |
61 | 54 | 7 | 84.8 | _bin/cxx-opt+bumproot/osh | mut |
69 | 60 | 9 | 85.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 65 | 31 | 73.5 | osh-native | mut+alloc |
103 | 78 | 25 | 75.3 | osh-native | mut+alloc+free |
142 | 121 | 21 | 49.8 | osh-native | mut+alloc+free+gc |
148 | 128 | 20 | 50.5 | osh-native | mut+alloc+free+gc+exit |
137 | 96 | 41 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
203 | 172 | 31 | 66.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 54 | 34 | 73.1 | osh-native-souffle | mut+alloc |
96 | 60 | 35 | 75.0 | osh-native-souffle | mut+alloc+free |
138 | 116 | 22 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
150 | 122 | 28 | 49.9 | 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 | - |
7 | 4 | 3 | 3.3 | zsh | - |
6 | 3 | 2 | 10.3 | bumpleak/osh | mut |
7 | 3 | 4 | 12.8 | _bin/cxx-opt+bumproot/osh | mut |
7 | 3 | 4 | 11.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 3 | 6 | 10.0 | osh-native | mut+alloc |
9 | 5 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 5 | 4 | 8.7 | osh-native | mut+alloc+free+gc |
9 | 8 | 1 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 5 | 7 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 10 | 2 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 3 | 9.8 | osh-native-souffle | mut+alloc |
8 | 6 | 2 | 9.7 | osh-native-souffle | mut+alloc+free |
8 | 5 | 4 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
8 | 4 | 4 | 8.4 | 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 | 26 | 2 | 3.0 | bash | - |
23 | 16 | 7 | 3.3 | zsh | - |
18 | 14 | 4 | 31.7 | bumpleak/osh | mut |
26 | 23 | 4 | 33.0 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 30 | 6 | 26.2 | osh-native | mut+alloc |
38 | 28 | 9 | 26.6 | osh-native | mut+alloc+free |
28 | 26 | 2 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 28 | 1 | 8.0 | osh-native | mut+alloc+free+gc+exit |
53 | 35 | 18 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 35 | 2 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 16 | 14 | 26.0 | osh-native-souffle | mut+alloc |
31 | 19 | 12 | 26.2 | osh-native-souffle | mut+alloc+free |
21 | 20 | 1 | 7.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 18 | 3 | 7.7 | 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 | 70 | 3 | 3.3 | bash | - |
168 | 119 | 49 | 57.4 | bumpleak/osh | mut |
183 | 130 | 53 | 57.5 | _bin/cxx-opt+bumproot/osh | mut |
195 | 130 | 65 | 57.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
215 | 135 | 80 | 48.9 | osh-native | mut+alloc |
221 | 146 | 75 | 50.8 | osh-native | mut+alloc+free |
184 | 129 | 55 | 8.8 | osh-native | mut+alloc+free+gc |
183 | 129 | 54 | 8.8 | osh-native | mut+alloc+free+gc+exit |
232 | 138 | 94 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 156 | 54 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
207 | 129 | 78 | 48.5 | osh-native-souffle | mut+alloc |
212 | 132 | 80 | 50.3 | osh-native-souffle | mut+alloc+free |
177 | 127 | 50 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
176 | 134 | 42 | 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 | - |
19 | 12 | 7 | 4.5 | bash | - |
17 | 6 | 12 | 3.5 | zsh | - |
19 | 9 | 11 | 13.0 | bumpleak/osh | mut |
19 | 11 | 9 | 13.6 | _bin/cxx-opt+bumproot/osh | mut |
19 | 9 | 11 | 12.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
26 | 12 | 16 | 11.1 | osh-native | mut+alloc |
22 | 12 | 11 | 11.1 | osh-native | mut+alloc+free |
22 | 12 | 10 | 8.9 | osh-native | mut+alloc+free+gc |
22 | 11 | 12 | 9.2 | osh-native | mut+alloc+free+gc+exit |
24 | 13 | 11 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 14 | 11 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 9 | 11 | 10.7 | osh-native-souffle | mut+alloc |
20 | 9 | 12 | 10.7 | osh-native-souffle | mut+alloc+free |
20 | 11 | 10 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 12 | 9 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |