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 | 34 | 3 | 9 | 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 | 146 | 24 | 61 | 44.5 | 49.8 | 1,653,343 | 4,764 | 12 | 1,025,534 | 6 | 764,310 | osh-native |
parse.configure-coreutils | 132 | 21 | 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.7 | 101,946 | 180 | 2 | 75,038 | 1 | 37,519 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 7.9 | 101,946 | 180 | 3 | 87,100 | 1 | 43,550 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.1 | 8.1 | 579,610 | 22,608 | 12 | 50,000 | 0 | 2,923 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.1 | 7.6 | 579,610 | 22,608 | 12 | 50,000 | 0 | 2,862 | osh-native-souffle |
ex.bashcomp-parse-help | 179 | 0 | 3 | 10.3 | 8.9 | 995,292 | 15,258 | 21 | 50,000 | 0 | 3,905 | osh-native |
ex.bashcomp-parse-help | 174 | 0 | 3 | 10.3 | 8.1 | 995,291 | 15,258 | 21 | 50,000 | 0 | 3,848 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.2 | 116,322 | 277 | 3 | 85,256 | 1 | 42,628 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.5 | 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 | 6 | 0 | 1.6 | dash | - |
24 | 23 | 0 | 3.0 | bash | - |
104 | 52 | 59 | 3.3 | zsh | - |
16 | 16 | 0 | 29.6 | bumpleak/osh | mut |
19 | 14 | 5 | 30.0 | _bin/cxx-opt+bumproot/osh | mut |
22 | 21 | 0 | 29.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 25 | 4 | 25.0 | osh-native | mut+alloc |
31 | 27 | 4 | 25.7 | osh-native | mut+alloc+free |
34 | 21 | 13 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 24 | 12 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 24 | 20 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 37 | 11 | 22.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 9 | 17 | 24.8 | osh-native-souffle | mut+alloc |
28 | 20 | 8 | 25.2 | osh-native-souffle | mut+alloc+free |
32 | 24 | 8 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
32 | 28 | 4 | 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 |
23 | 22 | 0 | 1.6 | dash | - |
78 | 74 | 4 | 3.1 | bash | - |
375 | 183 | 213 | 3.5 | zsh | - |
47 | 32 | 16 | 85.1 | bumpleak/osh | mut |
60 | 52 | 8 | 85.3 | _bin/cxx-opt+bumproot/osh | mut |
69 | 56 | 12 | 86.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 60 | 36 | 73.7 | osh-native | mut+alloc |
104 | 68 | 36 | 75.4 | osh-native | mut+alloc+free |
146 | 117 | 28 | 49.8 | osh-native | mut+alloc+free+gc |
147 | 127 | 20 | 50.5 | osh-native | mut+alloc+free+gc+exit |
137 | 101 | 36 | 98.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
203 | 139 | 64 | 67.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
86 | 58 | 27 | 73.0 | osh-native-souffle | mut+alloc |
94 | 58 | 35 | 75.0 | osh-native-souffle | mut+alloc+free |
132 | 116 | 16 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
136 | 100 | 36 | 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 | 6 | 0 | 2.9 | bash | - |
8 | 0 | 7 | 3.3 | zsh | - |
6 | 6 | 0 | 12.3 | bumpleak/osh | mut |
6 | 3 | 3 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
7 | 0 | 7 | 11.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 0 | 8 | 10.0 | osh-native | mut+alloc |
8 | 8 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
11 | 11 | 0 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 0 | 9.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
7 | 0 | 7 | 9.7 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 6 | 3 | 7.9 | osh-native-souffle | mut+alloc+free+gc |
9 | 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 | 29 | 0 | 2.9 | bash | - |
24 | 24 | 0 | 3.3 | zsh | - |
18 | 18 | 0 | 31.2 | bumpleak/osh | mut |
25 | 21 | 4 | 31.9 | _bin/cxx-opt+bumproot/osh | mut |
28 | 28 | 0 | 32.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 32 | 4 | 26.2 | osh-native | mut+alloc |
38 | 30 | 7 | 26.6 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.1 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
53 | 26 | 26 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 29 | 7 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 26 | 4 | 25.8 | osh-native-souffle | mut+alloc |
31 | 23 | 8 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 22 | 0 | 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 | 61 | 11 | 3.3 | bash | - |
166 | 105 | 61 | 55.8 | bumpleak/osh | mut |
181 | 133 | 48 | 55.6 | _bin/cxx-opt+bumproot/osh | mut |
194 | 125 | 69 | 55.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 139 | 72 | 47.4 | osh-native | mut+alloc |
217 | 114 | 103 | 49.0 | osh-native | mut+alloc+free |
179 | 130 | 49 | 8.9 | osh-native | mut+alloc+free+gc |
181 | 133 | 48 | 8.8 | osh-native | mut+alloc+free+gc+exit |
229 | 137 | 92 | 63.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 142 | 67 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
202 | 154 | 47 | 46.7 | osh-native-souffle | mut+alloc |
213 | 142 | 71 | 48.6 | osh-native-souffle | mut+alloc+free |
174 | 110 | 63 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
175 | 131 | 44 | 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 | 5 | 5 | 3.4 | dash | - |
20 | 12 | 9 | 4.5 | bash | - |
18 | 10 | 8 | 3.5 | zsh | - |
18 | 12 | 7 | 11.5 | bumpleak/osh | mut |
19 | 13 | 6 | 13.7 | _bin/cxx-opt+bumproot/osh | mut |
20 | 13 | 8 | 12.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 15 | 8 | 11.1 | osh-native | mut+alloc |
24 | 18 | 7 | 11.3 | osh-native | mut+alloc+free |
22 | 13 | 9 | 9.2 | osh-native | mut+alloc+free+gc |
23 | 15 | 8 | 8.9 | osh-native | mut+alloc+free+gc+exit |
24 | 15 | 10 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 22 | 4 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 13 | 8 | 10.6 | osh-native-souffle | mut+alloc |
21 | 10 | 11 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 16 | 5 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 18 | 4 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |