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 | 4 | 10 | 12.1 | 18.0 | 476,742 | 1,282 | 6 | 409,294 | 5 | 204,647 | osh-native |
parse.configure-cpython | 34 | 4 | 11 | 12.0 | 17.7 | 476,742 | 1,282 | 6 | 408,794 | 5 | 204,397 | osh-native-souffle |
parse.configure-coreutils | 176 | 28 | 88 | 41.1 | 45.9 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 152 | 27 | 75 | 44.6 | 49.5 | 1,653,329 | 4,764 | 12 | 1,030,678 | 6 | 769,423 | osh-native-souffle |
parse.abuild | 10 | 1 | 1 | 2.6 | 8.7 | 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 | 1 | 2.1 | 8.1 | 579,597 | 22,608 | 12 | 50,000 | 0 | 2,910 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.1 | 7.6 | 579,597 | 22,608 | 12 | 50,000 | 0 | 2,848 | osh-native-souffle |
ex.bashcomp-parse-help | 181 | 0 | 4 | 10.3 | 8.8 | 995,279 | 15,258 | 21 | 50,000 | 0 | 3,893 | osh-native |
ex.bashcomp-parse-help | 174 | 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.6 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
106 | 57 | 56 | 3.4 | zsh | - |
17 | 12 | 4 | 28.1 | bumpleak/osh | mut |
20 | 11 | 8 | 29.9 | _bin/cxx-opt+bumproot/osh | mut |
22 | 22 | 0 | 29.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 19 | 11 | 25.0 | osh-native | mut+alloc |
33 | 24 | 8 | 25.7 | osh-native | mut+alloc+free |
37 | 33 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
38 | 29 | 8 | 18.2 | osh-native | mut+alloc+free+gc+exit |
44 | 28 | 16 | 32.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
50 | 46 | 4 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 12 | 15 | 24.8 | osh-native-souffle | mut+alloc |
29 | 22 | 7 | 25.4 | osh-native-souffle | mut+alloc+free |
34 | 26 | 9 | 17.7 | 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 |
21 | 18 | 4 | 1.6 | dash | - |
78 | 74 | 4 | 3.1 | bash | - |
383 | 221 | 182 | 3.7 | zsh | - |
50 | 42 | 8 | 84.0 | bumpleak/osh | mut |
61 | 49 | 12 | 85.2 | _bin/cxx-opt+bumproot/osh | mut |
71 | 39 | 31 | 86.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 66 | 33 | 73.4 | osh-native | mut+alloc |
107 | 83 | 24 | 75.4 | osh-native | mut+alloc+free |
176 | 152 | 24 | 45.9 | osh-native | mut+alloc+free+gc |
180 | 156 | 24 | 46.1 | osh-native | mut+alloc+free+gc+exit |
139 | 96 | 44 | 97.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
251 | 219 | 32 | 62.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
89 | 52 | 36 | 73.1 | osh-native-souffle | mut+alloc |
96 | 60 | 36 | 74.9 | osh-native-souffle | mut+alloc+free |
152 | 132 | 20 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
163 | 135 | 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 | 6 | 0 | 2.9 | bash | - |
8 | 0 | 7 | 3.3 | zsh | - |
6 | 3 | 3 | 12.0 | bumpleak/osh | mut |
7 | 3 | 3 | 11.0 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 3 | 6 | 10.1 | osh-native | mut+alloc |
9 | 6 | 3 | 10.0 | osh-native | mut+alloc+free |
10 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 0 | 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.7 | osh-native-souffle | mut+alloc+free |
8 | 8 | 0 | 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.4 | dash | - |
29 | 24 | 4 | 3.0 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
18 | 18 | 0 | 30.9 | bumpleak/osh | mut |
25 | 21 | 4 | 31.4 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 18 | 18 | 25.8 | osh-native | mut+alloc |
38 | 19 | 19 | 26.1 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.1 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
55 | 38 | 17 | 35.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 27 | 4 | 25.3 | osh-native-souffle | mut+alloc |
32 | 16 | 16 | 26.0 | 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 |
73 | 73 | 0 | 3.1 | bash | - |
168 | 112 | 56 | 54.4 | bumpleak/osh | mut |
183 | 107 | 75 | 56.0 | _bin/cxx-opt+bumproot/osh | mut |
195 | 139 | 56 | 55.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 123 | 87 | 47.1 | osh-native | mut+alloc |
219 | 150 | 69 | 48.7 | osh-native | mut+alloc+free |
181 | 132 | 48 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 141 | 40 | 8.8 | osh-native | mut+alloc+free+gc+exit |
235 | 129 | 105 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
212 | 172 | 40 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 156 | 48 | 46.6 | osh-native-souffle | mut+alloc |
214 | 133 | 81 | 48.3 | osh-native-souffle | mut+alloc+free |
174 | 118 | 55 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
174 | 115 | 59 | 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 | 6 | 4 | 3.4 | dash | - |
20 | 13 | 8 | 4.3 | bash | - |
18 | 14 | 5 | 3.5 | zsh | - |
20 | 19 | 1 | 12.3 | bumpleak/osh | mut |
20 | 7 | 13 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
21 | 14 | 7 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 8 | 14 | 11.0 | osh-native | mut+alloc |
24 | 11 | 13 | 11.1 | osh-native | mut+alloc+free |
22 | 14 | 9 | 9.0 | osh-native | mut+alloc+free+gc |
24 | 17 | 7 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 15 | 10 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 10 | 16 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 13 | 8 | 10.6 | osh-native-souffle | mut+alloc |
21 | 20 | 2 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 16 | 6 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 14 | 9 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |