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,751 | 1,282 | 6 | 406,604 | 5 | 203,302 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.6 | 476,751 | 1,282 | 6 | 406,200 | 5 | 203,100 | osh-native-souffle |
parse.configure-coreutils | 151 | 25 | 64 | 44.5 | 49.8 | 1,653,339 | 4,764 | 12 | 1,025,526 | 6 | 764,306 | osh-native |
parse.configure-coreutils | 133 | 24 | 58 | 44.5 | 49.5 | 1,653,338 | 4,764 | 12 | 1,025,396 | 6 | 764,241 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.8 | 101,942 | 180 | 2 | 75,030 | 1 | 37,515 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 8.0 | 101,942 | 180 | 3 | 87,092 | 1 | 43,546 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.1 | 8.1 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,919 | osh-native |
ex.compute-fib | 21 | 0 | 1 | 2.1 | 7.5 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,858 | osh-native-souffle |
ex.bashcomp-parse-help | 181 | 0 | 4 | 10.8 | 8.9 | 1,006,005 | 15,258 | 21 | 50,000 | 0 | 3,919 | osh-native |
ex.bashcomp-parse-help | 172 | 0 | 3 | 10.8 | 8.5 | 1,006,004 | 15,258 | 21 | 50,000 | 0 | 3,842 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 116,318 | 277 | 3 | 85,248 | 1 | 42,624 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.5 | 116,318 | 277 | 3 | 85,124 | 1 | 42,562 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 22 | 1 | 3.1 | bash | - |
99 | 54 | 52 | 3.5 | zsh | - |
16 | 11 | 5 | 28.9 | bumpleak/osh | mut |
20 | 17 | 3 | 29.0 | _bin/cxx-opt+bumproot/osh | mut |
22 | 20 | 2 | 29.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 22 | 7 | 25.2 | osh-native | mut+alloc |
31 | 20 | 11 | 25.7 | osh-native | mut+alloc+free |
36 | 27 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 24 | 12 | 18.1 | osh-native | mut+alloc+free+gc+exit |
42 | 25 | 16 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 38 | 10 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 15 | 12 | 24.9 | osh-native-souffle | mut+alloc |
28 | 19 | 9 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 29 | 3 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 24 | 9 | 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 |
21 | 20 | 1 | 1.6 | dash | - |
78 | 76 | 2 | 3.3 | bash | - |
363 | 199 | 186 | 3.5 | zsh | - |
49 | 37 | 12 | 84.0 | bumpleak/osh | mut |
60 | 51 | 9 | 85.8 | _bin/cxx-opt+bumproot/osh | mut |
69 | 50 | 19 | 86.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 72 | 24 | 73.4 | osh-native | mut+alloc |
103 | 72 | 31 | 75.2 | osh-native | mut+alloc+free |
151 | 128 | 23 | 49.8 | osh-native | mut+alloc+free+gc |
162 | 141 | 22 | 50.5 | osh-native | mut+alloc+free+gc+exit |
137 | 95 | 42 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
216 | 185 | 31 | 66.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 64 | 23 | 73.0 | osh-native-souffle | mut+alloc |
99 | 65 | 34 | 75.0 | osh-native-souffle | mut+alloc+free |
133 | 114 | 20 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
138 | 125 | 13 | 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 | 1 | 1 | 1.4 | dash | - |
5 | 4 | 1 | 2.9 | bash | - |
7 | 5 | 2 | 3.3 | zsh | - |
6 | 3 | 4 | 11.2 | bumpleak/osh | mut |
7 | 3 | 4 | 11.2 | _bin/cxx-opt+bumproot/osh | mut |
8 | 5 | 3 | 12.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 5 | 3 | 10.0 | osh-native | mut+alloc |
8 | 4 | 5 | 10.2 | osh-native | mut+alloc+free |
9 | 7 | 2 | 8.8 | osh-native | mut+alloc+free+gc |
9 | 7 | 2 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 7 | 5 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 8 | 4 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 5 | 2 | 9.7 | osh-native-souffle | mut+alloc |
8 | 6 | 2 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 6 | 3 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
9 | 7 | 2 | 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 | 9 | 1 | 1.6 | dash | - |
28 | 27 | 1 | 3.0 | bash | - |
23 | 16 | 7 | 3.1 | zsh | - |
19 | 13 | 5 | 31.6 | bumpleak/osh | mut |
26 | 23 | 3 | 31.8 | _bin/cxx-opt+bumproot/osh | mut |
28 | 26 | 2 | 32.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 22 | 14 | 26.2 | osh-native | mut+alloc |
37 | 28 | 9 | 26.5 | osh-native | mut+alloc+free |
28 | 25 | 3 | 8.1 | osh-native | mut+alloc+free+gc |
28 | 26 | 2 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 36 | 18 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 19 | 11 | 25.8 | osh-native-souffle | mut+alloc |
32 | 22 | 10 | 26.3 | osh-native-souffle | mut+alloc+free |
21 | 18 | 3 | 7.5 | 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 |
73 | 70 | 3 | 3.0 | bash | - |
167 | 120 | 47 | 55.1 | bumpleak/osh | mut |
179 | 125 | 54 | 56.0 | _bin/cxx-opt+bumproot/osh | mut |
195 | 133 | 62 | 57.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 149 | 63 | 48.2 | osh-native | mut+alloc |
222 | 148 | 74 | 50.0 | osh-native | mut+alloc+free |
181 | 129 | 52 | 8.9 | osh-native | mut+alloc+free+gc |
182 | 108 | 74 | 8.8 | osh-native | mut+alloc+free+gc+exit |
232 | 144 | 89 | 64.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 157 | 52 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
205 | 124 | 81 | 47.6 | osh-native-souffle | mut+alloc |
212 | 142 | 70 | 49.6 | osh-native-souffle | mut+alloc+free |
172 | 126 | 47 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
174 | 125 | 49 | 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 |
9 | 3 | 6 | 3.5 | dash | - |
19 | 9 | 11 | 4.5 | bash | - |
17 | 8 | 9 | 3.5 | zsh | - |
19 | 6 | 14 | 12.8 | bumpleak/osh | mut |
19 | 11 | 9 | 13.6 | _bin/cxx-opt+bumproot/osh | mut |
21 | 13 | 9 | 13.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 11 | 11 | 11.0 | osh-native | mut+alloc |
22 | 10 | 13 | 11.1 | osh-native | mut+alloc+free |
22 | 14 | 8 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 17 | 6 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 11 | 13 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 16 | 9 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 8 | 13 | 10.6 | osh-native-souffle | mut+alloc |
21 | 13 | 9 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 10 | 11 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
21 | 10 | 12 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |