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 | 35 | 3 | 9 | 12.0 | 18.2 | 476,744 | 1,282 | 6 | 406,316 | 5 | 203,158 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.6 | 476,744 | 1,282 | 6 | 406,186 | 5 | 203,093 | osh-native-souffle |
parse.configure-coreutils | 146 | 22 | 60 | 44.5 | 49.8 | 1,653,332 | 4,764 | 12 | 1,025,512 | 6 | 764,299 | osh-native |
parse.configure-coreutils | 140 | 26 | 62 | 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.4 | 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 | 28 | 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 | 182 | 0 | 3 | 10.3 | 8.8 | 995,281 | 15,258 | 21 | 50,000 | 0 | 3,894 | osh-native |
ex.bashcomp-parse-help | 173 | 0 | 3 | 10.3 | 8.4 | 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 | 21 | 1 | 2 | 2.8 | 8.8 | 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 | - |
103 | 58 | 52 | 3.4 | zsh | - |
16 | 12 | 4 | 28.2 | bumpleak/osh | mut |
19 | 19 | 0 | 28.8 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 29.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 30 | 0 | 25.0 | osh-native | mut+alloc |
31 | 27 | 4 | 25.8 | osh-native | mut+alloc+free |
35 | 23 | 11 | 18.2 | osh-native | mut+alloc+free+gc |
35 | 27 | 8 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 27 | 15 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 38 | 9 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 18 | 9 | 24.8 | osh-native-souffle | mut+alloc |
29 | 16 | 12 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 32 | 0 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 33 | 0 | 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 |
22 | 21 | 0 | 1.6 | dash | - |
77 | 77 | 0 | 3.1 | bash | - |
373 | 191 | 203 | 3.4 | zsh | - |
49 | 37 | 11 | 84.0 | bumpleak/osh | mut |
60 | 48 | 12 | 85.1 | _bin/cxx-opt+bumproot/osh | mut |
70 | 53 | 16 | 85.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 56 | 40 | 73.5 | osh-native | mut+alloc |
105 | 89 | 16 | 75.1 | osh-native | mut+alloc+free |
146 | 129 | 16 | 49.8 | osh-native | mut+alloc+free+gc |
154 | 133 | 20 | 50.5 | osh-native | mut+alloc+free+gc+exit |
138 | 81 | 57 | 99.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 171 | 36 | 66.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
89 | 48 | 40 | 73.2 | osh-native-souffle | mut+alloc |
97 | 57 | 40 | 75.0 | osh-native-souffle | mut+alloc+free |
140 | 120 | 20 | 51.0 | osh-native-souffle | mut+alloc+free+gc |
142 | 101 | 40 | 51.5 | 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 | 0 | 6 | 2.9 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 3 | 3 | 12.0 | bumpleak/osh | mut |
7 | 3 | 3 | 11.3 | _bin/cxx-opt+bumproot/osh | mut |
8 | 8 | 0 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 9.8 | osh-native | mut+alloc |
8 | 8 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 4 | 4 | 8.4 | osh-native | mut+alloc+free+gc |
10 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc+exit |
11 | 4 | 8 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 7 | 4 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 9 | 0 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
9 | 9 | 0 | 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 |
10 | 10 | 0 | 1.4 | dash | - |
29 | 24 | 4 | 2.8 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
19 | 15 | 4 | 32.2 | bumpleak/osh | mut |
26 | 17 | 9 | 33.2 | _bin/cxx-opt+bumproot/osh | mut |
28 | 28 | 0 | 33.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.3 | osh-native | mut+alloc |
37 | 30 | 7 | 26.7 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 23 | 4 | 8.1 | osh-native | mut+alloc+free+gc+exit |
54 | 34 | 19 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 29 | 7 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 19 | 11 | 26.0 | osh-native-souffle | mut+alloc |
32 | 16 | 16 | 26.1 | osh-native-souffle | mut+alloc+free |
22 | 22 | 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 |
72 | 65 | 8 | 3.3 | bash | - |
168 | 108 | 60 | 55.8 | bumpleak/osh | mut |
183 | 142 | 41 | 54.7 | _bin/cxx-opt+bumproot/osh | mut |
196 | 124 | 72 | 55.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 115 | 95 | 47.4 | osh-native | mut+alloc |
218 | 130 | 87 | 49.0 | osh-native | mut+alloc+free |
182 | 138 | 44 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 122 | 59 | 8.8 | osh-native | mut+alloc+free+gc+exit |
231 | 143 | 87 | 64.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 160 | 48 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 124 | 80 | 47.0 | osh-native-souffle | mut+alloc |
210 | 154 | 55 | 48.7 | osh-native-souffle | mut+alloc+free |
173 | 126 | 47 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
175 | 127 | 48 | 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.5 | dash | - |
20 | 11 | 9 | 4.5 | bash | - |
18 | 13 | 5 | 3.5 | zsh | - |
19 | 17 | 3 | 12.3 | bumpleak/osh | mut |
19 | 12 | 8 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
21 | 18 | 3 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 14 | 8 | 11.0 | osh-native | mut+alloc |
22 | 17 | 5 | 11.3 | osh-native | mut+alloc+free |
22 | 19 | 4 | 9.0 | osh-native | mut+alloc+free+gc |
22 | 17 | 6 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 18 | 7 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 21 | 5 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 16 | 4 | 10.5 | osh-native-souffle | mut+alloc |
21 | 7 | 15 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 10 | 11 | 8.8 | osh-native-souffle | mut+alloc+free+gc |
21 | 19 | 2 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |