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 | 39 | 6 | 12 | 12.1 | 18.0 | 476,737 | 1,282 | 6 | 409,280 | 5 | 204,640 | osh-native |
parse.configure-cpython | 35 | 5 | 12 | 12.0 | 17.6 | 476,737 | 1,282 | 6 | 408,780 | 5 | 204,390 | osh-native-souffle |
parse.configure-coreutils | 183 | 27 | 95 | 41.1 | 45.9 | 1,653,325 | 4,764 | 12 | 1,591,962 | 7 | 795,981 | osh-native |
parse.configure-coreutils | 158 | 27 | 80 | 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.4 | 101,928 | 180 | 2 | 75,252 | 1 | 37,626 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.3 | 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 | 183 | 0 | 4 | 10.3 | 8.8 | 995,274 | 12,911 | 21 | 50,000 | 0 | 3,891 | osh-native |
ex.bashcomp-parse-help | 177 | 0 | 4 | 10.3 | 8.5 | 995,273 | 12,911 | 21 | 50,000 | 0 | 3,831 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.9 | 116,343 | 270 | 3 | 85,488 | 1 | 42,744 | osh-native |
ex.abuild-print-help | 22 | 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 |
6 | 3 | 3 | 1.6 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
106 | 63 | 50 | 3.4 | zsh | - |
16 | 12 | 4 | 30.0 | bumpleak/osh | mut |
20 | 20 | 0 | 28.7 | _bin/cxx-opt+bumproot/osh | mut |
23 | 15 | 8 | 30.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 25 | 4 | 25.2 | osh-native | mut+alloc |
32 | 28 | 4 | 25.6 | osh-native | mut+alloc+free |
39 | 31 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
40 | 32 | 8 | 18.2 | osh-native | mut+alloc+free+gc+exit |
45 | 36 | 8 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
56 | 56 | 0 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
28 | 15 | 12 | 24.9 | osh-native-souffle | mut+alloc |
30 | 22 | 7 | 25.3 | osh-native-souffle | mut+alloc+free |
35 | 20 | 16 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
37 | 25 | 12 | 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 |
22 | 22 | 0 | 1.4 | dash | - |
78 | 74 | 4 | 3.1 | bash | - |
379 | 190 | 210 | 3.5 | zsh | - |
48 | 36 | 12 | 85.3 | bumpleak/osh | mut |
60 | 52 | 8 | 85.0 | _bin/cxx-opt+bumproot/osh | mut |
71 | 67 | 4 | 86.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 62 | 35 | 73.6 | osh-native | mut+alloc |
105 | 70 | 35 | 75.3 | osh-native | mut+alloc+free |
183 | 170 | 12 | 45.9 | osh-native | mut+alloc+free+gc |
183 | 174 | 8 | 46.0 | osh-native | mut+alloc+free+gc+exit |
139 | 95 | 44 | 98.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
267 | 231 | 36 | 60.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 56 | 32 | 73.0 | osh-native-souffle | mut+alloc |
96 | 64 | 32 | 75.0 | osh-native-souffle | mut+alloc+free |
158 | 142 | 16 | 49.8 | osh-native-souffle | mut+alloc+free+gc |
172 | 136 | 36 | 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 |
3 | 2 | 0 | 1.4 | dash | - |
6 | 6 | 0 | 2.9 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 3 | 3 | 12.3 | bumpleak/osh | mut |
8 | 0 | 7 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
8 | 0 | 8 | 12.6 | _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 | 5 | 5 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 4 | 8 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 4 | 4 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
9 | 9 | 0 | 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 | 10 | 0 | 1.4 | dash | - |
29 | 28 | 0 | 2.9 | bash | - |
24 | 24 | 0 | 3.4 | zsh | - |
18 | 18 | 0 | 31.3 | bumpleak/osh | mut |
26 | 26 | 0 | 32.8 | _bin/cxx-opt+bumproot/osh | mut |
29 | 29 | 0 | 31.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 22 | 15 | 26.3 | osh-native | mut+alloc |
38 | 26 | 13 | 26.6 | osh-native | mut+alloc+free |
29 | 29 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 50 | 4 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 19 | 11 | 25.7 | osh-native-souffle | mut+alloc |
32 | 24 | 8 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.5 | 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 |
74 | 74 | 0 | 3.0 | bash | - |
169 | 125 | 44 | 53.7 | bumpleak/osh | mut |
180 | 96 | 84 | 55.6 | _bin/cxx-opt+bumproot/osh | mut |
194 | 137 | 57 | 56.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 130 | 81 | 47.0 | osh-native | mut+alloc |
222 | 186 | 36 | 48.8 | osh-native | mut+alloc+free |
183 | 142 | 41 | 8.8 | osh-native | mut+alloc+free+gc |
184 | 124 | 60 | 8.8 | osh-native | mut+alloc+free+gc+exit |
235 | 157 | 77 | 63.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 138 | 71 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
207 | 135 | 72 | 46.7 | osh-native-souffle | mut+alloc |
216 | 152 | 64 | 48.3 | osh-native-souffle | mut+alloc+free |
177 | 110 | 67 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
177 | 118 | 59 | 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 | 9 | 1 | 3.4 | dash | - |
20 | 17 | 3 | 4.5 | bash | - |
18 | 16 | 2 | 3.4 | zsh | - |
19 | 11 | 8 | 13.4 | bumpleak/osh | mut |
22 | 20 | 2 | 13.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 14 | 9 | 13.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 17 | 5 | 11.1 | osh-native | mut+alloc |
23 | 17 | 6 | 11.0 | osh-native | mut+alloc+free |
23 | 11 | 13 | 8.9 | osh-native | mut+alloc+free+gc |
24 | 19 | 5 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 15 | 11 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 18 | 9 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 7 | 13 | 10.5 | osh-native-souffle | mut+alloc |
22 | 6 | 17 | 10.4 | osh-native-souffle | mut+alloc+free |
22 | 11 | 11 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
23 | 13 | 10 | 8.8 | osh-native-souffle | mut+alloc+free+gc+exit |