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,672 | 1,282 | 6 | 408,778 | 5 | 204,389 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.6 | 476,672 | 1,282 | 6 | 408,648 | 5 | 204,324 | osh-native-souffle |
parse.configure-coreutils | 156 | 26 | 69 | 46.1 | 51.7 | 1,653,260 | 4,764 | 12 | 1,069,144 | 6 | 798,653 | osh-native |
parse.configure-coreutils | 162 | 25 | 86 | 41.0 | 45.5 | 1,653,259 | 4,764 | 12 | 1,591,700 | 7 | 795,850 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,863 | 180 | 2 | 75,120 | 1 | 37,560 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 7.7 | 101,863 | 180 | 3 | 87,216 | 1 | 43,608 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.4 | 7.9 | 584,131 | 22,608 | 12 | 50,000 | 0 | 2,837 | osh-native |
ex.compute-fib | 21 | 0 | 2 | 2.4 | 7.5 | 584,131 | 22,608 | 12 | 50,000 | 0 | 2,776 | osh-native-souffle |
ex.bashcomp-parse-help | 180 | 0 | 3 | 10.3 | 8.9 | 995,205 | 12,911 | 21 | 50,000 | 0 | 3,831 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 4 | 10.3 | 8.5 | 995,204 | 12,911 | 21 | 50,000 | 0 | 3,764 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,278 | 270 | 3 | 85,356 | 1 | 42,678 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.5 | 116,278 | 270 | 3 | 85,232 | 1 | 42,616 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 23 | 0 | 3.1 | bash | - |
104 | 47 | 64 | 3.5 | zsh | - |
16 | 12 | 4 | 29.1 | bumpleak/osh | mut |
19 | 15 | 4 | 29.5 | _bin/cxx-opt+bumproot/osh | mut |
22 | 19 | 4 | 29.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 15 | 15 | 25.2 | osh-native | mut+alloc |
32 | 32 | 0 | 25.7 | osh-native | mut+alloc+free |
35 | 26 | 9 | 17.8 | osh-native | mut+alloc+free+gc |
36 | 28 | 8 | 17.8 | osh-native | mut+alloc+free+gc+exit |
43 | 35 | 8 | 33.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 32 | 16 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 19 | 8 | 24.8 | osh-native-souffle | mut+alloc |
29 | 15 | 15 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 17 | 17 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
35 | 26 | 9 | 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 |
23 | 23 | 0 | 1.6 | dash | - |
77 | 73 | 4 | 3.1 | bash | - |
379 | 212 | 189 | 3.5 | zsh | - |
48 | 44 | 4 | 84.1 | bumpleak/osh | mut |
59 | 55 | 4 | 85.2 | _bin/cxx-opt+bumproot/osh | mut |
70 | 43 | 27 | 85.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 48 | 48 | 73.6 | osh-native | mut+alloc |
104 | 68 | 36 | 75.3 | osh-native | mut+alloc+free |
156 | 140 | 16 | 51.7 | osh-native | mut+alloc+free+gc |
163 | 127 | 36 | 52.1 | osh-native | mut+alloc+free+gc+exit |
139 | 87 | 52 | 97.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
224 | 188 | 36 | 71.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 44 | 44 | 73.2 | osh-native-souffle | mut+alloc |
97 | 54 | 43 | 75.0 | osh-native-souffle | mut+alloc+free |
162 | 150 | 12 | 45.5 | osh-native-souffle | mut+alloc+free+gc |
163 | 135 | 28 | 45.7 | 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 | 2 | 0 | 1.3 | dash | - |
6 | 6 | 0 | 3.0 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 0 | 6 | 12.0 | bumpleak/osh | mut |
6 | 6 | 0 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 11.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc |
9 | 0 | 9 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 0 | 9 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 0 | 11 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.6 | osh-native-souffle | mut+alloc |
8 | 0 | 8 | 9.6 | osh-native-souffle | mut+alloc+free |
9 | 9 | 0 | 7.7 | osh-native-souffle | mut+alloc+free+gc |
10 | 10 | 0 | 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 | 10 | 0 | 1.4 | dash | - |
29 | 29 | 0 | 2.9 | bash | - |
24 | 24 | 0 | 3.3 | zsh | - |
19 | 11 | 7 | 31.6 | bumpleak/osh | mut |
25 | 25 | 0 | 31.4 | _bin/cxx-opt+bumproot/osh | mut |
28 | 27 | 0 | 33.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.3 | osh-native | mut+alloc |
38 | 29 | 8 | 26.3 | osh-native | mut+alloc+free |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 37 | 17 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 36 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 25 | 4 | 26.0 | osh-native-souffle | mut+alloc |
32 | 23 | 8 | 26.1 | osh-native-souffle | mut+alloc+free |
21 | 21 | 0 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 17 | 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 | 69 | 4 | 3.1 | bash | - |
168 | 100 | 68 | 55.3 | bumpleak/osh | mut |
180 | 104 | 76 | 55.2 | _bin/cxx-opt+bumproot/osh | mut |
192 | 136 | 56 | 56.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 132 | 80 | 47.0 | osh-native | mut+alloc |
218 | 149 | 68 | 48.7 | osh-native | mut+alloc+free |
180 | 138 | 41 | 8.9 | osh-native | mut+alloc+free+gc |
181 | 129 | 52 | 8.8 | osh-native | mut+alloc+free+gc+exit |
234 | 137 | 97 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 133 | 77 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
203 | 127 | 76 | 46.6 | osh-native-souffle | mut+alloc |
211 | 130 | 81 | 48.3 | osh-native-souffle | mut+alloc+free |
175 | 119 | 55 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
176 | 121 | 55 | 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 |
10 | 8 | 2 | 3.4 | dash | - |
20 | 11 | 9 | 4.5 | bash | - |
18 | 8 | 10 | 3.4 | zsh | - |
18 | 10 | 9 | 11.9 | bumpleak/osh | mut |
21 | 11 | 11 | 13.2 | _bin/cxx-opt+bumproot/osh | mut |
22 | 17 | 5 | 13.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 11 | 10 | 11.0 | osh-native | mut+alloc |
23 | 13 | 10 | 11.1 | osh-native | mut+alloc+free |
22 | 17 | 5 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 22 | 1 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 23 | 2 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 20 | 6 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 11 | 9 | 10.6 | osh-native-souffle | mut+alloc |
21 | 19 | 3 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 18 | 4 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 20 | 2 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |