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 | 3 | 10 | 12.0 | 18.0 | 476,755 | 1,282 | 6 | 406,612 | 5 | 203,306 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.6 | 476,755 | 1,282 | 6 | 406,208 | 5 | 203,104 | osh-native-souffle |
parse.configure-coreutils | 149 | 24 | 63 | 44.5 | 49.8 | 1,653,343 | 4,764 | 12 | 1,025,534 | 6 | 764,310 | osh-native |
parse.configure-coreutils | 133 | 22 | 56 | 44.5 | 49.5 | 1,653,342 | 4,764 | 12 | 1,025,404 | 6 | 764,245 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,946 | 180 | 2 | 75,038 | 1 | 37,519 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 8.0 | 101,946 | 180 | 3 | 87,100 | 1 | 43,550 | osh-native-souffle |
ex.compute-fib | 27 | 0 | 2 | 2.1 | 8.0 | 579,610 | 22,608 | 12 | 50,000 | 0 | 2,923 | osh-native |
ex.compute-fib | 21 | 0 | 1 | 2.1 | 7.5 | 579,610 | 22,608 | 12 | 50,000 | 0 | 2,862 | osh-native-souffle |
ex.bashcomp-parse-help | 181 | 0 | 4 | 10.3 | 8.7 | 995,292 | 15,258 | 21 | 50,000 | 0 | 3,905 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 3 | 10.3 | 8.3 | 995,291 | 15,258 | 21 | 50,000 | 0 | 3,848 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,322 | 277 | 3 | 85,256 | 1 | 42,628 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.4 | 116,322 | 277 | 3 | 85,132 | 1 | 42,566 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 3 | 3 | 1.6 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
106 | 71 | 41 | 3.3 | zsh | - |
16 | 12 | 4 | 29.1 | bumpleak/osh | mut |
19 | 19 | 0 | 29.7 | _bin/cxx-opt+bumproot/osh | mut |
22 | 17 | 4 | 30.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 25 | 4 | 25.0 | osh-native | mut+alloc |
31 | 19 | 12 | 25.7 | osh-native | mut+alloc+free |
36 | 32 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 33 | 4 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 27 | 16 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 43 | 4 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 22 | 4 | 24.8 | osh-native-souffle | mut+alloc |
28 | 16 | 12 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 28 | 4 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 18 | 15 | 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 |
21 | 21 | 0 | 1.6 | dash | - |
77 | 73 | 4 | 3.0 | bash | - |
376 | 182 | 214 | 3.5 | zsh | - |
49 | 40 | 8 | 83.8 | bumpleak/osh | mut |
59 | 39 | 20 | 86.4 | _bin/cxx-opt+bumproot/osh | mut |
70 | 42 | 27 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 68 | 28 | 73.5 | osh-native | mut+alloc |
104 | 64 | 40 | 75.5 | osh-native | mut+alloc+free |
149 | 121 | 27 | 49.8 | osh-native | mut+alloc+free+gc |
151 | 114 | 37 | 50.4 | osh-native | mut+alloc+free+gc+exit |
137 | 92 | 44 | 97.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
202 | 166 | 36 | 67.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 55 | 32 | 73.1 | osh-native-souffle | mut+alloc |
96 | 64 | 32 | 74.9 | osh-native-souffle | mut+alloc+free |
133 | 102 | 31 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
140 | 116 | 24 | 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 | 3 | 3 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 6 | 0 | 10.8 | bumpleak/osh | mut |
6 | 6 | 0 | 10.8 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.4 | _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 | 4 | 4 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 5 | 5 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
7 | 7 | 0 | 9.7 | 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.4 | dash | - |
28 | 28 | 0 | 2.9 | bash | - |
24 | 24 | 0 | 3.3 | zsh | - |
18 | 9 | 9 | 31.3 | bumpleak/osh | mut |
25 | 17 | 8 | 31.6 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 32 | 4 | 26.2 | osh-native | mut+alloc |
37 | 29 | 8 | 26.5 | osh-native | mut+alloc+free |
27 | 27 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 37 | 16 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 28 | 8 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 25 | 4 | 26.0 | osh-native-souffle | mut+alloc |
31 | 23 | 8 | 26.3 | osh-native-souffle | mut+alloc+free |
21 | 14 | 7 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 22 | 0 | 7.7 | 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 |
74 | 65 | 8 | 3.1 | bash | - |
167 | 119 | 48 | 55.1 | bumpleak/osh | mut |
181 | 113 | 68 | 55.8 | _bin/cxx-opt+bumproot/osh | mut |
195 | 151 | 44 | 57.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 151 | 59 | 47.4 | osh-native | mut+alloc |
215 | 158 | 57 | 49.1 | osh-native | mut+alloc+free |
181 | 156 | 24 | 8.7 | osh-native | mut+alloc+free+gc |
183 | 134 | 49 | 8.7 | osh-native | mut+alloc+free+gc+exit |
232 | 142 | 89 | 64.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
207 | 163 | 44 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
203 | 117 | 85 | 46.9 | osh-native-souffle | mut+alloc |
210 | 145 | 65 | 48.7 | osh-native-souffle | mut+alloc+free |
175 | 123 | 52 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
175 | 115 | 60 | 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 | 5 | 6 | 3.4 | dash | - |
20 | 12 | 8 | 4.5 | bash | - |
18 | 17 | 1 | 3.5 | zsh | - |
18 | 12 | 6 | 13.1 | bumpleak/osh | mut |
20 | 11 | 9 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
20 | 6 | 14 | 12.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 11 | 10 | 11.1 | osh-native | mut+alloc |
22 | 19 | 4 | 11.1 | osh-native | mut+alloc+free |
22 | 7 | 16 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 14 | 9 | 9.2 | osh-native | mut+alloc+free+gc+exit |
24 | 21 | 4 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 14 | 11 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 6 | 14 | 10.6 | osh-native-souffle | mut+alloc |
21 | 16 | 6 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 19 | 3 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
22 | 17 | 6 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |