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,767 | 1,282 | 6 | 406,620 | 5 | 203,310 | osh-native |
parse.configure-cpython | 34 | 4 | 10 | 12.0 | 17.6 | 476,767 | 1,282 | 6 | 406,610 | 5 | 203,305 | osh-native-souffle |
parse.configure-coreutils | 195 | 31 | 103 | 44.5 | 49.7 | 1,653,355 | 4,764 | 12 | 1,025,542 | 6 | 764,314 | osh-native |
parse.configure-coreutils | 180 | 31 | 100 | 44.5 | 49.4 | 1,653,354 | 4,764 | 12 | 1,025,532 | 6 | 764,309 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,958 | 180 | 2 | 75,046 | 1 | 37,523 | osh-native |
parse.abuild | 10 | 1 | 2 | 2.6 | 8.3 | 101,958 | 180 | 2 | 75,036 | 1 | 37,518 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 2 | 2.2 | 8.0 | 579,722 | 22,608 | 12 | 50,000 | 0 | 2,927 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.2 | 7.7 | 579,722 | 22,608 | 12 | 50,000 | 0 | 2,922 | osh-native-souffle |
ex.bashcomp-parse-help | 190 | 0 | 6 | 11.1 | 8.9 | 1,021,039 | 15,258 | 22 | 50,000 | 0 | 3,916 | osh-native |
ex.bashcomp-parse-help | 176 | 0 | 5 | 11.1 | 8.4 | 1,021,038 | 15,258 | 22 | 50,000 | 0 | 3,916 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.2 | 116,357 | 277 | 3 | 85,264 | 1 | 42,632 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.5 | 116,357 | 277 | 3 | 85,254 | 1 | 42,627 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
25 | 22 | 3 | 3.0 | bash | - |
108 | 56 | 59 | 3.4 | zsh | - |
16 | 12 | 4 | 28.8 | bumpleak/osh | mut |
20 | 16 | 4 | 28.7 | _bin/cxx-opt+bumproot/osh | mut |
22 | 16 | 6 | 29.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 22 | 9 | 25.2 | osh-native | mut+alloc |
33 | 26 | 7 | 25.6 | osh-native | mut+alloc+free |
36 | 28 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 34 | 3 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 27 | 16 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
56 | 51 | 5 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 18 | 10 | 24.9 | osh-native-souffle | mut+alloc |
29 | 20 | 9 | 25.3 | osh-native-souffle | mut+alloc+free |
34 | 25 | 9 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
46 | 34 | 12 | 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 | 22 | 0 | 1.6 | dash | - |
83 | 78 | 5 | 3.1 | bash | - |
364 | 204 | 183 | 3.5 | zsh | - |
52 | 37 | 15 | 85.0 | bumpleak/osh | mut |
64 | 58 | 6 | 86.1 | _bin/cxx-opt+bumproot/osh | mut |
71 | 63 | 8 | 85.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
106 | 78 | 28 | 73.6 | osh-native | mut+alloc |
109 | 70 | 39 | 75.4 | osh-native | mut+alloc+free |
195 | 170 | 25 | 49.7 | osh-native | mut+alloc+free+gc |
312 | 292 | 20 | 50.3 | osh-native | mut+alloc+free+gc+exit |
139 | 95 | 44 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
274 | 241 | 33 | 66.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
92 | 55 | 37 | 73.3 | osh-native-souffle | mut+alloc |
99 | 66 | 32 | 75.0 | osh-native-souffle | mut+alloc+free |
180 | 149 | 31 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
254 | 232 | 22 | 50.1 | 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 | 4 | 2 | 3.0 | bash | - |
7 | 5 | 2 | 3.3 | zsh | - |
6 | 4 | 2 | 12.1 | bumpleak/osh | mut |
7 | 4 | 3 | 12.8 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 3 | 11.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 6 | 3 | 10.0 | osh-native | mut+alloc |
9 | 8 | 1 | 10.1 | osh-native | mut+alloc+free |
9 | 6 | 4 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 6 | 4 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 7 | 5 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 5 | 3 | 9.8 | osh-native-souffle | mut+alloc |
8 | 5 | 3 | 9.7 | osh-native-souffle | mut+alloc+free |
10 | 5 | 4 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
9 | 7 | 2 | 8.3 | 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 | 9 | 1 | 1.4 | dash | - |
29 | 28 | 1 | 3.0 | bash | - |
23 | 17 | 6 | 3.3 | zsh | - |
21 | 14 | 7 | 31.6 | bumpleak/osh | mut |
28 | 19 | 9 | 31.6 | _bin/cxx-opt+bumproot/osh | mut |
34 | 21 | 13 | 32.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 27 | 10 | 26.5 | osh-native | mut+alloc |
38 | 29 | 9 | 26.5 | osh-native | mut+alloc+free |
29 | 27 | 2 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 26 | 3 | 7.9 | osh-native | mut+alloc+free+gc+exit |
56 | 42 | 14 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 32 | 6 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 17 | 14 | 26.0 | osh-native-souffle | mut+alloc |
32 | 21 | 10 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 20 | 2 | 7.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 19 | 3 | 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 | 70 | 2 | 3.3 | bash | - |
168 | 104 | 64 | 55.7 | bumpleak/osh | mut |
188 | 127 | 61 | 56.3 | _bin/cxx-opt+bumproot/osh | mut |
197 | 137 | 60 | 57.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
218 | 154 | 64 | 49.0 | osh-native | mut+alloc |
234 | 146 | 88 | 50.8 | osh-native | mut+alloc+free |
190 | 143 | 47 | 8.9 | osh-native | mut+alloc+free+gc |
185 | 145 | 40 | 8.9 | osh-native | mut+alloc+free+gc+exit |
292 | 198 | 94 | 64.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
238 | 192 | 46 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
206 | 131 | 75 | 48.4 | osh-native-souffle | mut+alloc |
225 | 150 | 75 | 50.3 | osh-native-souffle | mut+alloc+free |
176 | 126 | 50 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
177 | 116 | 61 | 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 |
23 | 8 | 16 | 3.4 | dash | - |
37 | 21 | 18 | 4.5 | bash | - |
22 | 9 | 14 | 3.4 | zsh | - |
21 | 11 | 10 | 12.7 | bumpleak/osh | mut |
23 | 11 | 13 | 13.6 | _bin/cxx-opt+bumproot/osh | mut |
21 | 10 | 12 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
24 | 15 | 10 | 11.1 | osh-native | mut+alloc |
25 | 13 | 13 | 11.3 | osh-native | mut+alloc+free |
23 | 15 | 9 | 9.2 | osh-native | mut+alloc+free+gc |
23 | 11 | 13 | 9.2 | osh-native | mut+alloc+free+gc+exit |
29 | 16 | 14 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
27 | 15 | 12 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
22 | 9 | 13 | 10.6 | osh-native-souffle | mut+alloc |
22 | 9 | 14 | 10.6 | osh-native-souffle | mut+alloc+free |
22 | 12 | 11 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 11 | 12 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |