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 | 36 | 4 | 10 | 12.0 | 18.0 | 476,752 | 1,282 | 6 | 406,326 | 5 | 203,163 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.7 | 476,752 | 1,282 | 6 | 406,196 | 5 | 203,098 | osh-native-souffle |
parse.configure-coreutils | 150 | 24 | 63 | 44.5 | 49.8 | 1,653,340 | 4,764 | 12 | 1,025,522 | 6 | 764,304 | osh-native |
parse.configure-coreutils | 139 | 22 | 60 | 45.9 | 51.0 | 1,653,339 | 4,764 | 12 | 1,063,852 | 6 | 792,364 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.8 | 101,943 | 180 | 2 | 75,026 | 1 | 37,513 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 8.0 | 101,943 | 180 | 3 | 87,088 | 1 | 43,544 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.2 | 8.0 | 579,607 | 22,608 | 12 | 50,000 | 0 | 2,917 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.2 | 7.6 | 579,607 | 22,608 | 12 | 50,000 | 0 | 2,856 | osh-native-souffle |
ex.bashcomp-parse-help | 184 | 0 | 4 | 10.3 | 8.7 | 995,289 | 15,258 | 21 | 50,000 | 0 | 3,899 | osh-native |
ex.bashcomp-parse-help | 176 | 0 | 4 | 10.3 | 8.3 | 995,288 | 15,258 | 21 | 50,000 | 0 | 3,842 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.9 | 116,319 | 277 | 3 | 85,244 | 1 | 42,622 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.5 | 116,319 | 277 | 3 | 85,120 | 1 | 42,560 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
7 | 6 | 0 | 1.6 | dash | - |
23 | 23 | 0 | 3.1 | bash | - |
104 | 61 | 50 | 3.4 | zsh | - |
16 | 12 | 4 | 30.0 | bumpleak/osh | mut |
20 | 15 | 4 | 28.3 | _bin/cxx-opt+bumproot/osh | mut |
23 | 23 | 0 | 29.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 18 | 11 | 25.0 | osh-native | mut+alloc |
31 | 19 | 12 | 25.7 | osh-native | mut+alloc+free |
36 | 28 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 37 | 0 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 34 | 9 | 33.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 32 | 16 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 15 | 11 | 24.8 | osh-native-souffle | mut+alloc |
29 | 25 | 4 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 24 | 8 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
33 | 26 | 7 | 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.3 | bash | - |
374 | 221 | 174 | 3.4 | zsh | - |
48 | 40 | 8 | 83.9 | bumpleak/osh | mut |
60 | 60 | 0 | 85.5 | _bin/cxx-opt+bumproot/osh | mut |
70 | 70 | 0 | 86.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 72 | 24 | 73.6 | osh-native | mut+alloc |
104 | 72 | 32 | 75.2 | osh-native | mut+alloc+free |
150 | 118 | 31 | 49.8 | osh-native | mut+alloc+free+gc |
152 | 140 | 12 | 50.5 | osh-native | mut+alloc+free+gc+exit |
138 | 109 | 28 | 99.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
204 | 176 | 28 | 67.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 66 | 21 | 73.1 | osh-native-souffle | mut+alloc |
96 | 72 | 24 | 74.8 | osh-native-souffle | mut+alloc+free |
139 | 111 | 28 | 51.0 | osh-native-souffle | mut+alloc+free+gc |
140 | 112 | 28 | 49.9 | 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 | 2.9 | bash | - |
8 | 4 | 4 | 3.1 | zsh | - |
6 | 6 | 0 | 10.9 | bumpleak/osh | mut |
7 | 3 | 3 | 11.2 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 12.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native | mut+alloc |
9 | 4 | 4 | 10.0 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.8 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 4 | 8 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
7 | 0 | 7 | 9.6 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 4 | 4 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
9 | 3 | 6 | 8.1 | 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.3 | dash | - |
28 | 24 | 4 | 3.0 | bash | - |
24 | 8 | 16 | 3.3 | zsh | - |
18 | 18 | 0 | 32.6 | bumpleak/osh | mut |
25 | 17 | 8 | 33.3 | _bin/cxx-opt+bumproot/osh | mut |
28 | 12 | 16 | 32.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 31 | 4 | 26.1 | osh-native | mut+alloc |
37 | 24 | 12 | 26.6 | osh-native | mut+alloc+free |
28 | 27 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 41 | 12 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 36 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 17 | 13 | 26.0 | osh-native-souffle | mut+alloc |
30 | 17 | 13 | 26.1 | osh-native-souffle | mut+alloc+free |
22 | 17 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 18 | 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.0 | bash | - |
167 | 92 | 76 | 54.4 | bumpleak/osh | mut |
183 | 93 | 89 | 55.8 | _bin/cxx-opt+bumproot/osh | mut |
198 | 133 | 65 | 56.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 164 | 48 | 47.3 | osh-native | mut+alloc |
219 | 151 | 68 | 49.1 | osh-native | mut+alloc+free |
184 | 107 | 76 | 8.7 | osh-native | mut+alloc+free+gc |
182 | 143 | 40 | 8.7 | osh-native | mut+alloc+free+gc+exit |
234 | 182 | 51 | 64.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 135 | 76 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
206 | 115 | 91 | 47.0 | osh-native-souffle | mut+alloc |
213 | 137 | 76 | 48.7 | osh-native-souffle | mut+alloc+free |
176 | 136 | 40 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
174 | 101 | 73 | 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 | 6 | 4 | 3.5 | dash | - |
20 | 14 | 7 | 4.5 | bash | - |
18 | 12 | 7 | 3.5 | zsh | - |
18 | 11 | 7 | 13.2 | bumpleak/osh | mut |
19 | 14 | 6 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 7 | 15 | 14.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 20 | 2 | 11.0 | osh-native | mut+alloc |
22 | 20 | 3 | 11.1 | osh-native | mut+alloc+free |
23 | 21 | 2 | 8.9 | osh-native | mut+alloc+free+gc |
24 | 16 | 8 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 22 | 3 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 16 | 9 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 16 | 4 | 10.6 | osh-native-souffle | mut+alloc |
22 | 11 | 11 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 21 | 0 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 15 | 8 | 8.4 | osh-native-souffle | mut+alloc+free+gc+exit |