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.1 | 17.8 | 476,737 | 1,282 | 6 | 409,280 | 5 | 204,640 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.4 | 476,737 | 1,282 | 6 | 408,780 | 5 | 204,390 | osh-native-souffle |
parse.configure-coreutils | 158 | 22 | 73 | 41.1 | 45.9 | 1,653,325 | 4,764 | 12 | 1,591,962 | 7 | 795,981 | osh-native |
parse.configure-coreutils | 144 | 29 | 66 | 44.6 | 49.8 | 1,653,324 | 4,764 | 12 | 1,030,664 | 6 | 769,416 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 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.5 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,841 | osh-native-souffle |
ex.bashcomp-parse-help | 184 | 0 | 4 | 10.3 | 8.9 | 995,274 | 12,911 | 21 | 50,000 | 0 | 3,891 | osh-native |
ex.bashcomp-parse-help | 173 | 0 | 3 | 10.3 | 8.1 | 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.7 | 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 | 6 | 0 | 1.6 | dash | - |
24 | 23 | 0 | 2.9 | bash | - |
105 | 61 | 50 | 3.3 | zsh | - |
16 | 8 | 8 | 28.6 | bumpleak/osh | mut |
19 | 19 | 0 | 29.4 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 29.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
31 | 27 | 4 | 25.2 | osh-native | mut+alloc |
31 | 16 | 16 | 25.6 | osh-native | mut+alloc+free |
37 | 24 | 12 | 17.8 | osh-native | mut+alloc+free+gc |
38 | 38 | 0 | 18.2 | osh-native | mut+alloc+free+gc+exit |
43 | 20 | 23 | 32.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 41 | 8 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 19 | 8 | 24.9 | osh-native-souffle | mut+alloc |
29 | 16 | 12 | 25.2 | osh-native-souffle | mut+alloc+free |
33 | 28 | 4 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
34 | 25 | 8 | 17.6 | 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 |
22 | 21 | 0 | 1.4 | dash | - |
78 | 78 | 0 | 3.3 | bash | - |
382 | 217 | 187 | 3.7 | zsh | - |
49 | 45 | 4 | 84.5 | bumpleak/osh | mut |
59 | 43 | 16 | 85.7 | _bin/cxx-opt+bumproot/osh | mut |
70 | 49 | 21 | 86.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 73 | 24 | 73.6 | osh-native | mut+alloc |
107 | 78 | 29 | 75.3 | osh-native | mut+alloc+free |
158 | 142 | 16 | 45.9 | osh-native | mut+alloc+free+gc |
170 | 162 | 8 | 46.1 | osh-native | mut+alloc+free+gc+exit |
138 | 107 | 32 | 99.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
238 | 214 | 24 | 62.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
90 | 66 | 23 | 73.2 | osh-native-souffle | mut+alloc |
98 | 69 | 28 | 75.0 | osh-native-souffle | mut+alloc+free |
144 | 115 | 28 | 49.8 | osh-native-souffle | mut+alloc+free+gc |
147 | 118 | 28 | 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.3 | dash | - |
6 | 6 | 0 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 3 | 3 | 11.3 | bumpleak/osh | mut |
7 | 4 | 4 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
8 | 8 | 0 | 12.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 0 | 8 | 9.7 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc+free |
8 | 8 | 0 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
8 | 8 | 0 | 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 |
11 | 11 | 0 | 1.6 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
24 | 16 | 8 | 3.4 | zsh | - |
19 | 15 | 4 | 31.4 | bumpleak/osh | mut |
27 | 26 | 0 | 32.3 | _bin/cxx-opt+bumproot/osh | mut |
28 | 28 | 0 | 31.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 26 | 11 | 26.5 | osh-native | mut+alloc |
38 | 25 | 13 | 26.6 | osh-native | mut+alloc+free |
29 | 18 | 11 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 22 | 7 | 8.0 | osh-native | mut+alloc+free+gc+exit |
55 | 35 | 20 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 19 | 11 | 26.0 | osh-native-souffle | mut+alloc |
32 | 24 | 8 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 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 | 73 | 0 | 3.0 | bash | - |
168 | 132 | 36 | 55.6 | bumpleak/osh | mut |
182 | 105 | 77 | 56.4 | _bin/cxx-opt+bumproot/osh | mut |
194 | 145 | 48 | 57.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 132 | 80 | 47.0 | osh-native | mut+alloc |
221 | 160 | 60 | 48.7 | osh-native | mut+alloc+free |
184 | 116 | 68 | 8.9 | osh-native | mut+alloc+free+gc |
184 | 127 | 56 | 8.8 | osh-native | mut+alloc+free+gc+exit |
234 | 166 | 67 | 62.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 181 | 28 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
202 | 123 | 79 | 46.6 | osh-native-souffle | mut+alloc |
211 | 151 | 59 | 48.3 | osh-native-souffle | mut+alloc+free |
173 | 101 | 72 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
173 | 122 | 51 | 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 |
10 | 5 | 5 | 3.4 | dash | - |
20 | 15 | 6 | 4.2 | bash | - |
18 | 11 | 8 | 3.4 | zsh | - |
18 | 16 | 2 | 11.4 | bumpleak/osh | mut |
22 | 16 | 6 | 13.5 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 14.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 16 | 6 | 11.0 | osh-native | mut+alloc |
23 | 16 | 7 | 11.1 | osh-native | mut+alloc+free |
22 | 20 | 3 | 9.0 | osh-native | mut+alloc+free+gc |
24 | 16 | 8 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 20 | 5 | 12.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 12 | 14 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 11 | 10 | 10.6 | osh-native-souffle | mut+alloc |
21 | 15 | 6 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 14 | 8 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 14 | 9 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |