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 | 6 | 12 | 12.0 | 17.8 | 476,744 | 1,282 | 6 | 406,316 | 5 | 203,158 | osh-native |
parse.configure-cpython | 36 | 5 | 12 | 12.0 | 17.4 | 476,744 | 1,282 | 6 | 406,186 | 5 | 203,093 | osh-native-souffle |
parse.configure-coreutils | 181 | 28 | 92 | 44.5 | 49.6 | 1,653,332 | 4,764 | 12 | 1,025,512 | 6 | 764,299 | osh-native |
parse.configure-coreutils | 168 | 30 | 87 | 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 | 7.7 | 101,935 | 180 | 3 | 87,078 | 1 | 43,539 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.1 | 8.0 | 579,599 | 22,608 | 12 | 50,000 | 0 | 2,912 | osh-native |
ex.compute-fib | 23 | 0 | 2 | 2.1 | 7.5 | 579,599 | 22,608 | 12 | 50,000 | 0 | 2,850 | osh-native-souffle |
ex.bashcomp-parse-help | 187 | 0 | 5 | 10.3 | 8.8 | 995,281 | 15,258 | 21 | 50,000 | 0 | 3,894 | osh-native |
ex.bashcomp-parse-help | 181 | 0 | 5 | 10.3 | 8.1 | 995,280 | 15,258 | 21 | 50,000 | 0 | 3,839 | osh-native-souffle |
ex.abuild-print-help | 23 | 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.5 | 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.4 | dash | - |
24 | 23 | 0 | 3.0 | bash | - |
105 | 62 | 49 | 3.3 | zsh | - |
17 | 12 | 4 | 28.0 | bumpleak/osh | mut |
20 | 8 | 12 | 28.8 | _bin/cxx-opt+bumproot/osh | mut |
23 | 12 | 12 | 29.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 22 | 7 | 25.0 | osh-native | mut+alloc |
32 | 20 | 12 | 25.7 | osh-native | mut+alloc+free |
39 | 31 | 8 | 17.8 | osh-native | mut+alloc+free+gc |
41 | 37 | 4 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 28 | 16 | 33.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
58 | 49 | 8 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 11 | 15 | 24.9 | osh-native-souffle | mut+alloc |
29 | 25 | 4 | 25.3 | osh-native-souffle | mut+alloc+free |
36 | 35 | 0 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
38 | 29 | 8 | 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 | 18 | 4 | 1.6 | dash | - |
79 | 79 | 0 | 3.3 | bash | - |
381 | 200 | 202 | 3.5 | zsh | - |
50 | 37 | 12 | 84.2 | bumpleak/osh | mut |
61 | 49 | 12 | 85.3 | _bin/cxx-opt+bumproot/osh | mut |
71 | 31 | 39 | 85.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 66 | 31 | 73.6 | osh-native | mut+alloc |
106 | 70 | 35 | 75.4 | osh-native | mut+alloc+free |
181 | 160 | 20 | 49.6 | osh-native | mut+alloc+free+gc |
186 | 162 | 24 | 50.3 | osh-native | mut+alloc+free+gc+exit |
140 | 88 | 52 | 98.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
252 | 223 | 28 | 67.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
90 | 49 | 40 | 73.0 | osh-native-souffle | mut+alloc |
97 | 52 | 44 | 75.0 | osh-native-souffle | mut+alloc+free |
168 | 128 | 40 | 51.0 | osh-native-souffle | mut+alloc+free+gc |
176 | 155 | 20 | 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 | 3.0 | bash | - |
8 | 4 | 4 | 3.1 | zsh | - |
6 | 0 | 6 | 10.5 | bumpleak/osh | mut |
6 | 3 | 3 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
8 | 8 | 0 | 12.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.0 | osh-native | mut+alloc |
9 | 9 | 0 | 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 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 8 | 0 | 9.7 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.4 | osh-native-souffle | mut+alloc+free |
9 | 5 | 5 | 7.7 | osh-native-souffle | mut+alloc+free+gc |
10 | 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 |
10 | 10 | 0 | 1.4 | dash | - |
29 | 26 | 4 | 2.9 | bash | - |
24 | 20 | 4 | 3.1 | zsh | - |
18 | 9 | 9 | 31.5 | bumpleak/osh | mut |
26 | 18 | 7 | 32.3 | _bin/cxx-opt+bumproot/osh | mut |
29 | 24 | 4 | 31.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 21 | 16 | 26.5 | osh-native | mut+alloc |
39 | 23 | 15 | 26.7 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 35 | 19 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 34 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 19 | 11 | 25.8 | osh-native-souffle | mut+alloc |
33 | 24 | 8 | 26.2 | osh-native-souffle | mut+alloc+free |
23 | 19 | 4 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
23 | 19 | 4 | 7.5 | 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 |
73 | 69 | 4 | 3.1 | bash | - |
169 | 100 | 68 | 55.5 | bumpleak/osh | mut |
185 | 121 | 64 | 55.7 | _bin/cxx-opt+bumproot/osh | mut |
198 | 150 | 49 | 55.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
214 | 101 | 113 | 47.3 | osh-native | mut+alloc |
222 | 129 | 92 | 49.0 | osh-native | mut+alloc+free |
187 | 127 | 59 | 8.8 | osh-native | mut+alloc+free+gc |
184 | 107 | 76 | 8.8 | osh-native | mut+alloc+free+gc+exit |
240 | 136 | 104 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
230 | 189 | 40 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
207 | 119 | 87 | 46.9 | osh-native-souffle | mut+alloc |
213 | 136 | 76 | 48.6 | osh-native-souffle | mut+alloc+free |
181 | 128 | 52 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
177 | 96 | 80 | 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 |
10 | 8 | 2 | 3.4 | dash | - |
20 | 19 | 2 | 4.3 | bash | - |
18 | 12 | 7 | 3.5 | zsh | - |
20 | 13 | 7 | 12.2 | bumpleak/osh | mut |
20 | 8 | 12 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
21 | 14 | 8 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 15 | 7 | 11.0 | osh-native | mut+alloc |
23 | 13 | 10 | 11.1 | osh-native | mut+alloc+free |
23 | 19 | 4 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 14 | 10 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 17 | 9 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 16 | 10 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 13 | 7 | 10.6 | osh-native-souffle | mut+alloc |
22 | 15 | 7 | 10.7 | osh-native-souffle | mut+alloc+free |
22 | 17 | 6 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 13 | 10 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |