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 | 9 | 12.0 | 17.8 | 476,751 | 1,282 | 6 | 406,604 | 5 | 203,302 | osh-native |
parse.configure-cpython | 33 | 4 | 9 | 12.0 | 17.6 | 476,751 | 1,282 | 6 | 406,200 | 5 | 203,100 | osh-native-souffle |
parse.configure-coreutils | 170 | 28 | 81 | 44.5 | 49.8 | 1,653,339 | 4,764 | 12 | 1,025,526 | 6 | 764,306 | osh-native |
parse.configure-coreutils | 142 | 28 | 67 | 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 | 8.0 | 101,942 | 180 | 3 | 87,092 | 1 | 43,546 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 2 | 2.1 | 8.0 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,919 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.1 | 7.5 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,858 | osh-native-souffle |
ex.bashcomp-parse-help | 183 | 0 | 4 | 10.8 | 8.8 | 1,006,005 | 15,258 | 21 | 50,000 | 0 | 3,919 | osh-native |
ex.bashcomp-parse-help | 178 | 0 | 4 | 10.8 | 8.4 | 1,006,004 | 15,258 | 21 | 50,000 | 0 | 3,842 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.2 | 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 | 5 | 1 | 1.6 | dash | - |
23 | 20 | 3 | 3.1 | bash | - |
101 | 58 | 50 | 3.4 | zsh | - |
16 | 11 | 5 | 28.0 | bumpleak/osh | mut |
20 | 18 | 2 | 28.8 | _bin/cxx-opt+bumproot/osh | mut |
23 | 17 | 6 | 30.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 16 | 14 | 25.2 | osh-native | mut+alloc |
32 | 20 | 12 | 25.6 | osh-native | mut+alloc+free |
36 | 30 | 6 | 17.8 | osh-native | mut+alloc+free+gc |
38 | 27 | 11 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 26 | 18 | 32.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 35 | 13 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 22 | 5 | 24.8 | osh-native-souffle | mut+alloc |
29 | 23 | 7 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 27 | 6 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
34 | 23 | 11 | 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 | 19 | 2 | 1.6 | dash | - |
78 | 77 | 1 | 3.3 | bash | - |
372 | 208 | 186 | 3.5 | zsh | - |
48 | 38 | 10 | 84.6 | bumpleak/osh | mut |
61 | 51 | 10 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
71 | 63 | 8 | 85.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
101 | 67 | 34 | 73.5 | osh-native | mut+alloc |
105 | 74 | 31 | 75.4 | osh-native | mut+alloc+free |
170 | 142 | 28 | 49.8 | osh-native | mut+alloc+free+gc |
189 | 164 | 25 | 50.3 | osh-native | mut+alloc+free+gc+exit |
138 | 90 | 48 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
247 | 219 | 28 | 66.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
90 | 59 | 31 | 73.2 | osh-native-souffle | mut+alloc |
95 | 58 | 37 | 74.8 | osh-native-souffle | mut+alloc+free |
142 | 121 | 21 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
157 | 130 | 27 | 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 | - |
6 | 4 | 2 | 2.9 | bash | - |
7 | 1 | 6 | 3.3 | zsh | - |
6 | 3 | 3 | 11.3 | bumpleak/osh | mut |
7 | 5 | 2 | 10.8 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 11.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 5 | 10.0 | osh-native | mut+alloc |
9 | 5 | 4 | 10.4 | osh-native | mut+alloc+free |
9 | 5 | 4 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 7 | 3 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 6 | 5 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 10 | 2 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 5 | 3 | 9.6 | osh-native-souffle | mut+alloc |
8 | 5 | 3 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 6 | 3 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
9 | 5 | 4 | 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 | - |
28 | 27 | 1 | 3.0 | bash | - |
23 | 17 | 6 | 3.3 | zsh | - |
18 | 14 | 4 | 32.9 | bumpleak/osh | mut |
26 | 19 | 7 | 31.4 | _bin/cxx-opt+bumproot/osh | mut |
28 | 22 | 6 | 31.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 28 | 9 | 26.3 | osh-native | mut+alloc |
39 | 24 | 15 | 26.6 | osh-native | mut+alloc+free |
29 | 25 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 27 | 2 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 38 | 16 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 15 | 16 | 26.0 | osh-native-souffle | mut+alloc |
32 | 24 | 8 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 20 | 2 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 19 | 3 | 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 | 67 | 6 | 3.1 | bash | - |
166 | 108 | 58 | 56.4 | bumpleak/osh | mut |
181 | 120 | 61 | 57.2 | _bin/cxx-opt+bumproot/osh | mut |
196 | 138 | 58 | 57.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
214 | 149 | 65 | 48.2 | osh-native | mut+alloc |
222 | 154 | 68 | 49.9 | osh-native | mut+alloc+free |
183 | 118 | 65 | 8.8 | osh-native | mut+alloc+free+gc |
183 | 126 | 57 | 8.9 | osh-native | mut+alloc+free+gc+exit |
237 | 152 | 86 | 64.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
221 | 168 | 53 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
205 | 126 | 79 | 47.8 | osh-native-souffle | mut+alloc |
214 | 152 | 62 | 49.5 | osh-native-souffle | mut+alloc+free |
178 | 138 | 40 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
175 | 126 | 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 | 7 | 3.5 | dash | - |
19 | 12 | 8 | 4.5 | bash | - |
17 | 7 | 11 | 3.5 | zsh | - |
20 | 5 | 15 | 12.7 | bumpleak/osh | mut |
22 | 9 | 13 | 13.4 | _bin/cxx-opt+bumproot/osh | mut |
21 | 10 | 11 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 8 | 13 | 11.0 | osh-native | mut+alloc |
22 | 11 | 12 | 11.3 | osh-native | mut+alloc+free |
23 | 12 | 12 | 9.2 | osh-native | mut+alloc+free+gc |
23 | 13 | 10 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 12 | 13 | 12.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 14 | 11 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 9 | 11 | 10.6 | osh-native-souffle | mut+alloc |
21 | 12 | 10 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 11 | 11 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 11 | 11 | 8.8 | osh-native-souffle | mut+alloc+free+gc+exit |