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 | 39 | 5 | 12 | 12.0 | 17.8 | 476,752 | 1,282 | 6 | 406,606 | 5 | 203,303 | osh-native |
parse.configure-cpython | 33 | 3 | 10 | 12.0 | 17.6 | 476,752 | 1,282 | 6 | 406,202 | 5 | 203,101 | osh-native-souffle |
parse.configure-coreutils | 167 | 26 | 79 | 44.5 | 49.8 | 1,653,340 | 4,764 | 12 | 1,025,528 | 6 | 764,307 | osh-native |
parse.configure-coreutils | 155 | 26 | 78 | 44.5 | 49.3 | 1,653,339 | 4,764 | 12 | 1,025,398 | 6 | 764,242 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,943 | 180 | 2 | 75,032 | 1 | 37,516 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 7.9 | 101,943 | 180 | 3 | 87,094 | 1 | 43,547 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.1 | 8.0 | 579,607 | 22,608 | 12 | 50,000 | 0 | 2,920 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.1 | 7.6 | 579,607 | 22,608 | 12 | 50,000 | 0 | 2,859 | osh-native-souffle |
ex.bashcomp-parse-help | 181 | 0 | 3 | 10.3 | 8.5 | 995,289 | 15,258 | 21 | 50,000 | 0 | 3,902 | osh-native |
ex.bashcomp-parse-help | 174 | 0 | 4 | 10.3 | 8.4 | 995,288 | 15,258 | 21 | 50,000 | 0 | 3,845 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.0 | 116,319 | 277 | 3 | 85,250 | 1 | 42,625 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.7 | 116,319 | 277 | 3 | 85,126 | 1 | 42,563 | 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.1 | bash | - |
107 | 70 | 43 | 3.4 | zsh | - |
17 | 12 | 4 | 29.5 | bumpleak/osh | mut |
20 | 20 | 0 | 29.3 | _bin/cxx-opt+bumproot/osh | mut |
23 | 15 | 8 | 28.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 19 | 11 | 25.3 | osh-native | mut+alloc |
33 | 20 | 12 | 25.4 | osh-native | mut+alloc+free |
39 | 31 | 8 | 17.8 | osh-native | mut+alloc+free+gc |
40 | 36 | 4 | 18.2 | osh-native | mut+alloc+free+gc+exit |
44 | 24 | 20 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
57 | 40 | 16 | 22.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 19 | 8 | 24.8 | osh-native-souffle | mut+alloc |
29 | 16 | 12 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 29 | 4 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
34 | 29 | 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 |
21 | 21 | 0 | 1.4 | dash | - |
77 | 73 | 4 | 3.3 | bash | - |
381 | 222 | 182 | 3.5 | zsh | - |
48 | 48 | 0 | 85.3 | bumpleak/osh | mut |
60 | 52 | 8 | 85.2 | _bin/cxx-opt+bumproot/osh | mut |
70 | 58 | 12 | 86.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 65 | 33 | 73.4 | osh-native | mut+alloc |
109 | 84 | 24 | 75.1 | osh-native | mut+alloc+free |
167 | 143 | 24 | 49.8 | osh-native | mut+alloc+free+gc |
164 | 140 | 24 | 50.5 | osh-native | mut+alloc+free+gc+exit |
141 | 55 | 86 | 98.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
249 | 233 | 16 | 68.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 51 | 36 | 73.1 | osh-native-souffle | mut+alloc |
95 | 54 | 41 | 75.1 | osh-native-souffle | mut+alloc+free |
155 | 127 | 28 | 49.3 | osh-native-souffle | mut+alloc+free+gc |
158 | 146 | 12 | 50.1 | 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 | 6 | 0 | 2.9 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 3 | 3 | 10.8 | bumpleak/osh | mut |
6 | 6 | 0 | 10.7 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 9 | 0 | 9.8 | osh-native | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 5 | 5 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 12 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 8 | 0 | 9.7 | osh-native-souffle | mut+alloc |
8 | 3 | 6 | 9.6 | osh-native-souffle | mut+alloc+free |
9 | 6 | 3 | 7.9 | osh-native-souffle | mut+alloc+free+gc |
10 | 5 | 5 | 8.0 | 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 | 4 | 1.6 | dash | - |
29 | 28 | 0 | 3.0 | bash | - |
25 | 20 | 4 | 3.3 | zsh | - |
19 | 15 | 4 | 32.1 | bumpleak/osh | mut |
25 | 21 | 4 | 31.6 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 31.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 24 | 12 | 26.3 | osh-native | mut+alloc |
38 | 29 | 8 | 26.7 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
55 | 42 | 13 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 38 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 21 | 8 | 26.0 | osh-native-souffle | mut+alloc |
31 | 4 | 27 | 26.0 | osh-native-souffle | mut+alloc+free |
22 | 21 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 17 | 4 | 7.7 | 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 |
74 | 74 | 0 | 3.0 | bash | - |
170 | 107 | 63 | 53.9 | bumpleak/osh | mut |
183 | 123 | 60 | 54.9 | _bin/cxx-opt+bumproot/osh | mut |
195 | 123 | 72 | 57.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 122 | 89 | 47.4 | osh-native | mut+alloc |
217 | 132 | 84 | 49.1 | osh-native | mut+alloc+free |
181 | 121 | 60 | 8.5 | osh-native | mut+alloc+free+gc |
182 | 125 | 57 | 8.8 | osh-native | mut+alloc+free+gc+exit |
235 | 159 | 76 | 64.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
212 | 176 | 36 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
205 | 120 | 84 | 46.9 | osh-native-souffle | mut+alloc |
209 | 122 | 87 | 48.6 | osh-native-souffle | mut+alloc+free |
174 | 122 | 51 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
175 | 111 | 64 | 8.5 | 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 | 10 | 0 | 3.4 | dash | - |
20 | 12 | 8 | 4.5 | bash | - |
18 | 10 | 8 | 3.4 | zsh | - |
18 | 6 | 12 | 13.1 | bumpleak/osh | mut |
20 | 11 | 9 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
20 | 16 | 5 | 12.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 16 | 6 | 11.0 | osh-native | mut+alloc |
23 | 16 | 7 | 11.1 | osh-native | mut+alloc+free |
23 | 11 | 12 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 21 | 2 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 17 | 8 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 20 | 7 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 17 | 4 | 10.6 | osh-native-souffle | mut+alloc |
22 | 17 | 5 | 10.7 | osh-native-souffle | mut+alloc+free |
22 | 14 | 8 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 12 | 10 | 8.8 | osh-native-souffle | mut+alloc+free+gc+exit |