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 | 3 | 9 | 12.0 | 17.8 | 476,744 | 1,282 | 6 | 406,316 | 5 | 203,158 | osh-native |
parse.configure-cpython | 33 | 3 | 9 | 12.0 | 17.6 | 476,744 | 1,282 | 6 | 406,186 | 5 | 203,093 | osh-native-souffle |
parse.configure-coreutils | 153 | 26 | 67 | 44.5 | 49.7 | 1,653,332 | 4,764 | 12 | 1,025,512 | 6 | 764,299 | osh-native |
parse.configure-coreutils | 162 | 29 | 81 | 45.9 | 51.0 | 1,653,331 | 4,764 | 12 | 1,063,842 | 6 | 792,359 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.7 | 101,935 | 180 | 2 | 75,016 | 1 | 37,508 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 8.0 | 101,935 | 180 | 3 | 87,078 | 1 | 43,539 | osh-native-souffle |
ex.compute-fib | 27 | 0 | 1 | 2.1 | 8.0 | 579,599 | 22,608 | 12 | 50,000 | 0 | 2,912 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.1 | 7.6 | 579,599 | 22,608 | 12 | 50,000 | 0 | 2,850 | osh-native-souffle |
ex.bashcomp-parse-help | 183 | 0 | 3 | 10.3 | 8.8 | 995,281 | 15,258 | 21 | 50,000 | 0 | 3,894 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 3 | 10.3 | 8.3 | 995,280 | 15,258 | 21 | 50,000 | 0 | 3,839 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,311 | 277 | 3 | 85,234 | 1 | 42,617 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.7 | 116,311 | 277 | 3 | 85,110 | 1 | 42,555 | 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 | - |
106 | 68 | 45 | 3.4 | zsh | - |
16 | 16 | 0 | 29.7 | bumpleak/osh | mut |
20 | 12 | 8 | 30.2 | _bin/cxx-opt+bumproot/osh | mut |
22 | 17 | 4 | 29.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 11 | 19 | 25.0 | osh-native | mut+alloc |
32 | 16 | 16 | 25.6 | osh-native | mut+alloc+free |
37 | 29 | 7 | 17.8 | osh-native | mut+alloc+free+gc |
36 | 24 | 12 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 40 | 4 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
53 | 36 | 16 | 21.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 15 | 11 | 24.9 | osh-native-souffle | mut+alloc |
29 | 11 | 18 | 25.2 | osh-native-souffle | mut+alloc+free |
33 | 28 | 4 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 25 | 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 | - |
78 | 77 | 0 | 3.3 | bash | - |
377 | 192 | 206 | 3.4 | zsh | - |
48 | 44 | 4 | 85.3 | bumpleak/osh | mut |
61 | 61 | 0 | 84.6 | _bin/cxx-opt+bumproot/osh | mut |
69 | 57 | 12 | 85.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 74 | 25 | 73.4 | osh-native | mut+alloc |
105 | 73 | 32 | 75.4 | osh-native | mut+alloc+free |
153 | 129 | 24 | 49.7 | osh-native | mut+alloc+free+gc |
167 | 143 | 24 | 50.5 | osh-native | mut+alloc+free+gc+exit |
140 | 92 | 48 | 97.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
219 | 195 | 24 | 67.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 60 | 28 | 73.0 | osh-native-souffle | mut+alloc |
98 | 81 | 16 | 74.8 | osh-native-souffle | mut+alloc+free |
162 | 134 | 28 | 51.0 | osh-native-souffle | mut+alloc+free+gc |
146 | 134 | 12 | 51.7 | 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 | 8 | 0 | 3.3 | zsh | - |
6 | 6 | 0 | 12.0 | bumpleak/osh | mut |
7 | 3 | 3 | 12.8 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 12.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.1 | osh-native | mut+alloc |
8 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc |
9 | 0 | 9 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 12 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 11 | 0 | 9.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.6 | osh-native-souffle | mut+alloc |
9 | 8 | 0 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 4 | 4 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
9 | 9 | 0 | 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 | 11 | 0 | 1.4 | dash | - |
28 | 28 | 0 | 2.9 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
18 | 13 | 4 | 31.4 | bumpleak/osh | mut |
26 | 17 | 8 | 32.1 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 32 | 4 | 26.3 | osh-native | mut+alloc |
37 | 33 | 4 | 26.3 | osh-native | mut+alloc+free |
27 | 27 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
55 | 35 | 19 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 32 | 4 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 26 | 4 | 26.0 | osh-native-souffle | mut+alloc |
32 | 20 | 12 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
21 | 21 | 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 | 66 | 8 | 3.0 | bash | - |
169 | 112 | 56 | 55.0 | bumpleak/osh | mut |
181 | 145 | 36 | 55.6 | _bin/cxx-opt+bumproot/osh | mut |
195 | 139 | 56 | 57.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 150 | 61 | 47.4 | osh-native | mut+alloc |
221 | 128 | 92 | 49.1 | osh-native | mut+alloc+free |
183 | 119 | 63 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 125 | 57 | 8.8 | osh-native | mut+alloc+free+gc+exit |
233 | 154 | 79 | 64.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 139 | 71 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
206 | 129 | 77 | 46.9 | osh-native-souffle | mut+alloc |
211 | 143 | 68 | 48.7 | osh-native-souffle | mut+alloc+free |
175 | 99 | 75 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
175 | 135 | 40 | 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 | 5 | 6 | 3.5 | dash | - |
20 | 15 | 6 | 4.5 | bash | - |
18 | 10 | 9 | 3.5 | zsh | - |
19 | 17 | 3 | 12.6 | bumpleak/osh | mut |
21 | 11 | 10 | 13.1 | _bin/cxx-opt+bumproot/osh | mut |
20 | 14 | 6 | 12.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 11 | 11 | 11.1 | osh-native | mut+alloc |
22 | 12 | 11 | 11.1 | osh-native | mut+alloc+free |
22 | 14 | 9 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 17 | 7 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 12 | 13 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 14 | 12 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 12 | 9 | 10.6 | osh-native-souffle | mut+alloc |
21 | 10 | 11 | 10.9 | osh-native-souffle | mut+alloc+free |
22 | 11 | 11 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 17 | 5 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |