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.8 | 476,753 | 1,282 | 6 | 406,608 | 5 | 203,304 | osh-native |
parse.configure-cpython | 33 | 4 | 9 | 12.0 | 17.6 | 476,753 | 1,282 | 6 | 406,204 | 5 | 203,102 | osh-native-souffle |
parse.configure-coreutils | 156 | 24 | 69 | 44.5 | 49.8 | 1,653,341 | 4,764 | 12 | 1,025,530 | 6 | 764,308 | osh-native |
parse.configure-coreutils | 143 | 23 | 66 | 44.5 | 49.5 | 1,653,340 | 4,764 | 12 | 1,025,400 | 6 | 764,243 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,944 | 180 | 2 | 75,034 | 1 | 37,517 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 8.0 | 101,944 | 180 | 3 | 87,096 | 1 | 43,548 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.1 | 7.9 | 579,608 | 22,608 | 12 | 50,000 | 0 | 2,921 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.1 | 7.6 | 579,608 | 22,608 | 12 | 50,000 | 0 | 2,860 | osh-native-souffle |
ex.bashcomp-parse-help | 181 | 0 | 4 | 10.3 | 8.7 | 995,290 | 15,258 | 21 | 50,000 | 0 | 3,903 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 3 | 10.3 | 8.3 | 995,289 | 15,258 | 21 | 50,000 | 0 | 3,846 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.8 | 116,320 | 277 | 3 | 85,252 | 1 | 42,626 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 116,320 | 277 | 3 | 85,128 | 1 | 42,564 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.4 | dash | - |
24 | 24 | 0 | 3.1 | bash | - |
104 | 71 | 40 | 3.4 | zsh | - |
16 | 16 | 0 | 28.8 | bumpleak/osh | mut |
20 | 12 | 8 | 28.7 | _bin/cxx-opt+bumproot/osh | mut |
23 | 4 | 19 | 28.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 17 | 13 | 25.3 | osh-native | mut+alloc |
32 | 27 | 4 | 25.6 | osh-native | mut+alloc+free |
35 | 30 | 4 | 17.8 | osh-native | mut+alloc+free+gc |
36 | 28 | 8 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 21 | 21 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
50 | 33 | 16 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 22 | 4 | 24.9 | osh-native-souffle | mut+alloc |
29 | 16 | 12 | 25.2 | osh-native-souffle | mut+alloc+free |
33 | 28 | 4 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 24 | 8 | 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 |
22 | 18 | 4 | 1.6 | dash | - |
78 | 78 | 0 | 3.1 | bash | - |
378 | 232 | 169 | 3.4 | zsh | - |
49 | 49 | 0 | 84.0 | bumpleak/osh | mut |
60 | 52 | 8 | 85.6 | _bin/cxx-opt+bumproot/osh | mut |
70 | 50 | 19 | 85.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 68 | 28 | 73.5 | osh-native | mut+alloc |
106 | 69 | 36 | 75.5 | osh-native | mut+alloc+free |
156 | 136 | 20 | 49.8 | osh-native | mut+alloc+free+gc |
157 | 133 | 24 | 50.3 | osh-native | mut+alloc+free+gc+exit |
140 | 100 | 40 | 98.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
216 | 173 | 43 | 68.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 63 | 24 | 73.3 | osh-native-souffle | mut+alloc |
94 | 67 | 28 | 74.9 | osh-native-souffle | mut+alloc+free |
143 | 111 | 32 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
147 | 127 | 20 | 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 | 0 | 2 | 1.4 | dash | - |
6 | 3 | 3 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 6 | 0 | 12.1 | bumpleak/osh | mut |
6 | 6 | 0 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 4 | 4 | 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.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc |
8 | 0 | 8 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 9 | 0 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
9 | 5 | 5 | 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.4 | dash | - |
29 | 29 | 0 | 2.9 | bash | - |
24 | 24 | 0 | 3.4 | zsh | - |
19 | 15 | 4 | 32.0 | bumpleak/osh | mut |
26 | 25 | 0 | 31.8 | _bin/cxx-opt+bumproot/osh | mut |
28 | 28 | 0 | 32.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 16 | 20 | 26.3 | osh-native | mut+alloc |
37 | 33 | 4 | 26.7 | osh-native | mut+alloc+free |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
53 | 34 | 19 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 19 | 11 | 26.0 | osh-native-souffle | mut+alloc |
32 | 20 | 12 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 14 | 7 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 22 | 0 | 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 |
75 | 70 | 4 | 3.1 | bash | - |
169 | 105 | 65 | 54.4 | bumpleak/osh | mut |
184 | 132 | 52 | 56.6 | _bin/cxx-opt+bumproot/osh | mut |
196 | 140 | 56 | 57.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 139 | 72 | 47.3 | osh-native | mut+alloc |
217 | 152 | 64 | 49.1 | osh-native | mut+alloc+free |
181 | 124 | 56 | 8.7 | osh-native | mut+alloc+free+gc |
182 | 134 | 47 | 8.8 | osh-native | mut+alloc+free+gc+exit |
237 | 169 | 68 | 62.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
212 | 180 | 32 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 104 | 100 | 46.9 | osh-native-souffle | mut+alloc |
212 | 152 | 60 | 48.5 | osh-native-souffle | mut+alloc+free |
175 | 123 | 52 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
174 | 111 | 63 | 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 | 9 | 1 | 3.4 | dash | - |
20 | 15 | 5 | 4.3 | bash | - |
18 | 12 | 7 | 3.4 | zsh | - |
20 | 15 | 5 | 12.9 | bumpleak/osh | mut |
21 | 16 | 5 | 12.9 | _bin/cxx-opt+bumproot/osh | mut |
20 | 18 | 2 | 14.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 11 | 10 | 11.0 | osh-native | mut+alloc |
22 | 17 | 5 | 11.0 | osh-native | mut+alloc+free |
23 | 10 | 13 | 8.8 | osh-native | mut+alloc+free+gc |
23 | 15 | 8 | 9.2 | osh-native | mut+alloc+free+gc+exit |
25 | 15 | 11 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 17 | 8 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 18 | 3 | 10.7 | osh-native-souffle | mut+alloc |
22 | 19 | 3 | 10.9 | osh-native-souffle | mut+alloc+free |
21 | 16 | 5 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 11 | 11 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |