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 | 5 | 11 | 12.1 | 18.0 | 476,742 | 1,282 | 6 | 409,294 | 5 | 204,647 | osh-native |
parse.configure-cpython | 34 | 4 | 10 | 12.0 | 17.6 | 476,742 | 1,282 | 6 | 408,794 | 5 | 204,397 | osh-native-souffle |
parse.configure-coreutils | 171 | 26 | 84 | 41.1 | 45.9 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 149 | 26 | 71 | 44.6 | 49.5 | 1,653,329 | 4,764 | 12 | 1,030,678 | 6 | 769,423 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,933 | 180 | 2 | 75,266 | 1 | 37,633 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.3 | 101,933 | 180 | 2 | 75,136 | 1 | 37,568 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.4 | 8.0 | 584,198 | 22,608 | 12 | 50,000 | 0 | 2,910 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.4 | 7.6 | 584,198 | 22,608 | 12 | 50,000 | 0 | 2,848 | osh-native-souffle |
ex.bashcomp-parse-help | 180 | 0 | 4 | 10.3 | 8.8 | 995,279 | 12,911 | 21 | 50,000 | 0 | 3,898 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 3 | 10.3 | 8.4 | 995,278 | 12,911 | 21 | 50,000 | 0 | 3,838 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 116,348 | 270 | 3 | 85,502 | 1 | 42,751 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.5 | 116,348 | 270 | 3 | 85,378 | 1 | 42,689 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
24 | 23 | 0 | 2.9 | bash | - |
106 | 54 | 58 | 3.4 | zsh | - |
16 | 15 | 0 | 28.7 | bumpleak/osh | mut |
20 | 12 | 8 | 28.5 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 29.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 15 | 15 | 25.2 | osh-native | mut+alloc |
32 | 20 | 12 | 25.6 | osh-native | mut+alloc+free |
37 | 37 | 0 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 37 | 0 | 18.1 | osh-native | mut+alloc+free+gc+exit |
45 | 26 | 19 | 33.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
52 | 41 | 11 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
28 | 23 | 4 | 24.9 | osh-native-souffle | mut+alloc |
29 | 17 | 12 | 25.2 | osh-native-souffle | mut+alloc+free |
34 | 25 | 8 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
36 | 32 | 4 | 17.8 | 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 | 77 | 0 | 3.3 | bash | - |
380 | 193 | 208 | 3.5 | zsh | - |
49 | 36 | 12 | 84.7 | bumpleak/osh | mut |
59 | 55 | 4 | 86.0 | _bin/cxx-opt+bumproot/osh | mut |
70 | 46 | 23 | 86.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 62 | 35 | 73.6 | osh-native | mut+alloc |
106 | 67 | 39 | 75.3 | osh-native | mut+alloc+free |
171 | 146 | 24 | 45.9 | osh-native | mut+alloc+free+gc |
181 | 153 | 27 | 46.1 | osh-native | mut+alloc+free+gc+exit |
140 | 100 | 40 | 99.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
257 | 222 | 36 | 62.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 64 | 24 | 73.3 | osh-native-souffle | mut+alloc |
97 | 53 | 44 | 75.0 | osh-native-souffle | mut+alloc+free |
149 | 110 | 39 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
167 | 135 | 32 | 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 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 6 | 0 | 10.7 | bumpleak/osh | mut |
7 | 3 | 3 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 0 | 9 | 10.2 | osh-native | mut+alloc |
9 | 6 | 3 | 10.2 | osh-native | mut+alloc+free |
9 | 3 | 6 | 8.5 | osh-native | mut+alloc+free+gc |
10 | 6 | 3 | 8.8 | osh-native | mut+alloc+free+gc+exit |
11 | 8 | 4 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
13 | 9 | 3 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 8 | 0 | 9.8 | osh-native-souffle | mut+alloc |
9 | 9 | 0 | 9.7 | osh-native-souffle | mut+alloc+free |
8 | 8 | 0 | 8.3 | 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 | 10 | 0 | 1.4 | dash | - |
29 | 28 | 0 | 2.9 | bash | - |
23 | 19 | 4 | 3.3 | zsh | - |
18 | 18 | 0 | 32.9 | bumpleak/osh | mut |
26 | 25 | 0 | 31.6 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 16 | 20 | 26.5 | osh-native | mut+alloc |
39 | 31 | 8 | 26.7 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
53 | 45 | 8 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 37 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 17 | 13 | 26.0 | osh-native-souffle | mut+alloc |
32 | 24 | 8 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
23 | 18 | 4 | 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 | 65 | 8 | 3.0 | bash | - |
171 | 131 | 41 | 54.0 | bumpleak/osh | mut |
181 | 122 | 59 | 55.6 | _bin/cxx-opt+bumproot/osh | mut |
194 | 135 | 59 | 56.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 125 | 85 | 47.0 | osh-native | mut+alloc |
219 | 147 | 72 | 48.7 | osh-native | mut+alloc+free |
180 | 136 | 44 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 146 | 36 | 8.8 | osh-native | mut+alloc+free+gc+exit |
235 | 143 | 91 | 64.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
212 | 132 | 80 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
205 | 140 | 64 | 46.6 | osh-native-souffle | mut+alloc |
212 | 134 | 77 | 48.4 | osh-native-souffle | mut+alloc+free |
175 | 114 | 61 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
176 | 96 | 80 | 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 | 9 | 1 | 3.5 | dash | - |
20 | 12 | 8 | 4.5 | bash | - |
18 | 13 | 5 | 3.5 | zsh | - |
18 | 12 | 7 | 11.6 | bumpleak/osh | mut |
20 | 19 | 1 | 13.8 | _bin/cxx-opt+bumproot/osh | mut |
22 | 14 | 9 | 13.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 7 | 15 | 11.0 | osh-native | mut+alloc |
22 | 18 | 5 | 11.0 | osh-native | mut+alloc+free |
22 | 12 | 11 | 8.9 | osh-native | mut+alloc+free+gc |
22 | 20 | 3 | 9.2 | osh-native | mut+alloc+free+gc+exit |
25 | 22 | 4 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 13 | 12 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
21 | 10 | 11 | 10.6 | osh-native-souffle | mut+alloc |
21 | 11 | 10 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 17 | 5 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 15 | 7 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |