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 | 36 | 4 | 10 | 12.1 | 18.1 | 476,736 | 1,282 | 6 | 409,278 | 5 | 204,639 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.6 | 476,736 | 1,282 | 6 | 408,778 | 5 | 204,389 | osh-native-souffle |
parse.configure-coreutils | 174 | 26 | 87 | 41.1 | 45.9 | 1,653,324 | 4,764 | 12 | 1,591,960 | 7 | 795,980 | osh-native |
parse.configure-coreutils | 160 | 30 | 82 | 44.6 | 49.5 | 1,653,323 | 4,764 | 12 | 1,030,662 | 6 | 769,415 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,927 | 180 | 2 | 75,250 | 1 | 37,625 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.3 | 101,927 | 180 | 2 | 75,120 | 1 | 37,560 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.4 | 8.0 | 584,192 | 22,608 | 12 | 50,000 | 0 | 2,902 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.4 | 7.6 | 584,192 | 22,608 | 12 | 50,000 | 0 | 2,840 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 3 | 10.3 | 8.8 | 995,273 | 12,911 | 21 | 50,000 | 0 | 3,890 | osh-native |
ex.bashcomp-parse-help | 174 | 0 | 3 | 10.3 | 8.3 | 995,272 | 12,911 | 21 | 50,000 | 0 | 3,830 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.0 | 116,342 | 270 | 3 | 85,486 | 1 | 42,743 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.5 | 116,342 | 270 | 3 | 85,362 | 1 | 42,681 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
24 | 19 | 4 | 3.1 | bash | - |
106 | 54 | 59 | 3.4 | zsh | - |
17 | 12 | 4 | 28.1 | bumpleak/osh | mut |
20 | 16 | 4 | 28.4 | _bin/cxx-opt+bumproot/osh | mut |
23 | 11 | 11 | 28.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 4 | 25 | 25.2 | osh-native | mut+alloc |
32 | 12 | 20 | 25.7 | osh-native | mut+alloc+free |
36 | 28 | 8 | 18.1 | osh-native | mut+alloc+free+gc |
37 | 32 | 4 | 18.2 | osh-native | mut+alloc+free+gc+exit |
44 | 35 | 8 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 41 | 7 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 19 | 8 | 24.9 | osh-native-souffle | mut+alloc |
29 | 29 | 0 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 29 | 4 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 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 |
22 | 18 | 4 | 1.6 | dash | - |
78 | 78 | 0 | 3.1 | bash | - |
382 | 205 | 198 | 3.5 | zsh | - |
49 | 44 | 4 | 85.0 | bumpleak/osh | mut |
59 | 43 | 15 | 86.2 | _bin/cxx-opt+bumproot/osh | mut |
71 | 62 | 8 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 70 | 27 | 73.6 | osh-native | mut+alloc |
105 | 82 | 23 | 75.4 | osh-native | mut+alloc+free |
174 | 158 | 16 | 45.9 | osh-native | mut+alloc+free+gc |
175 | 162 | 12 | 45.9 | osh-native | mut+alloc+free+gc+exit |
138 | 102 | 35 | 99.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
241 | 221 | 20 | 61.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 59 | 27 | 73.2 | osh-native-souffle | mut+alloc |
96 | 80 | 16 | 75.0 | osh-native-souffle | mut+alloc+free |
160 | 127 | 32 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
162 | 141 | 20 | 50.4 | 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 | 0 | 2 | 1.4 | dash | - |
6 | 3 | 3 | 3.0 | bash | - |
8 | 4 | 4 | 3.1 | zsh | - |
7 | 0 | 6 | 11.4 | bumpleak/osh | mut |
7 | 3 | 3 | 10.8 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 11.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.8 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 8 | 0 | 9.8 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.7 | osh-native-souffle | mut+alloc+free |
8 | 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.6 | dash | - |
29 | 25 | 4 | 2.9 | bash | - |
24 | 24 | 0 | 3.3 | zsh | - |
19 | 11 | 7 | 32.5 | bumpleak/osh | mut |
26 | 25 | 0 | 32.0 | _bin/cxx-opt+bumproot/osh | mut |
29 | 28 | 0 | 33.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 29 | 8 | 26.2 | osh-native | mut+alloc |
38 | 30 | 8 | 26.7 | osh-native | mut+alloc+free |
28 | 21 | 7 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 45 | 8 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 21 | 9 | 26.0 | osh-native-souffle | mut+alloc |
32 | 20 | 12 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 22 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
21 | 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 | 65 | 8 | 3.0 | bash | - |
169 | 106 | 63 | 55.9 | bumpleak/osh | mut |
180 | 96 | 84 | 55.1 | _bin/cxx-opt+bumproot/osh | mut |
196 | 124 | 72 | 56.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 116 | 96 | 47.1 | osh-native | mut+alloc |
219 | 146 | 73 | 48.8 | osh-native | mut+alloc+free |
182 | 121 | 61 | 8.8 | osh-native | mut+alloc+free+gc |
185 | 133 | 52 | 8.8 | osh-native | mut+alloc+free+gc+exit |
237 | 164 | 72 | 63.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 151 | 60 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 128 | 76 | 46.5 | osh-native-souffle | mut+alloc |
211 | 135 | 76 | 48.3 | osh-native-souffle | mut+alloc+free |
174 | 117 | 57 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
174 | 118 | 55 | 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 | 8 | 1 | 3.5 | dash | - |
20 | 18 | 2 | 4.5 | bash | - |
18 | 17 | 2 | 3.5 | zsh | - |
18 | 12 | 6 | 13.1 | bumpleak/osh | mut |
21 | 15 | 6 | 13.4 | _bin/cxx-opt+bumproot/osh | mut |
20 | 11 | 9 | 12.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 14 | 7 | 10.7 | osh-native | mut+alloc |
23 | 20 | 2 | 11.0 | osh-native | mut+alloc+free |
23 | 15 | 8 | 9.0 | osh-native | mut+alloc+free+gc |
24 | 16 | 8 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 17 | 8 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 20 | 5 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 13 | 8 | 10.6 | osh-native-souffle | mut+alloc |
21 | 14 | 8 | 10.6 | osh-native-souffle | mut+alloc+free |
22 | 11 | 11 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 16 | 7 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |