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 | 18.0 | 476,771 | 1,282 | 6 | 406,622 | 5 | 203,311 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.7 | 476,771 | 1,282 | 6 | 406,612 | 5 | 203,306 | osh-native-souffle |
parse.configure-coreutils | 153 | 22 | 66 | 44.5 | 49.9 | 1,653,359 | 4,764 | 12 | 1,025,544 | 6 | 764,315 | osh-native |
parse.configure-coreutils | 140 | 24 | 64 | 44.5 | 49.4 | 1,653,358 | 4,764 | 12 | 1,025,534 | 6 | 764,310 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,962 | 180 | 2 | 75,048 | 1 | 37,524 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.0 | 101,962 | 180 | 2 | 75,038 | 1 | 37,519 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 2 | 2.2 | 8.1 | 579,725 | 22,608 | 12 | 50,000 | 0 | 2,927 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.2 | 7.6 | 579,725 | 22,608 | 12 | 50,000 | 0 | 2,922 | osh-native-souffle |
ex.bashcomp-parse-help | 185 | 0 | 4 | 11.1 | 8.9 | 1,021,042 | 15,258 | 22 | 50,000 | 0 | 3,916 | osh-native |
ex.bashcomp-parse-help | 177 | 0 | 4 | 11.1 | 8.4 | 1,021,041 | 15,258 | 22 | 50,000 | 0 | 3,916 | osh-native-souffle |
ex.abuild-print-help | 20 | 1 | 2 | 2.9 | 9.3 | 116,453 | 277 | 3 | 85,258 | 1 | 42,629 | osh-native |
ex.abuild-print-help | 19 | 1 | 2 | 2.9 | 8.7 | 116,453 | 277 | 3 | 85,248 | 1 | 42,624 | 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.1 | bash | - |
102 | 54 | 55 | 3.5 | zsh | - |
16 | 13 | 3 | 29.0 | bumpleak/osh | mut |
20 | 12 | 8 | 28.6 | _bin/cxx-opt+bumproot/osh | mut |
23 | 20 | 3 | 29.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 18 | 11 | 25.2 | osh-native | mut+alloc |
31 | 19 | 12 | 25.6 | osh-native | mut+alloc+free |
35 | 27 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 28 | 8 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 32 | 11 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 40 | 9 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
28 | 12 | 14 | 24.8 | osh-native-souffle | mut+alloc |
28 | 19 | 9 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 29 | 4 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
36 | 26 | 10 | 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 | 19 | 2 | 1.4 | dash | - |
78 | 75 | 3 | 3.3 | bash | - |
373 | 202 | 192 | 3.5 | zsh | - |
48 | 42 | 6 | 85.4 | bumpleak/osh | mut |
61 | 52 | 9 | 84.8 | _bin/cxx-opt+bumproot/osh | mut |
72 | 62 | 10 | 86.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
95 | 64 | 32 | 73.7 | osh-native | mut+alloc |
106 | 79 | 27 | 75.5 | osh-native | mut+alloc+free |
153 | 125 | 27 | 49.9 | osh-native | mut+alloc+free+gc |
168 | 146 | 22 | 50.5 | osh-native | mut+alloc+free+gc+exit |
137 | 90 | 47 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
239 | 211 | 28 | 66.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
86 | 53 | 33 | 73.1 | osh-native-souffle | mut+alloc |
96 | 60 | 36 | 74.9 | osh-native-souffle | mut+alloc+free |
140 | 122 | 18 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
145 | 123 | 22 | 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 | - |
7 | 3 | 5 | 3.4 | zsh | - |
6 | 3 | 3 | 12.0 | bumpleak/osh | mut |
7 | 5 | 1 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
8 | 2 | 6 | 12.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 5 | 10.1 | osh-native | mut+alloc |
9 | 7 | 2 | 10.0 | osh-native | mut+alloc+free |
9 | 5 | 4 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 7 | 2 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 7 | 5 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 11 | 1 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc |
8 | 5 | 3 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 7 | 2 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
9 | 6 | 3 | 8.3 | 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.6 | dash | - |
28 | 25 | 3 | 3.0 | bash | - |
23 | 18 | 5 | 3.1 | zsh | - |
19 | 15 | 4 | 32.5 | bumpleak/osh | mut |
26 | 21 | 5 | 32.9 | _bin/cxx-opt+bumproot/osh | mut |
28 | 25 | 3 | 31.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 30 | 7 | 26.3 | osh-native | mut+alloc |
38 | 29 | 9 | 26.5 | osh-native | mut+alloc+free |
29 | 25 | 4 | 8.1 | osh-native | mut+alloc+free+gc |
28 | 26 | 2 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 39 | 15 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
39 | 35 | 4 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 21 | 9 | 26.0 | osh-native-souffle | mut+alloc |
31 | 21 | 9 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 19 | 3 | 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 |
73 | 65 | 8 | 3.1 | bash | - |
168 | 117 | 51 | 56.8 | bumpleak/osh | mut |
182 | 133 | 49 | 56.1 | _bin/cxx-opt+bumproot/osh | mut |
197 | 129 | 69 | 57.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
219 | 133 | 85 | 48.9 | osh-native | mut+alloc |
222 | 155 | 67 | 50.8 | osh-native | mut+alloc+free |
185 | 133 | 52 | 8.9 | osh-native | mut+alloc+free+gc |
184 | 125 | 59 | 8.8 | osh-native | mut+alloc+free+gc+exit |
236 | 158 | 78 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
214 | 164 | 50 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
207 | 129 | 78 | 48.3 | osh-native-souffle | mut+alloc |
217 | 149 | 67 | 50.4 | osh-native-souffle | mut+alloc+free |
177 | 120 | 57 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
176 | 114 | 62 | 8.3 | 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 | 13 | 7 | 4.5 | bash | - |
17 | 5 | 13 | 3.5 | zsh | - |
17 | 6 | 11 | 11.3 | bumpleak/osh | mut |
18 | 8 | 10 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
20 | 10 | 11 | 13.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
19 | 10 | 10 | 11.3 | osh-native | mut+alloc |
20 | 12 | 9 | 11.3 | osh-native | mut+alloc+free |
20 | 12 | 8 | 9.3 | osh-native | mut+alloc+free+gc |
21 | 11 | 10 | 9.2 | osh-native | mut+alloc+free+gc+exit |
23 | 13 | 10 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
23 | 12 | 12 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
18 | 8 | 11 | 10.6 | osh-native-souffle | mut+alloc |
19 | 10 | 10 | 10.7 | osh-native-souffle | mut+alloc+free |
19 | 13 | 7 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
20 | 10 | 11 | 8.8 | osh-native-souffle | mut+alloc+free+gc+exit |