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 | 38 | 4 | 11 | 12.0 | 18.0 | 476,752 | 1,282 | 6 | 406,606 | 5 | 203,303 | osh-native |
parse.configure-cpython | 35 | 5 | 11 | 12.0 | 17.6 | 476,752 | 1,282 | 6 | 406,202 | 5 | 203,101 | osh-native-souffle |
parse.configure-coreutils | 165 | 28 | 78 | 44.5 | 49.8 | 1,653,340 | 4,764 | 12 | 1,025,528 | 6 | 764,307 | osh-native |
parse.configure-coreutils | 155 | 28 | 77 | 44.5 | 49.4 | 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 | 10 | 1 | 2 | 2.4 | 7.9 | 101,943 | 180 | 3 | 87,094 | 1 | 43,547 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 2 | 2.1 | 8.0 | 579,607 | 22,608 | 12 | 50,000 | 0 | 2,920 | osh-native |
ex.compute-fib | 23 | 0 | 1 | 2.1 | 7.7 | 579,607 | 22,608 | 12 | 50,000 | 0 | 2,859 | osh-native-souffle |
ex.bashcomp-parse-help | 181 | 0 | 3 | 10.3 | 8.8 | 995,289 | 15,258 | 21 | 50,000 | 0 | 3,902 | osh-native |
ex.bashcomp-parse-help | 174 | 0 | 4 | 10.3 | 8.3 | 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.8 | 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.4 | dash | - |
23 | 23 | 0 | 2.9 | bash | - |
107 | 63 | 50 | 3.4 | zsh | - |
17 | 17 | 0 | 29.7 | bumpleak/osh | mut |
19 | 19 | 0 | 29.4 | _bin/cxx-opt+bumproot/osh | mut |
22 | 19 | 4 | 29.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 22 | 7 | 25.3 | osh-native | mut+alloc |
33 | 29 | 4 | 25.8 | osh-native | mut+alloc+free |
38 | 29 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 30 | 7 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 27 | 16 | 31.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
55 | 31 | 23 | 22.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 19 | 8 | 24.8 | osh-native-souffle | mut+alloc |
29 | 25 | 4 | 25.2 | osh-native-souffle | mut+alloc+free |
35 | 27 | 8 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
35 | 27 | 8 | 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 | 22 | 0 | 1.6 | dash | - |
79 | 75 | 4 | 3.1 | bash | - |
383 | 223 | 182 | 3.5 | zsh | - |
50 | 46 | 4 | 84.7 | bumpleak/osh | mut |
61 | 53 | 8 | 85.1 | _bin/cxx-opt+bumproot/osh | mut |
71 | 47 | 24 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 54 | 42 | 73.4 | osh-native | mut+alloc |
106 | 86 | 19 | 75.4 | osh-native | mut+alloc+free |
165 | 141 | 23 | 49.8 | osh-native | mut+alloc+free+gc |
175 | 139 | 36 | 50.2 | osh-native | mut+alloc+free+gc+exit |
140 | 92 | 48 | 98.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
239 | 219 | 20 | 67.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 60 | 28 | 73.2 | osh-native-souffle | mut+alloc |
98 | 61 | 37 | 75.0 | osh-native-souffle | mut+alloc+free |
155 | 131 | 24 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
158 | 134 | 24 | 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 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
7 | 3 | 3 | 11.4 | bumpleak/osh | mut |
7 | 4 | 4 | 11.0 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 3 | 6 | 10.0 | osh-native | mut+alloc |
9 | 9 | 0 | 10.0 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
11 | 4 | 7 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
13 | 9 | 3 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.6 | osh-native-souffle | mut+alloc |
9 | 8 | 0 | 9.6 | osh-native-souffle | mut+alloc+free |
10 | 10 | 0 | 7.9 | osh-native-souffle | mut+alloc+free+gc |
9 | 0 | 9 | 7.9 | 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.4 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
24 | 16 | 8 | 3.4 | zsh | - |
19 | 11 | 8 | 31.6 | bumpleak/osh | mut |
26 | 22 | 4 | 31.2 | _bin/cxx-opt+bumproot/osh | mut |
29 | 24 | 4 | 33.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 25 | 12 | 26.3 | osh-native | mut+alloc |
38 | 23 | 15 | 26.6 | osh-native | mut+alloc+free |
29 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 21 | 7 | 8.1 | osh-native | mut+alloc+free+gc+exit |
55 | 35 | 19 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 37 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 23 | 8 | 25.8 | osh-native-souffle | mut+alloc |
33 | 28 | 4 | 26.2 | osh-native-souffle | mut+alloc+free |
23 | 18 | 4 | 7.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 22 | 0 | 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 |
74 | 62 | 12 | 3.0 | bash | - |
170 | 117 | 52 | 55.1 | bumpleak/osh | mut |
183 | 127 | 56 | 56.4 | _bin/cxx-opt+bumproot/osh | mut |
199 | 137 | 61 | 56.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 132 | 80 | 47.3 | osh-native | mut+alloc |
219 | 121 | 97 | 49.0 | osh-native | mut+alloc+free |
181 | 106 | 75 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 119 | 63 | 8.9 | osh-native | mut+alloc+free+gc+exit |
235 | 151 | 84 | 63.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
228 | 180 | 48 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 136 | 68 | 46.9 | osh-native-souffle | mut+alloc |
216 | 171 | 44 | 48.7 | osh-native-souffle | mut+alloc+free |
174 | 122 | 51 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
174 | 119 | 55 | 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 | 5 | 6 | 3.4 | dash | - |
20 | 14 | 7 | 4.3 | bash | - |
18 | 9 | 10 | 3.4 | zsh | - |
20 | 11 | 9 | 12.4 | bumpleak/osh | mut |
20 | 12 | 8 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 12 | 11 | 13.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 11 | 11 | 11.0 | osh-native | mut+alloc |
23 | 16 | 8 | 11.1 | osh-native | mut+alloc+free |
23 | 18 | 5 | 9.0 | osh-native | mut+alloc+free+gc |
24 | 10 | 14 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 20 | 5 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 21 | 6 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
21 | 11 | 10 | 10.6 | osh-native-souffle | mut+alloc |
22 | 14 | 9 | 10.6 | osh-native-souffle | mut+alloc+free |
22 | 13 | 9 | 8.8 | osh-native-souffle | mut+alloc+free+gc |
22 | 14 | 9 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |