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,742 | 1,282 | 6 | 409,294 | 5 | 204,647 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.7 | 476,742 | 1,282 | 6 | 408,794 | 5 | 204,397 | osh-native-souffle |
parse.configure-coreutils | 156 | 21 | 70 | 41.1 | 45.9 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 156 | 28 | 77 | 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 | 28 | 0 | 2 | 2.1 | 7.7 | 579,597 | 22,608 | 12 | 50,000 | 0 | 2,910 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.1 | 7.6 | 579,597 | 22,608 | 12 | 50,000 | 0 | 2,848 | osh-native-souffle |
ex.bashcomp-parse-help | 180 | 0 | 4 | 10.3 | 8.8 | 995,279 | 15,258 | 21 | 50,000 | 0 | 3,893 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 3 | 10.3 | 8.3 | 995,278 | 15,258 | 21 | 50,000 | 0 | 3,838 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.9 | 116,309 | 277 | 3 | 85,502 | 1 | 42,751 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 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.1 | bash | - |
105 | 56 | 55 | 3.4 | zsh | - |
17 | 13 | 4 | 28.4 | bumpleak/osh | mut |
19 | 15 | 4 | 29.1 | _bin/cxx-opt+bumproot/osh | mut |
23 | 19 | 4 | 28.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 8 | 21 | 25.0 | osh-native | mut+alloc |
32 | 8 | 24 | 25.6 | osh-native | mut+alloc+free |
36 | 24 | 12 | 18.1 | osh-native | mut+alloc+free+gc |
38 | 29 | 8 | 18.1 | osh-native | mut+alloc+free+gc+exit |
44 | 24 | 20 | 32.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
50 | 46 | 4 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
28 | 8 | 19 | 24.8 | osh-native-souffle | mut+alloc |
29 | 21 | 8 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 28 | 4 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
34 | 30 | 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 | 21 | 0 | 1.4 | dash | - |
78 | 74 | 4 | 3.3 | bash | - |
375 | 166 | 230 | 3.5 | zsh | - |
49 | 41 | 8 | 85.9 | bumpleak/osh | mut |
60 | 55 | 4 | 85.4 | _bin/cxx-opt+bumproot/osh | mut |
70 | 61 | 8 | 85.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 64 | 32 | 73.4 | osh-native | mut+alloc |
108 | 52 | 56 | 75.4 | osh-native | mut+alloc+free |
156 | 128 | 28 | 45.9 | osh-native | mut+alloc+free+gc |
160 | 140 | 20 | 46.1 | osh-native | mut+alloc+free+gc+exit |
140 | 84 | 56 | 99.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
215 | 187 | 28 | 61.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 56 | 32 | 73.0 | osh-native-souffle | mut+alloc |
96 | 72 | 24 | 75.0 | osh-native-souffle | mut+alloc+free |
156 | 139 | 16 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
157 | 136 | 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 | 2 | 0 | 1.3 | dash | - |
6 | 3 | 3 | 2.9 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 6 | 0 | 11.8 | bumpleak/osh | mut |
6 | 0 | 6 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.2 | osh-native | mut+alloc |
9 | 3 | 6 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.5 | osh-native | mut+alloc+free+gc+exit |
11 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 7 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 4 | 4 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
8 | 4 | 4 | 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 |
11 | 10 | 0 | 1.4 | dash | - |
29 | 25 | 4 | 2.9 | bash | - |
24 | 16 | 8 | 3.1 | zsh | - |
18 | 14 | 4 | 31.1 | bumpleak/osh | mut |
26 | 22 | 4 | 30.9 | _bin/cxx-opt+bumproot/osh | mut |
27 | 23 | 4 | 32.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 32 | 4 | 26.0 | osh-native | mut+alloc |
37 | 28 | 8 | 26.2 | osh-native | mut+alloc+free |
28 | 27 | 0 | 7.7 | osh-native | mut+alloc+free+gc |
27 | 23 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 29 | 25 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 37 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 22 | 7 | 25.6 | osh-native-souffle | mut+alloc |
31 | 18 | 13 | 25.8 | osh-native-souffle | mut+alloc+free |
22 | 22 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 22 | 0 | 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 |
72 | 60 | 12 | 3.3 | bash | - |
168 | 110 | 57 | 54.4 | bumpleak/osh | mut |
180 | 124 | 56 | 55.6 | _bin/cxx-opt+bumproot/osh | mut |
195 | 147 | 48 | 56.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
209 | 116 | 92 | 47.1 | osh-native | mut+alloc |
216 | 116 | 100 | 48.8 | osh-native | mut+alloc+free |
180 | 144 | 36 | 8.8 | osh-native | mut+alloc+free+gc |
181 | 145 | 36 | 8.8 | osh-native | mut+alloc+free+gc+exit |
235 | 163 | 72 | 62.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
212 | 164 | 48 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 136 | 68 | 46.6 | osh-native-souffle | mut+alloc |
211 | 129 | 81 | 48.4 | osh-native-souffle | mut+alloc+free |
175 | 107 | 68 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
174 | 126 | 49 | 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 | 19 | 1 | 4.5 | bash | - |
18 | 8 | 10 | 3.5 | zsh | - |
20 | 12 | 8 | 12.8 | bumpleak/osh | mut |
20 | 15 | 5 | 13.7 | _bin/cxx-opt+bumproot/osh | mut |
20 | 18 | 3 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 9 | 12 | 10.9 | osh-native | mut+alloc |
22 | 20 | 3 | 11.3 | osh-native | mut+alloc+free |
23 | 13 | 10 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 22 | 1 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 14 | 11 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 23 | 2 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
19 | 10 | 10 | 10.6 | osh-native-souffle | mut+alloc |
21 | 10 | 11 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 20 | 2 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 13 | 10 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |