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 | 17.7 | 476,742 | 1,282 | 6 | 409,294 | 5 | 204,647 | osh-native |
parse.configure-cpython | 35 | 5 | 11 | 12.0 | 17.7 | 476,742 | 1,282 | 6 | 408,794 | 5 | 204,397 | osh-native-souffle |
parse.configure-coreutils | 158 | 21 | 74 | 41.1 | 45.9 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 135 | 22 | 57 | 44.6 | 49.7 | 1,653,329 | 4,764 | 12 | 1,030,678 | 6 | 769,423 | osh-native-souffle |
parse.abuild | 10 | 1 | 2 | 2.6 | 8.7 | 101,933 | 180 | 2 | 75,266 | 1 | 37,633 | osh-native |
parse.abuild | 9 | 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 | 7.9 | 584,198 | 22,608 | 12 | 50,000 | 0 | 2,910 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.4 | 7.7 | 584,198 | 22,608 | 12 | 50,000 | 0 | 2,848 | osh-native-souffle |
ex.bashcomp-parse-help | 181 | 0 | 4 | 10.3 | 8.7 | 995,279 | 12,911 | 21 | 50,000 | 0 | 3,898 | osh-native |
ex.bashcomp-parse-help | 176 | 0 | 3 | 10.3 | 8.1 | 995,278 | 12,911 | 21 | 50,000 | 0 | 3,838 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,348 | 270 | 3 | 85,502 | 1 | 42,751 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 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 |
7 | 3 | 3 | 1.6 | dash | - |
23 | 19 | 4 | 3.0 | bash | - |
104 | 55 | 56 | 3.4 | zsh | - |
16 | 16 | 0 | 29.2 | bumpleak/osh | mut |
20 | 12 | 8 | 28.9 | _bin/cxx-opt+bumproot/osh | mut |
22 | 7 | 15 | 28.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 21 | 8 | 25.2 | osh-native | mut+alloc |
31 | 27 | 4 | 25.7 | osh-native | mut+alloc+free |
36 | 32 | 4 | 17.7 | osh-native | mut+alloc+free+gc |
37 | 16 | 20 | 18.2 | osh-native | mut+alloc+free+gc+exit |
43 | 27 | 15 | 33.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 31 | 16 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 11 | 15 | 24.9 | osh-native-souffle | mut+alloc |
29 | 16 | 12 | 25.3 | osh-native-souffle | mut+alloc+free |
35 | 35 | 0 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
35 | 15 | 19 | 17.6 | 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 | - |
81 | 81 | 0 | 3.1 | bash | - |
378 | 216 | 183 | 3.5 | zsh | - |
49 | 38 | 11 | 85.8 | bumpleak/osh | mut |
60 | 48 | 12 | 84.3 | _bin/cxx-opt+bumproot/osh | mut |
71 | 67 | 4 | 86.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 58 | 39 | 73.7 | osh-native | mut+alloc |
105 | 65 | 40 | 75.4 | osh-native | mut+alloc+free |
158 | 145 | 12 | 45.9 | osh-native | mut+alloc+free+gc |
158 | 141 | 16 | 46.1 | osh-native | mut+alloc+free+gc+exit |
137 | 78 | 59 | 98.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
241 | 205 | 36 | 60.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 59 | 28 | 73.2 | osh-native-souffle | mut+alloc |
96 | 56 | 40 | 75.0 | osh-native-souffle | mut+alloc+free |
135 | 107 | 28 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
142 | 118 | 24 | 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 | 8 | 3.3 | zsh | - |
6 | 6 | 0 | 11.1 | bumpleak/osh | mut |
7 | 7 | 0 | 11.3 | _bin/cxx-opt+bumproot/osh | mut |
8 | 8 | 0 | 12.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
10 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc |
10 | 3 | 6 | 8.7 | osh-native | mut+alloc+free+gc+exit |
11 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 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 |
9 | 9 | 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 |
11 | 7 | 3 | 1.4 | dash | - |
29 | 29 | 0 | 2.9 | bash | - |
24 | 12 | 12 | 3.3 | zsh | - |
18 | 14 | 4 | 31.2 | bumpleak/osh | mut |
25 | 21 | 4 | 32.1 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.5 | osh-native | mut+alloc |
38 | 29 | 8 | 26.6 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
55 | 31 | 23 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
36 | 32 | 4 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 15 | 15 | 26.0 | osh-native-souffle | mut+alloc |
31 | 23 | 8 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.7 | osh-native-souffle | mut+alloc+free+gc |
23 | 18 | 5 | 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 | 108 | 60 | 55.6 | bumpleak/osh | mut |
180 | 132 | 48 | 55.1 | _bin/cxx-opt+bumproot/osh | mut |
205 | 120 | 84 | 56.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 161 | 48 | 47.0 | osh-native | mut+alloc |
217 | 153 | 64 | 48.7 | osh-native | mut+alloc+free |
181 | 141 | 40 | 8.7 | osh-native | mut+alloc+free+gc |
181 | 125 | 56 | 8.5 | osh-native | mut+alloc+free+gc+exit |
243 | 163 | 80 | 63.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
222 | 169 | 52 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
206 | 142 | 63 | 46.5 | osh-native-souffle | mut+alloc |
212 | 116 | 96 | 48.3 | osh-native-souffle | mut+alloc+free |
176 | 112 | 64 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
173 | 113 | 60 | 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 | 16 | 4 | 4.5 | bash | - |
18 | 10 | 8 | 3.5 | zsh | - |
18 | 10 | 8 | 13.1 | bumpleak/osh | mut |
20 | 12 | 8 | 12.8 | _bin/cxx-opt+bumproot/osh | mut |
20 | 13 | 7 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
20 | 17 | 4 | 11.0 | osh-native | mut+alloc |
22 | 15 | 7 | 11.1 | osh-native | mut+alloc+free |
22 | 21 | 2 | 9.0 | osh-native | mut+alloc+free+gc |
22 | 16 | 7 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 19 | 6 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 17 | 8 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 11 | 10 | 10.5 | osh-native-souffle | mut+alloc |
21 | 11 | 10 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 19 | 3 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 15 | 7 | 8.4 | osh-native-souffle | mut+alloc+free+gc+exit |