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 | 34 | 4 | 10 | 12.0 | 17.4 | 476,751 | 1,282 | 6 | 406,200 | 5 | 203,100 | osh-native-souffle |
parse.configure-coreutils | 166 | 28 | 80 | 44.5 | 49.8 | 1,653,339 | 4,764 | 12 | 1,025,526 | 6 | 764,306 | osh-native |
parse.configure-coreutils | 140 | 26 | 64 | 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.5 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,858 | osh-native-souffle |
ex.bashcomp-parse-help | 181 | 0 | 4 | 10.8 | 8.8 | 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 | 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.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 | 6 | 0 | 1.4 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
101 | 59 | 49 | 3.3 | zsh | - |
16 | 14 | 2 | 29.7 | bumpleak/osh | mut |
20 | 15 | 5 | 28.5 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 28.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 20 | 10 | 25.3 | osh-native | mut+alloc |
31 | 21 | 10 | 25.6 | osh-native | mut+alloc+free |
36 | 31 | 5 | 18.1 | osh-native | mut+alloc+free+gc |
38 | 32 | 5 | 18.0 | osh-native | mut+alloc+free+gc+exit |
42 | 27 | 15 | 32.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
50 | 36 | 14 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 21 | 5 | 24.8 | osh-native-souffle | mut+alloc |
30 | 25 | 5 | 25.3 | osh-native-souffle | mut+alloc+free |
34 | 31 | 3 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
34 | 24 | 10 | 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 | 76 | 2 | 3.3 | bash | - |
369 | 201 | 190 | 3.7 | zsh | - |
49 | 37 | 12 | 85.3 | bumpleak/osh | mut |
61 | 54 | 7 | 85.0 | _bin/cxx-opt+bumproot/osh | mut |
70 | 60 | 10 | 85.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 61 | 36 | 73.4 | osh-native | mut+alloc |
105 | 65 | 40 | 75.2 | osh-native | mut+alloc+free |
166 | 143 | 23 | 49.8 | osh-native | mut+alloc+free+gc |
167 | 143 | 24 | 50.5 | osh-native | mut+alloc+free+gc+exit |
139 | 94 | 45 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
244 | 213 | 31 | 66.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 58 | 29 | 73.3 | osh-native-souffle | mut+alloc |
98 | 64 | 34 | 75.0 | osh-native-souffle | mut+alloc+free |
140 | 121 | 19 | 49.3 | osh-native-souffle | mut+alloc+free+gc |
159 | 136 | 23 | 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 | 1 | 1 | 1.4 | dash | - |
6 | 3 | 3 | 2.9 | bash | - |
8 | 6 | 2 | 3.4 | zsh | - |
6 | 3 | 3 | 10.5 | bumpleak/osh | mut |
7 | 6 | 1 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
7 | 2 | 5 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 3 | 6 | 10.0 | osh-native | mut+alloc |
9 | 6 | 3 | 10.1 | osh-native | mut+alloc+free |
9 | 5 | 4 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 8 | 1 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 9 | 3 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 2 | 6 | 9.6 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 7 | 2 | 7.9 | osh-native-souffle | mut+alloc+free+gc |
9 | 8 | 1 | 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 | 9 | 1 | 1.4 | dash | - |
28 | 28 | 0 | 3.0 | bash | - |
23 | 14 | 9 | 3.3 | zsh | - |
19 | 15 | 4 | 32.6 | bumpleak/osh | mut |
27 | 22 | 5 | 32.5 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 31.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 28 | 9 | 26.3 | osh-native | mut+alloc |
37 | 28 | 9 | 26.6 | osh-native | mut+alloc+free |
28 | 25 | 3 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 25 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
53 | 39 | 14 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 35 | 2 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 16 | 14 | 26.0 | osh-native-souffle | mut+alloc |
32 | 22 | 10 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 19 | 3 | 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 | 68 | 5 | 3.0 | bash | - |
165 | 114 | 51 | 55.1 | bumpleak/osh | mut |
180 | 125 | 55 | 56.1 | _bin/cxx-opt+bumproot/osh | mut |
194 | 140 | 54 | 58.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 142 | 68 | 48.0 | osh-native | mut+alloc |
218 | 145 | 74 | 49.9 | osh-native | mut+alloc+free |
181 | 131 | 51 | 8.8 | osh-native | mut+alloc+free+gc |
181 | 123 | 58 | 8.9 | osh-native | mut+alloc+free+gc+exit |
235 | 155 | 80 | 63.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 162 | 46 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
211 | 136 | 75 | 47.6 | osh-native-souffle | mut+alloc |
213 | 135 | 79 | 49.6 | osh-native-souffle | mut+alloc+free |
174 | 116 | 58 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
174 | 118 | 56 | 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.4 | dash | - |
20 | 12 | 8 | 4.5 | bash | - |
17 | 9 | 9 | 3.4 | zsh | - |
19 | 6 | 13 | 12.2 | bumpleak/osh | mut |
19 | 12 | 7 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
21 | 9 | 13 | 13.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 8 | 13 | 11.0 | osh-native | mut+alloc |
22 | 12 | 11 | 11.1 | osh-native | mut+alloc+free |
23 | 14 | 9 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 12 | 12 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 14 | 11 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 15 | 12 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 7 | 14 | 10.5 | osh-native-souffle | mut+alloc |
21 | 8 | 14 | 10.6 | osh-native-souffle | mut+alloc+free |
21 | 10 | 12 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 11 | 12 | 8.8 | osh-native-souffle | mut+alloc+free+gc+exit |