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 | 34 | 3 | 9 | 12.1 | 18.0 | 476,742 | 1,282 | 6 | 409,294 | 5 | 204,647 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.4 | 476,742 | 1,282 | 6 | 408,794 | 5 | 204,397 | osh-native-souffle |
parse.configure-coreutils | 147 | 19 | 64 | 41.1 | 45.9 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 137 | 22 | 60 | 44.6 | 49.7 | 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.1 | 101,933 | 180 | 2 | 75,136 | 1 | 37,568 | osh-native-souffle |
ex.compute-fib | 27 | 0 | 1 | 2.1 | 8.0 | 579,597 | 22,608 | 12 | 50,000 | 0 | 2,910 | osh-native |
ex.compute-fib | 21 | 0 | 2 | 2.1 | 7.5 | 579,597 | 22,608 | 12 | 50,000 | 0 | 2,848 | osh-native-souffle |
ex.bashcomp-parse-help | 185 | 0 | 3 | 10.3 | 8.8 | 995,279 | 15,258 | 21 | 50,000 | 0 | 3,893 | osh-native |
ex.bashcomp-parse-help | 178 | 0 | 4 | 10.3 | 8.3 | 995,278 | 15,258 | 21 | 50,000 | 0 | 3,838 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,309 | 277 | 3 | 85,502 | 1 | 42,751 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.5 | 116,309 | 277 | 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.4 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
102 | 59 | 50 | 3.4 | zsh | - |
16 | 12 | 4 | 28.9 | bumpleak/osh | mut |
20 | 19 | 0 | 28.8 | _bin/cxx-opt+bumproot/osh | mut |
22 | 11 | 11 | 30.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 16 | 12 | 25.3 | osh-native | mut+alloc |
31 | 22 | 9 | 25.6 | osh-native | mut+alloc+free |
34 | 26 | 9 | 18.0 | osh-native | mut+alloc+free+gc |
35 | 23 | 12 | 18.2 | osh-native | mut+alloc+free+gc+exit |
44 | 36 | 8 | 32.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 36 | 12 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 26 | 0 | 25.0 | osh-native-souffle | mut+alloc |
28 | 20 | 8 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 33 | 0 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
33 | 25 | 8 | 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 | 21 | 0 | 1.6 | dash | - |
78 | 74 | 4 | 3.0 | bash | - |
378 | 206 | 192 | 3.5 | zsh | - |
48 | 44 | 4 | 85.4 | bumpleak/osh | mut |
59 | 54 | 4 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
70 | 66 | 4 | 86.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
95 | 59 | 36 | 73.4 | osh-native | mut+alloc |
104 | 68 | 36 | 75.4 | osh-native | mut+alloc+free |
147 | 131 | 16 | 45.9 | osh-native | mut+alloc+free+gc |
151 | 120 | 32 | 46.1 | osh-native | mut+alloc+free+gc+exit |
138 | 105 | 32 | 98.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
216 | 196 | 20 | 61.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 59 | 28 | 73.2 | osh-native-souffle | mut+alloc |
95 | 55 | 40 | 75.0 | osh-native-souffle | mut+alloc+free |
137 | 112 | 24 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
140 | 112 | 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.4 | dash | - |
6 | 3 | 3 | 2.9 | bash | - |
8 | 0 | 7 | 3.3 | zsh | - |
6 | 6 | 0 | 11.4 | bumpleak/osh | mut |
7 | 7 | 0 | 11.5 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 12.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.1 | osh-native | mut+alloc |
8 | 8 | 0 | 10.2 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc+exit |
11 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 7 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 8 | 0 | 9.6 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 8 | 0 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
8 | 3 | 5 | 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 | 7 | 3 | 1.4 | dash | - |
28 | 24 | 4 | 2.9 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
19 | 19 | 0 | 31.5 | bumpleak/osh | mut |
25 | 21 | 4 | 31.3 | _bin/cxx-opt+bumproot/osh | mut |
28 | 23 | 4 | 31.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 32 | 4 | 26.1 | osh-native | mut+alloc |
36 | 22 | 14 | 26.3 | osh-native | mut+alloc+free |
27 | 23 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
27 | 27 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 41 | 12 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
29 | 25 | 4 | 25.7 | osh-native-souffle | mut+alloc |
30 | 17 | 13 | 25.8 | osh-native-souffle | mut+alloc+free |
21 | 17 | 4 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
21 | 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 |
72 | 72 | 0 | 3.0 | bash | - |
167 | 103 | 64 | 55.9 | bumpleak/osh | mut |
183 | 103 | 79 | 55.7 | _bin/cxx-opt+bumproot/osh | mut |
194 | 125 | 69 | 55.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 138 | 73 | 47.0 | osh-native | mut+alloc |
219 | 127 | 91 | 48.8 | osh-native | mut+alloc+free |
185 | 132 | 52 | 8.8 | osh-native | mut+alloc+free+gc |
181 | 112 | 68 | 8.8 | osh-native | mut+alloc+free+gc+exit |
230 | 157 | 73 | 64.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 148 | 60 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
203 | 127 | 76 | 46.6 | osh-native-souffle | mut+alloc |
211 | 131 | 79 | 48.3 | osh-native-souffle | mut+alloc+free |
178 | 130 | 47 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
174 | 125 | 49 | 8.1 | 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 | 2 | 3.4 | dash | - |
19 | 13 | 7 | 4.3 | bash | - |
18 | 14 | 5 | 3.5 | zsh | - |
18 | 10 | 8 | 11.6 | bumpleak/osh | mut |
19 | 13 | 6 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
20 | 14 | 7 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 17 | 4 | 11.0 | osh-native | mut+alloc |
22 | 13 | 9 | 11.3 | osh-native | mut+alloc+free |
22 | 17 | 5 | 9.0 | osh-native | mut+alloc+free+gc |
22 | 14 | 9 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 5 | 20 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 19 | 6 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 19 | 1 | 10.6 | osh-native-souffle | mut+alloc |
21 | 7 | 15 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 16 | 6 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
21 | 14 | 8 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |