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.1 | 476,751 | 1,282 | 6 | 406,604 | 5 | 203,302 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.7 | 476,751 | 1,282 | 6 | 406,200 | 5 | 203,100 | osh-native-souffle |
parse.configure-coreutils | 173 | 27 | 85 | 44.5 | 49.8 | 1,653,339 | 4,764 | 12 | 1,025,526 | 6 | 764,306 | osh-native |
parse.configure-coreutils | 140 | 24 | 64 | 44.5 | 49.4 | 1,653,338 | 4,764 | 12 | 1,025,396 | 6 | 764,241 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.7 | 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 | 2 | 2.1 | 7.6 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,858 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 4 | 10.8 | 8.8 | 1,006,005 | 15,258 | 21 | 50,000 | 0 | 3,919 | osh-native |
ex.bashcomp-parse-help | 176 | 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.0 | 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 | - |
24 | 22 | 2 | 3.0 | bash | - |
100 | 57 | 49 | 3.3 | zsh | - |
16 | 11 | 5 | 28.1 | bumpleak/osh | mut |
19 | 16 | 3 | 29.2 | _bin/cxx-opt+bumproot/osh | mut |
22 | 19 | 3 | 29.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 20 | 10 | 25.2 | osh-native | mut+alloc |
31 | 19 | 13 | 25.7 | osh-native | mut+alloc+free |
36 | 32 | 4 | 18.1 | osh-native | mut+alloc+free+gc |
37 | 28 | 9 | 18.1 | osh-native | mut+alloc+free+gc+exit |
42 | 32 | 10 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
52 | 42 | 10 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 21 | 5 | 24.6 | osh-native-souffle | mut+alloc |
28 | 14 | 14 | 25.4 | osh-native-souffle | mut+alloc+free |
33 | 27 | 6 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
34 | 27 | 7 | 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 | 21 | 0 | 1.6 | dash | - |
80 | 78 | 2 | 3.1 | bash | - |
360 | 206 | 175 | 3.5 | zsh | - |
48 | 39 | 9 | 84.2 | bumpleak/osh | mut |
59 | 48 | 11 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
70 | 58 | 12 | 85.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 66 | 31 | 73.6 | osh-native | mut+alloc |
105 | 67 | 38 | 75.4 | osh-native | mut+alloc+free |
173 | 145 | 27 | 49.8 | osh-native | mut+alloc+free+gc |
165 | 148 | 17 | 50.5 | osh-native | mut+alloc+free+gc+exit |
138 | 90 | 48 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
237 | 212 | 25 | 66.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 60 | 28 | 73.3 | osh-native-souffle | mut+alloc |
96 | 64 | 32 | 75.0 | osh-native-souffle | mut+alloc+free |
140 | 125 | 15 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
161 | 139 | 22 | 50.2 | 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 | - |
5 | 4 | 1 | 2.9 | bash | - |
7 | 3 | 4 | 3.3 | zsh | - |
6 | 3 | 2 | 12.1 | bumpleak/osh | mut |
7 | 6 | 1 | 11.1 | _bin/cxx-opt+bumproot/osh | mut |
8 | 8 | 0 | 12.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 5 | 3 | 10.0 | osh-native | mut+alloc |
8 | 5 | 3 | 10.2 | osh-native | mut+alloc+free |
9 | 7 | 2 | 8.7 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.4 | osh-native | mut+alloc+free+gc+exit |
12 | 7 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 8 | 3 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 3 | 9.6 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 6 | 3 | 7.9 | osh-native-souffle | mut+alloc+free+gc |
9 | 7 | 2 | 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 |
11 | 10 | 1 | 1.4 | dash | - |
28 | 27 | 1 | 2.9 | bash | - |
23 | 14 | 9 | 3.3 | zsh | - |
18 | 14 | 4 | 30.8 | bumpleak/osh | mut |
26 | 22 | 4 | 32.8 | _bin/cxx-opt+bumproot/osh | mut |
28 | 23 | 5 | 32.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 23 | 15 | 26.3 | osh-native | mut+alloc |
38 | 29 | 9 | 26.6 | osh-native | mut+alloc+free |
28 | 26 | 2 | 8.0 | 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 |
38 | 35 | 3 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 22 | 7 | 25.8 | osh-native-souffle | mut+alloc |
31 | 21 | 10 | 26.2 | osh-native-souffle | mut+alloc+free |
21 | 18 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 17 | 5 | 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 |
74 | 70 | 4 | 3.1 | bash | - |
166 | 113 | 53 | 55.9 | bumpleak/osh | mut |
179 | 135 | 44 | 57.2 | _bin/cxx-opt+bumproot/osh | mut |
193 | 135 | 58 | 57.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 141 | 71 | 48.1 | osh-native | mut+alloc |
217 | 144 | 73 | 50.0 | osh-native | mut+alloc+free |
182 | 124 | 58 | 8.8 | osh-native | mut+alloc+free+gc |
183 | 126 | 57 | 8.8 | osh-native | mut+alloc+free+gc+exit |
234 | 148 | 86 | 63.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
215 | 168 | 48 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
208 | 122 | 86 | 47.6 | osh-native-souffle | mut+alloc |
213 | 146 | 67 | 49.3 | osh-native-souffle | mut+alloc+free |
176 | 123 | 53 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
175 | 120 | 55 | 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 |
9 | 5 | 4 | 3.5 | dash | - |
19 | 10 | 9 | 4.3 | bash | - |
17 | 6 | 11 | 3.5 | zsh | - |
19 | 5 | 14 | 12.3 | bumpleak/osh | mut |
21 | 10 | 11 | 13.0 | _bin/cxx-opt+bumproot/osh | mut |
20 | 12 | 9 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 8 | 14 | 11.0 | osh-native | mut+alloc |
23 | 8 | 15 | 11.1 | osh-native | mut+alloc+free |
23 | 11 | 13 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 11 | 13 | 9.2 | osh-native | mut+alloc+free+gc+exit |
25 | 11 | 15 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 12 | 14 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 10 | 11 | 10.5 | osh-native-souffle | mut+alloc |
21 | 9 | 13 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 11 | 10 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 11 | 11 | 8.4 | osh-native-souffle | mut+alloc+free+gc+exit |