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 | 35 | 3 | 9 | 12.0 | 17.8 | 476,751 | 1,282 | 6 | 406,604 | 5 | 203,302 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.4 | 476,751 | 1,282 | 6 | 406,200 | 5 | 203,100 | osh-native-souffle |
parse.configure-coreutils | 153 | 26 | 66 | 44.5 | 49.7 | 1,653,339 | 4,764 | 12 | 1,025,526 | 6 | 764,306 | osh-native |
parse.configure-coreutils | 147 | 28 | 68 | 44.5 | 49.3 | 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 | 22 | 0 | 2 | 2.1 | 7.6 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,858 | osh-native-souffle |
ex.bashcomp-parse-help | 184 | 0 | 4 | 10.8 | 8.9 | 1,006,008 | 15,258 | 21 | 50,000 | 0 | 3,919 | osh-native |
ex.bashcomp-parse-help | 177 | 0 | 4 | 10.8 | 8.4 | 1,006,007 | 15,258 | 21 | 50,000 | 0 | 3,842 | osh-native-souffle |
ex.abuild-print-help | 23 | 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.4 | 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 | 23 | 0 | 3.0 | bash | - |
104 | 60 | 52 | 3.4 | zsh | - |
16 | 12 | 4 | 28.7 | bumpleak/osh | mut |
20 | 12 | 8 | 29.8 | _bin/cxx-opt+bumproot/osh | mut |
23 | 15 | 7 | 28.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 29 | 0 | 25.2 | osh-native | mut+alloc |
31 | 13 | 18 | 25.7 | osh-native | mut+alloc+free |
35 | 31 | 4 | 17.8 | osh-native | mut+alloc+free+gc |
36 | 27 | 8 | 18.1 | osh-native | mut+alloc+free+gc+exit |
44 | 32 | 12 | 32.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 44 | 4 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 15 | 11 | 24.8 | osh-native-souffle | mut+alloc |
29 | 16 | 12 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 29 | 4 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
34 | 26 | 7 | 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 | 21 | 0 | 1.6 | dash | - |
79 | 78 | 0 | 3.1 | bash | - |
379 | 213 | 188 | 3.5 | zsh | - |
51 | 35 | 16 | 84.3 | bumpleak/osh | mut |
62 | 42 | 19 | 84.9 | _bin/cxx-opt+bumproot/osh | mut |
71 | 35 | 35 | 86.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 63 | 35 | 73.5 | osh-native | mut+alloc |
108 | 88 | 20 | 75.2 | osh-native | mut+alloc+free |
153 | 132 | 20 | 49.7 | osh-native | mut+alloc+free+gc |
158 | 134 | 24 | 50.4 | osh-native | mut+alloc+free+gc+exit |
139 | 95 | 43 | 97.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
216 | 192 | 24 | 67.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
93 | 61 | 31 | 73.0 | osh-native-souffle | mut+alloc |
98 | 57 | 41 | 74.9 | osh-native-souffle | mut+alloc+free |
147 | 126 | 20 | 49.3 | osh-native-souffle | mut+alloc+free+gc |
149 | 122 | 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 | 2 | 0 | 1.3 | dash | - |
6 | 3 | 3 | 2.9 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 0 | 6 | 11.4 | bumpleak/osh | mut |
7 | 7 | 0 | 11.7 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 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.5 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
7 | 7 | 0 | 9.7 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 5 | 5 | 7.9 | osh-native-souffle | mut+alloc+free+gc |
9 | 5 | 5 | 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 | - |
29 | 21 | 7 | 3.0 | bash | - |
24 | 16 | 8 | 3.1 | zsh | - |
18 | 9 | 9 | 31.1 | bumpleak/osh | mut |
27 | 22 | 4 | 32.2 | _bin/cxx-opt+bumproot/osh | mut |
28 | 20 | 8 | 32.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.2 | osh-native | mut+alloc |
37 | 21 | 16 | 26.6 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
55 | 34 | 21 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 11 | 19 | 26.1 | osh-native-souffle | mut+alloc |
32 | 28 | 4 | 26.0 | osh-native-souffle | mut+alloc+free |
22 | 17 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 18 | 4 | 7.3 | 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 | 12 | 3.1 | bash | - |
170 | 122 | 49 | 55.0 | bumpleak/osh | mut |
183 | 107 | 75 | 55.7 | _bin/cxx-opt+bumproot/osh | mut |
197 | 137 | 60 | 57.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
216 | 132 | 84 | 48.0 | osh-native | mut+alloc |
224 | 120 | 104 | 50.0 | osh-native | mut+alloc+free |
184 | 116 | 68 | 8.9 | osh-native | mut+alloc+free+gc |
184 | 144 | 40 | 8.9 | osh-native | mut+alloc+free+gc+exit |
235 | 159 | 75 | 64.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
214 | 177 | 36 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
208 | 144 | 64 | 47.6 | osh-native-souffle | mut+alloc |
217 | 148 | 68 | 49.6 | osh-native-souffle | mut+alloc+free |
177 | 129 | 48 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
177 | 92 | 84 | 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 |
10 | 8 | 2 | 3.5 | dash | - |
20 | 14 | 7 | 4.3 | bash | - |
18 | 9 | 9 | 3.5 | zsh | - |
19 | 11 | 8 | 12.1 | bumpleak/osh | mut |
21 | 13 | 9 | 13.0 | _bin/cxx-opt+bumproot/osh | mut |
20 | 15 | 6 | 13.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 22 | 0 | 11.1 | osh-native | mut+alloc |
23 | 16 | 7 | 11.3 | osh-native | mut+alloc+free |
23 | 16 | 8 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 12 | 12 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 19 | 6 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 17 | 9 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 6 | 15 | 10.7 | osh-native-souffle | mut+alloc |
22 | 18 | 4 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 15 | 6 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
22 | 14 | 8 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |