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.1 | 18.0 | 476,737 | 1,282 | 6 | 409,280 | 5 | 204,640 | osh-native |
parse.configure-cpython | 34 | 4 | 10 | 12.0 | 17.4 | 476,737 | 1,282 | 6 | 408,780 | 5 | 204,390 | osh-native-souffle |
parse.configure-coreutils | 159 | 24 | 75 | 41.1 | 45.9 | 1,653,325 | 4,764 | 12 | 1,591,962 | 7 | 795,981 | osh-native |
parse.configure-coreutils | 141 | 24 | 64 | 44.6 | 49.7 | 1,653,324 | 4,764 | 12 | 1,030,664 | 6 | 769,416 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,928 | 180 | 2 | 75,252 | 1 | 37,626 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.1 | 101,928 | 180 | 2 | 75,122 | 1 | 37,561 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 2 | 2.4 | 8.0 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,903 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.4 | 7.6 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,841 | osh-native-souffle |
ex.bashcomp-parse-help | 184 | 0 | 4 | 10.3 | 8.8 | 995,274 | 12,911 | 21 | 50,000 | 0 | 3,891 | osh-native |
ex.bashcomp-parse-help | 174 | 0 | 4 | 10.3 | 8.4 | 995,273 | 12,911 | 21 | 50,000 | 0 | 3,831 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,343 | 270 | 3 | 85,488 | 1 | 42,744 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.4 | 116,343 | 270 | 3 | 85,364 | 1 | 42,682 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
7 | 7 | 0 | 1.6 | dash | - |
24 | 19 | 4 | 3.1 | bash | - |
105 | 60 | 51 | 3.4 | zsh | - |
16 | 12 | 4 | 29.2 | bumpleak/osh | mut |
19 | 15 | 4 | 28.2 | _bin/cxx-opt+bumproot/osh | mut |
22 | 13 | 9 | 29.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 12 | 17 | 25.2 | osh-native | mut+alloc |
31 | 16 | 16 | 25.7 | osh-native | mut+alloc+free |
37 | 33 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 25 | 12 | 18.2 | osh-native | mut+alloc+free+gc+exit |
44 | 24 | 20 | 33.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 48 | 0 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 15 | 12 | 24.8 | osh-native-souffle | mut+alloc |
29 | 16 | 12 | 25.3 | osh-native-souffle | mut+alloc+free |
34 | 21 | 13 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
34 | 29 | 4 | 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 | 21 | 0 | 1.4 | dash | - |
79 | 78 | 0 | 3.1 | bash | - |
387 | 193 | 214 | 3.7 | zsh | - |
49 | 44 | 4 | 85.1 | bumpleak/osh | mut |
59 | 51 | 8 | 84.7 | _bin/cxx-opt+bumproot/osh | mut |
70 | 55 | 16 | 86.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 66 | 31 | 73.4 | osh-native | mut+alloc |
105 | 77 | 27 | 75.3 | osh-native | mut+alloc+free |
159 | 135 | 24 | 45.9 | osh-native | mut+alloc+free+gc |
163 | 127 | 36 | 46.1 | osh-native | mut+alloc+free+gc+exit |
139 | 99 | 39 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
239 | 211 | 28 | 61.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 60 | 28 | 73.2 | osh-native-souffle | mut+alloc |
97 | 72 | 24 | 74.9 | osh-native-souffle | mut+alloc+free |
141 | 116 | 24 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
146 | 121 | 24 | 50.3 | 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.4 | dash | - |
6 | 6 | 0 | 2.9 | bash | - |
8 | 8 | 0 | 3.1 | zsh | - |
6 | 3 | 3 | 10.7 | bumpleak/osh | mut |
7 | 3 | 3 | 11.7 | _bin/cxx-opt+bumproot/osh | mut |
8 | 8 | 0 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 0 | 8 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 9.8 | osh-native | mut+alloc+free |
9 | 5 | 5 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 4 | 8 | 9.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.7 | osh-native-souffle | mut+alloc+free |
8 | 4 | 4 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
9 | 3 | 6 | 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 | 7 | 3 | 1.4 | dash | - |
29 | 29 | 0 | 2.9 | bash | - |
24 | 16 | 8 | 3.3 | zsh | - |
19 | 18 | 0 | 32.5 | bumpleak/osh | mut |
26 | 22 | 4 | 31.7 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 33.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.2 | osh-native | mut+alloc |
39 | 23 | 15 | 26.7 | osh-native | mut+alloc+free |
29 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 38 | 15 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
39 | 35 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 11 | 18 | 26.0 | osh-native-souffle | mut+alloc |
31 | 19 | 12 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 22 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
21 | 21 | 0 | 7.5 | 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 | 68 | 4 | 3.1 | bash | - |
168 | 120 | 48 | 54.7 | bumpleak/osh | mut |
181 | 108 | 72 | 55.9 | _bin/cxx-opt+bumproot/osh | mut |
195 | 131 | 64 | 56.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 139 | 72 | 47.1 | osh-native | mut+alloc |
218 | 142 | 75 | 48.8 | osh-native | mut+alloc+free |
184 | 147 | 36 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 118 | 63 | 8.8 | osh-native | mut+alloc+free+gc+exit |
232 | 134 | 98 | 64.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 143 | 68 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
203 | 122 | 81 | 46.6 | osh-native-souffle | mut+alloc |
213 | 128 | 84 | 48.3 | osh-native-souffle | mut+alloc+free |
174 | 131 | 44 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
174 | 113 | 61 | 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 | 6 | 4 | 3.4 | dash | - |
20 | 11 | 9 | 4.3 | bash | - |
18 | 13 | 5 | 3.5 | zsh | - |
18 | 13 | 5 | 13.1 | bumpleak/osh | mut |
21 | 8 | 13 | 13.2 | _bin/cxx-opt+bumproot/osh | mut |
20 | 13 | 7 | 13.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 11 | 11 | 11.0 | osh-native | mut+alloc |
23 | 21 | 2 | 11.0 | osh-native | mut+alloc+free |
22 | 21 | 2 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 16 | 7 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 11 | 15 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 17 | 9 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 18 | 3 | 10.6 | osh-native-souffle | mut+alloc |
21 | 18 | 4 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 13 | 9 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
22 | 13 | 9 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |