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 | 37 | 4 | 10 | 12.0 | 18.1 | 476,751 | 1,282 | 6 | 406,604 | 5 | 203,302 | osh-native |
parse.configure-cpython | 35 | 5 | 11 | 12.0 | 17.7 | 476,751 | 1,282 | 6 | 406,200 | 5 | 203,100 | osh-native-souffle |
parse.configure-coreutils | 147 | 24 | 62 | 44.5 | 49.7 | 1,653,339 | 4,764 | 12 | 1,025,526 | 6 | 764,306 | osh-native |
parse.configure-coreutils | 139 | 23 | 63 | 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 | 1 | 2.1 | 7.9 | 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 | 187 | 0 | 4 | 10.8 | 8.9 | 1,006,008 | 15,258 | 21 | 50,000 | 0 | 3,919 | osh-native |
ex.bashcomp-parse-help | 179 | 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.2 | 116,318 | 277 | 3 | 85,248 | 1 | 42,624 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.8 | 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 | 2.9 | bash | - |
107 | 57 | 56 | 3.4 | zsh | - |
17 | 16 | 0 | 29.9 | bumpleak/osh | mut |
19 | 15 | 4 | 29.4 | _bin/cxx-opt+bumproot/osh | mut |
24 | 24 | 0 | 29.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 22 | 7 | 25.2 | osh-native | mut+alloc |
32 | 24 | 8 | 25.4 | osh-native | mut+alloc+free |
37 | 33 | 4 | 18.1 | osh-native | mut+alloc+free+gc |
37 | 32 | 4 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 28 | 16 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
51 | 43 | 8 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 8 | 19 | 24.9 | osh-native-souffle | mut+alloc |
30 | 21 | 8 | 25.2 | osh-native-souffle | mut+alloc+free |
35 | 27 | 8 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
35 | 31 | 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 |
22 | 21 | 0 | 1.6 | dash | - |
77 | 77 | 0 | 3.1 | bash | - |
387 | 234 | 173 | 3.4 | zsh | - |
50 | 30 | 19 | 85.0 | bumpleak/osh | mut |
60 | 52 | 8 | 85.3 | _bin/cxx-opt+bumproot/osh | mut |
72 | 68 | 4 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 67 | 28 | 73.5 | osh-native | mut+alloc |
118 | 77 | 41 | 75.4 | osh-native | mut+alloc+free |
147 | 123 | 24 | 49.7 | osh-native | mut+alloc+free+gc |
162 | 134 | 28 | 50.5 | osh-native | mut+alloc+free+gc+exit |
137 | 113 | 24 | 99.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
206 | 178 | 28 | 68.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 59 | 28 | 73.1 | osh-native-souffle | mut+alloc |
96 | 60 | 36 | 74.8 | osh-native-souffle | mut+alloc+free |
139 | 115 | 24 | 49.3 | osh-native-souffle | mut+alloc+free+gc |
145 | 124 | 20 | 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.4 | dash | - |
6 | 6 | 0 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 6 | 0 | 11.1 | bumpleak/osh | mut |
6 | 6 | 0 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
8 | 8 | 0 | 11.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.0 | osh-native | mut+alloc |
9 | 3 | 6 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 3 | 6 | 8.4 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 0 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 8 | 0 | 9.6 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 6 | 3 | 7.9 | osh-native-souffle | mut+alloc+free+gc |
10 | 7 | 3 | 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 | - |
29 | 28 | 0 | 2.9 | bash | - |
24 | 16 | 8 | 3.4 | zsh | - |
18 | 15 | 4 | 31.2 | bumpleak/osh | mut |
26 | 26 | 0 | 32.6 | _bin/cxx-opt+bumproot/osh | mut |
35 | 31 | 4 | 32.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.3 | osh-native | mut+alloc |
37 | 37 | 0 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 20 | 8 | 8.0 | osh-native | mut+alloc+free+gc+exit |
55 | 23 | 31 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 25 | 4 | 26.0 | osh-native-souffle | mut+alloc |
31 | 13 | 17 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 21 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 22 | 0 | 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 | 69 | 4 | 3.1 | bash | - |
170 | 106 | 63 | 55.0 | bumpleak/osh | mut |
183 | 98 | 85 | 55.6 | _bin/cxx-opt+bumproot/osh | mut |
198 | 119 | 79 | 57.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
215 | 123 | 91 | 48.0 | osh-native | mut+alloc |
221 | 124 | 96 | 50.0 | osh-native | mut+alloc+free |
187 | 115 | 72 | 8.9 | osh-native | mut+alloc+free+gc |
184 | 128 | 56 | 8.9 | osh-native | mut+alloc+free+gc+exit |
239 | 171 | 68 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
214 | 157 | 56 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
210 | 139 | 71 | 47.7 | osh-native-souffle | mut+alloc |
217 | 140 | 76 | 49.2 | osh-native-souffle | mut+alloc+free |
179 | 102 | 77 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
178 | 105 | 73 | 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 | 1 | 3.5 | dash | - |
20 | 16 | 5 | 4.3 | bash | - |
18 | 13 | 5 | 3.4 | zsh | - |
18 | 10 | 9 | 11.8 | bumpleak/osh | mut |
20 | 15 | 6 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
20 | 15 | 6 | 12.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 20 | 3 | 11.1 | osh-native | mut+alloc |
22 | 20 | 2 | 11.0 | osh-native | mut+alloc+free |
23 | 23 | 0 | 9.2 | osh-native | mut+alloc+free+gc |
23 | 21 | 2 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 13 | 12 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 11 | 14 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
21 | 5 | 16 | 10.6 | osh-native-souffle | mut+alloc |
21 | 6 | 16 | 10.7 | osh-native-souffle | mut+alloc+free |
22 | 14 | 8 | 8.8 | osh-native-souffle | mut+alloc+free+gc |
22 | 20 | 3 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |