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 | 17.8 | 476,751 | 1,282 | 6 | 406,604 | 5 | 203,302 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.4 | 476,751 | 1,282 | 6 | 406,200 | 5 | 203,100 | osh-native-souffle |
parse.configure-coreutils | 149 | 24 | 64 | 44.5 | 49.8 | 1,653,339 | 4,764 | 12 | 1,025,526 | 6 | 764,306 | osh-native |
parse.configure-coreutils | 135 | 23 | 59 | 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.5 | 101,942 | 180 | 2 | 75,030 | 1 | 37,515 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 7.9 | 101,942 | 180 | 3 | 87,092 | 1 | 43,546 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.1 | 8.0 | 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 | 180 | 0 | 4 | 10.8 | 8.7 | 1,006,005 | 15,258 | 21 | 50,000 | 0 | 3,919 | osh-native |
ex.bashcomp-parse-help | 174 | 0 | 4 | 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 | 9.0 | 116,318 | 277 | 3 | 85,248 | 1 | 42,624 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 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 | 5 | 1 | 1.6 | dash | - |
23 | 22 | 1 | 3.0 | bash | - |
101 | 63 | 45 | 3.4 | zsh | - |
16 | 12 | 4 | 28.4 | bumpleak/osh | mut |
20 | 15 | 4 | 28.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 16 | 6 | 29.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 24 | 6 | 25.3 | osh-native | mut+alloc |
31 | 23 | 8 | 25.8 | osh-native | mut+alloc+free |
36 | 27 | 9 | 17.8 | osh-native | mut+alloc+free+gc |
37 | 31 | 5 | 18.0 | osh-native | mut+alloc+free+gc+exit |
42 | 28 | 14 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 43 | 6 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 15 | 12 | 24.9 | osh-native-souffle | mut+alloc |
28 | 18 | 10 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 26 | 6 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
34 | 30 | 4 | 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 | 20 | 1 | 1.6 | dash | - |
78 | 75 | 3 | 3.1 | bash | - |
366 | 188 | 199 | 3.5 | zsh | - |
49 | 39 | 10 | 84.0 | bumpleak/osh | mut |
60 | 48 | 12 | 86.0 | _bin/cxx-opt+bumproot/osh | mut |
71 | 58 | 13 | 86.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 68 | 29 | 73.5 | osh-native | mut+alloc |
104 | 70 | 34 | 75.4 | osh-native | mut+alloc+free |
149 | 128 | 21 | 49.8 | osh-native | mut+alloc+free+gc |
162 | 134 | 25 | 50.5 | osh-native | mut+alloc+free+gc+exit |
140 | 95 | 45 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
227 | 199 | 28 | 66.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 54 | 34 | 73.0 | osh-native-souffle | mut+alloc |
94 | 63 | 31 | 74.9 | osh-native-souffle | mut+alloc+free |
135 | 104 | 31 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
145 | 124 | 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.3 | dash | - |
5 | 4 | 2 | 3.0 | bash | - |
8 | 1 | 7 | 3.1 | zsh | - |
6 | 5 | 1 | 11.2 | bumpleak/osh | mut |
7 | 3 | 4 | 11.3 | _bin/cxx-opt+bumproot/osh | mut |
7 | 2 | 5 | 11.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 5 | 3 | 10.0 | osh-native | mut+alloc |
9 | 6 | 2 | 10.1 | osh-native | mut+alloc+free |
9 | 7 | 2 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 7 | 2 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 5 | 7 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 6 | 2 | 9.7 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 9 | 0 | 7.9 | osh-native-souffle | mut+alloc+free+gc |
9 | 5 | 4 | 7.9 | 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.6 | dash | - |
28 | 26 | 2 | 3.0 | bash | - |
23 | 20 | 3 | 3.1 | zsh | - |
19 | 13 | 6 | 32.2 | bumpleak/osh | mut |
25 | 18 | 7 | 31.6 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 27 | 9 | 26.5 | osh-native | mut+alloc |
38 | 31 | 7 | 26.6 | osh-native | mut+alloc+free |
28 | 26 | 2 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 26 | 2 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 34 | 20 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 35 | 3 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
29 | 20 | 9 | 25.8 | osh-native-souffle | mut+alloc |
31 | 23 | 8 | 26.2 | osh-native-souffle | mut+alloc+free |
21 | 19 | 2 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
21 | 19 | 2 | 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.1 | bash | - |
168 | 110 | 58 | 56.4 | bumpleak/osh | mut |
179 | 126 | 52 | 55.6 | _bin/cxx-opt+bumproot/osh | mut |
195 | 122 | 73 | 56.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 136 | 77 | 48.2 | osh-native | mut+alloc |
220 | 164 | 56 | 50.0 | osh-native | mut+alloc+free |
180 | 130 | 50 | 8.7 | osh-native | mut+alloc+free+gc |
181 | 118 | 63 | 8.8 | osh-native | mut+alloc+free+gc+exit |
235 | 143 | 92 | 64.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 142 | 69 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 130 | 74 | 47.8 | osh-native-souffle | mut+alloc |
214 | 134 | 80 | 49.6 | osh-native-souffle | mut+alloc+free |
174 | 116 | 58 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
174 | 122 | 52 | 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 | 5 | 5 | 3.5 | dash | - |
19 | 10 | 9 | 4.5 | bash | - |
17 | 11 | 7 | 3.5 | zsh | - |
18 | 8 | 10 | 11.3 | bumpleak/osh | mut |
20 | 10 | 11 | 12.8 | _bin/cxx-opt+bumproot/osh | mut |
20 | 6 | 15 | 12.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 11 | 10 | 11.0 | osh-native | mut+alloc |
22 | 10 | 13 | 10.9 | osh-native | mut+alloc+free |
22 | 11 | 12 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 10 | 14 | 8.9 | osh-native | mut+alloc+free+gc+exit |
24 | 11 | 14 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 15 | 11 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 9 | 12 | 10.6 | osh-native-souffle | mut+alloc |
21 | 7 | 14 | 10.6 | osh-native-souffle | mut+alloc+free |
21 | 14 | 7 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 10 | 12 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |