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 | 38 | 4 | 11 | 12.1 | 18.1 | 476,735 | 1,282 | 6 | 409,280 | 5 | 204,640 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.7 | 476,735 | 1,282 | 6 | 408,780 | 5 | 204,390 | osh-native-souffle |
parse.configure-coreutils | 185 | 28 | 96 | 41.1 | 45.8 | 1,653,323 | 4,764 | 12 | 1,591,962 | 7 | 795,981 | osh-native |
parse.configure-coreutils | 158 | 27 | 80 | 44.6 | 49.7 | 1,653,322 | 4,764 | 12 | 1,030,664 | 6 | 769,416 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,926 | 180 | 2 | 75,252 | 1 | 37,626 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.1 | 101,926 | 180 | 2 | 75,122 | 1 | 37,561 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 2 | 2.4 | 7.9 | 584,191 | 22,608 | 12 | 50,000 | 0 | 2,903 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.4 | 7.6 | 584,191 | 22,608 | 12 | 50,000 | 0 | 2,841 | osh-native-souffle |
ex.bashcomp-parse-help | 186 | 0 | 4 | 10.3 | 8.7 | 995,272 | 12,911 | 21 | 50,000 | 0 | 3,891 | osh-native |
ex.bashcomp-parse-help | 176 | 0 | 4 | 10.3 | 8.1 | 995,271 | 12,911 | 21 | 50,000 | 0 | 3,831 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.0 | 116,341 | 270 | 3 | 85,488 | 1 | 42,744 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.5 | 116,341 | 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.4 | dash | - |
23 | 15 | 8 | 3.0 | bash | - |
107 | 51 | 63 | 3.4 | zsh | - |
15 | 12 | 4 | 28.7 | bumpleak/osh | mut |
20 | 19 | 0 | 29.0 | _bin/cxx-opt+bumproot/osh | mut |
23 | 23 | 0 | 29.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 11 | 19 | 25.2 | osh-native | mut+alloc |
32 | 20 | 12 | 25.6 | osh-native | mut+alloc+free |
38 | 33 | 4 | 18.1 | osh-native | mut+alloc+free+gc |
39 | 27 | 12 | 18.1 | osh-native | mut+alloc+free+gc+exit |
45 | 28 | 16 | 32.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
52 | 44 | 8 | 22.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 11 | 15 | 24.8 | osh-native-souffle | mut+alloc |
29 | 16 | 12 | 25.2 | osh-native-souffle | mut+alloc+free |
33 | 29 | 4 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
35 | 31 | 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.4 | dash | - |
79 | 79 | 0 | 3.3 | bash | - |
386 | 215 | 192 | 3.5 | zsh | - |
49 | 45 | 4 | 85.0 | bumpleak/osh | mut |
61 | 44 | 16 | 85.3 | _bin/cxx-opt+bumproot/osh | mut |
72 | 44 | 28 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 65 | 33 | 73.4 | osh-native | mut+alloc |
107 | 63 | 43 | 75.4 | osh-native | mut+alloc+free |
185 | 168 | 16 | 45.8 | osh-native | mut+alloc+free+gc |
189 | 172 | 16 | 46.0 | osh-native | mut+alloc+free+gc+exit |
139 | 83 | 56 | 99.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
273 | 229 | 44 | 62.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 46 | 41 | 73.0 | osh-native-souffle | mut+alloc |
94 | 59 | 35 | 75.1 | osh-native-souffle | mut+alloc+free |
158 | 125 | 32 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
162 | 134 | 28 | 50.5 | 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 | 8 | 0 | 3.3 | zsh | - |
7 | 7 | 0 | 11.8 | bumpleak/osh | mut |
7 | 0 | 7 | 11.1 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 10.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 5 | 5 | 10.0 | osh-native | mut+alloc |
9 | 5 | 5 | 10.1 | osh-native | mut+alloc+free |
9 | 5 | 5 | 8.5 | osh-native | mut+alloc+free+gc |
10 | 10 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 0 | 12 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 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 |
9 | 9 | 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 |
10 | 7 | 3 | 1.4 | dash | - |
29 | 25 | 4 | 2.9 | bash | - |
24 | 24 | 0 | 3.3 | zsh | - |
19 | 11 | 8 | 32.6 | bumpleak/osh | mut |
26 | 19 | 8 | 32.2 | _bin/cxx-opt+bumproot/osh | mut |
28 | 28 | 0 | 32.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 16 | 20 | 26.2 | osh-native | mut+alloc |
39 | 31 | 8 | 26.7 | osh-native | mut+alloc+free |
29 | 25 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
29 | 25 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
55 | 34 | 21 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 34 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 26 | 4 | 26.0 | osh-native-souffle | mut+alloc |
33 | 20 | 12 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 15 | 7 | 7.6 | 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 |
75 | 71 | 4 | 3.1 | bash | - |
168 | 124 | 44 | 53.8 | bumpleak/osh | mut |
190 | 127 | 60 | 54.8 | _bin/cxx-opt+bumproot/osh | mut |
195 | 107 | 87 | 57.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
214 | 130 | 83 | 47.2 | osh-native | mut+alloc |
219 | 138 | 81 | 48.7 | osh-native | mut+alloc+free |
186 | 138 | 47 | 8.7 | osh-native | mut+alloc+free+gc |
182 | 121 | 61 | 8.9 | osh-native | mut+alloc+free+gc+exit |
233 | 149 | 85 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
213 | 149 | 64 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
207 | 155 | 52 | 46.6 | osh-native-souffle | mut+alloc |
214 | 150 | 65 | 48.3 | osh-native-souffle | mut+alloc+free |
176 | 124 | 52 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
176 | 108 | 68 | 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 | 6 | 3.5 | dash | - |
20 | 10 | 11 | 4.5 | bash | - |
18 | 11 | 8 | 3.4 | zsh | - |
18 | 11 | 8 | 13.2 | bumpleak/osh | mut |
21 | 13 | 9 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
20 | 17 | 4 | 12.2 | _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 |
23 | 20 | 3 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 14 | 9 | 9.3 | osh-native | mut+alloc+free+gc+exit |
25 | 14 | 11 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 23 | 4 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
21 | 15 | 6 | 10.6 | osh-native-souffle | mut+alloc |
21 | 20 | 2 | 10.9 | osh-native-souffle | mut+alloc+free |
21 | 12 | 10 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
23 | 23 | 0 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |