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 | 17.7 | 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 | 140 | 20 | 55 | 44.5 | 49.7 | 1,653,332 | 4,764 | 12 | 1,025,512 | 6 | 764,299 | osh-native |
parse.configure-coreutils | 134 | 22 | 57 | 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.5 | 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 | 21 | 0 | 1 | 2.1 | 7.7 | 579,599 | 22,608 | 12 | 50,000 | 0 | 2,850 | osh-native-souffle |
ex.bashcomp-parse-help | 181 | 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.3 | 995,280 | 15,258 | 21 | 50,000 | 0 | 3,839 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.2 | 116,311 | 277 | 3 | 85,234 | 1 | 42,617 | osh-native |
ex.abuild-print-help | 20 | 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 | 3 | 3 | 1.4 | dash | - |
23 | 19 | 4 | 3.1 | bash | - |
105 | 57 | 54 | 3.3 | zsh | - |
16 | 12 | 4 | 28.3 | bumpleak/osh | mut |
19 | 15 | 4 | 28.4 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 28.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 25 | 4 | 25.2 | osh-native | mut+alloc |
31 | 27 | 4 | 25.7 | osh-native | mut+alloc+free |
35 | 27 | 8 | 17.7 | osh-native | mut+alloc+free+gc |
35 | 27 | 8 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 19 | 23 | 33.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
46 | 38 | 8 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 22 | 4 | 24.8 | osh-native-souffle | mut+alloc |
28 | 28 | 0 | 25.4 | osh-native-souffle | mut+alloc+free |
32 | 27 | 4 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 20 | 12 | 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 |
21 | 21 | 0 | 1.4 | dash | - |
79 | 75 | 4 | 3.1 | bash | - |
376 | 220 | 177 | 3.5 | zsh | - |
48 | 44 | 4 | 84.2 | bumpleak/osh | mut |
60 | 44 | 16 | 84.8 | _bin/cxx-opt+bumproot/osh | mut |
69 | 60 | 8 | 85.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 68 | 28 | 73.4 | osh-native | mut+alloc |
103 | 70 | 33 | 75.4 | osh-native | mut+alloc+free |
140 | 116 | 24 | 49.7 | osh-native | mut+alloc+free+gc |
145 | 104 | 40 | 50.5 | osh-native | mut+alloc+free+gc+exit |
138 | 67 | 71 | 99.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
198 | 166 | 32 | 67.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
86 | 61 | 25 | 73.0 | osh-native-souffle | mut+alloc |
92 | 52 | 40 | 75.0 | osh-native-souffle | mut+alloc+free |
134 | 109 | 24 | 51.0 | osh-native-souffle | mut+alloc+free+gc |
139 | 107 | 32 | 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.3 | dash | - |
6 | 6 | 0 | 3.0 | bash | - |
8 | 8 | 0 | 3.4 | zsh | - |
6 | 6 | 0 | 10.9 | bumpleak/osh | mut |
6 | 6 | 0 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
7 | 0 | 7 | 11.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.1 | osh-native | mut+alloc |
8 | 8 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc+exit |
11 | 6 | 6 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 4 | 7 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 8 | 0 | 9.7 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 9 | 0 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
9 | 4 | 4 | 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 | 10 | 0 | 1.4 | dash | - |
28 | 24 | 4 | 3.0 | bash | - |
24 | 20 | 4 | 3.4 | zsh | - |
18 | 13 | 4 | 32.2 | bumpleak/osh | mut |
25 | 25 | 0 | 31.5 | _bin/cxx-opt+bumproot/osh | mut |
27 | 23 | 4 | 31.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 31 | 4 | 26.3 | osh-native | mut+alloc |
37 | 22 | 15 | 26.5 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
27 | 27 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
53 | 29 | 25 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 37 | 0 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 17 | 13 | 26.0 | osh-native-souffle | mut+alloc |
31 | 22 | 9 | 26.2 | osh-native-souffle | mut+alloc+free |
21 | 21 | 0 | 7.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 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 |
72 | 68 | 4 | 3.1 | bash | - |
170 | 118 | 51 | 55.3 | bumpleak/osh | mut |
185 | 117 | 68 | 56.3 | _bin/cxx-opt+bumproot/osh | mut |
192 | 112 | 80 | 55.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 171 | 40 | 47.4 | osh-native | mut+alloc |
218 | 141 | 77 | 49.0 | osh-native | mut+alloc+free |
181 | 109 | 72 | 8.8 | osh-native | mut+alloc+free+gc |
179 | 123 | 56 | 8.7 | osh-native | mut+alloc+free+gc+exit |
232 | 128 | 104 | 62.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
207 | 159 | 48 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 120 | 84 | 46.9 | osh-native-souffle | mut+alloc |
209 | 124 | 84 | 48.4 | osh-native-souffle | mut+alloc+free |
173 | 129 | 44 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
174 | 89 | 85 | 8.1 | 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 |
9 | 9 | 1 | 3.4 | dash | - |
19 | 8 | 12 | 4.3 | bash | - |
17 | 17 | 1 | 3.5 | zsh | - |
17 | 15 | 2 | 13.0 | bumpleak/osh | mut |
19 | 13 | 7 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
21 | 19 | 3 | 13.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 19 | 3 | 11.0 | osh-native | mut+alloc |
22 | 11 | 11 | 11.3 | osh-native | mut+alloc+free |
22 | 20 | 2 | 9.2 | osh-native | mut+alloc+free+gc |
22 | 15 | 8 | 9.0 | osh-native | mut+alloc+free+gc+exit |
23 | 10 | 13 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 19 | 6 | 9.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 13 | 7 | 10.7 | osh-native-souffle | mut+alloc |
21 | 12 | 9 | 10.7 | osh-native-souffle | mut+alloc+free |
20 | 12 | 9 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 11 | 11 | 8.8 | osh-native-souffle | mut+alloc+free+gc+exit |