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.0 | 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 | 159 | 25 | 73 | 44.5 | 49.9 | 1,653,339 | 4,764 | 12 | 1,025,526 | 6 | 764,306 | osh-native |
parse.configure-coreutils | 159 | 27 | 81 | 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.7 | 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 | 1 | 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.7 | 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 | 173 | 0 | 4 | 10.8 | 8.1 | 1,006,004 | 15,258 | 21 | 50,000 | 0 | 3,842 | osh-native-souffle |
ex.abuild-print-help | 22 | 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.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 | 3.1 | bash | - |
102 | 63 | 46 | 3.4 | zsh | - |
16 | 11 | 5 | 29.2 | bumpleak/osh | mut |
20 | 14 | 6 | 28.7 | _bin/cxx-opt+bumproot/osh | mut |
23 | 18 | 5 | 30.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 17 | 13 | 25.2 | osh-native | mut+alloc |
32 | 17 | 15 | 25.7 | osh-native | mut+alloc+free |
37 | 28 | 9 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 28 | 10 | 18.1 | osh-native | mut+alloc+free+gc+exit |
42 | 29 | 13 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
52 | 40 | 12 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 16 | 10 | 24.9 | osh-native-souffle | mut+alloc |
29 | 22 | 6 | 25.2 | osh-native-souffle | mut+alloc+free |
35 | 29 | 6 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
35 | 30 | 5 | 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 | - |
84 | 83 | 1 | 3.0 | bash | - |
365 | 203 | 184 | 3.5 | zsh | - |
48 | 39 | 9 | 85.7 | bumpleak/osh | mut |
60 | 53 | 7 | 84.7 | _bin/cxx-opt+bumproot/osh | mut |
71 | 57 | 14 | 86.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 61 | 35 | 73.4 | osh-native | mut+alloc |
104 | 70 | 34 | 75.2 | osh-native | mut+alloc+free |
159 | 136 | 23 | 49.9 | osh-native | mut+alloc+free+gc |
165 | 141 | 24 | 50.6 | osh-native | mut+alloc+free+gc+exit |
138 | 93 | 46 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
247 | 220 | 27 | 66.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
86 | 47 | 40 | 73.0 | osh-native-souffle | mut+alloc |
96 | 65 | 31 | 74.8 | osh-native-souffle | mut+alloc+free |
159 | 135 | 24 | 49.3 | osh-native-souffle | mut+alloc+free+gc |
160 | 138 | 22 | 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.3 | dash | - |
5 | 5 | 0 | 3.0 | bash | - |
7 | 4 | 4 | 3.4 | zsh | - |
6 | 4 | 2 | 10.6 | bumpleak/osh | mut |
7 | 5 | 2 | 12.9 | _bin/cxx-opt+bumproot/osh | mut |
8 | 5 | 3 | 12.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 3 | 5 | 10.1 | osh-native | mut+alloc |
9 | 6 | 3 | 10.0 | osh-native | mut+alloc+free |
9 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.8 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 10 | 2 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.6 | osh-native-souffle | mut+alloc |
8 | 6 | 2 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 5 | 4 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
9 | 8 | 1 | 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 | 9 | 1 | 1.4 | dash | - |
28 | 28 | 0 | 3.0 | bash | - |
23 | 16 | 7 | 3.3 | zsh | - |
18 | 15 | 3 | 31.1 | bumpleak/osh | mut |
26 | 22 | 4 | 32.7 | _bin/cxx-opt+bumproot/osh | mut |
28 | 26 | 2 | 32.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 28 | 9 | 26.3 | osh-native | mut+alloc |
39 | 32 | 7 | 26.6 | osh-native | mut+alloc+free |
29 | 29 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 25 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 39 | 15 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 35 | 2 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 17 | 14 | 26.0 | osh-native-souffle | mut+alloc |
31 | 17 | 14 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.7 | 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 | 69 | 4 | 3.1 | bash | - |
165 | 108 | 57 | 55.3 | bumpleak/osh | mut |
180 | 124 | 56 | 57.3 | _bin/cxx-opt+bumproot/osh | mut |
193 | 121 | 72 | 56.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 138 | 74 | 48.0 | osh-native | mut+alloc |
218 | 142 | 76 | 50.0 | osh-native | mut+alloc+free |
182 | 140 | 42 | 8.8 | osh-native | mut+alloc+free+gc |
185 | 143 | 42 | 8.8 | osh-native | mut+alloc+free+gc+exit |
233 | 149 | 84 | 64.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 158 | 53 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
203 | 122 | 81 | 47.5 | osh-native-souffle | mut+alloc |
209 | 136 | 73 | 49.5 | osh-native-souffle | mut+alloc+free |
173 | 129 | 44 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
175 | 124 | 51 | 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 | 4 | 6 | 3.5 | dash | - |
19 | 9 | 10 | 4.3 | bash | - |
17 | 4 | 14 | 3.5 | zsh | - |
20 | 14 | 7 | 12.9 | bumpleak/osh | mut |
21 | 10 | 11 | 13.1 | _bin/cxx-opt+bumproot/osh | mut |
20 | 9 | 12 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 11 | 11 | 11.0 | osh-native | mut+alloc |
22 | 10 | 13 | 11.1 | osh-native | mut+alloc+free |
22 | 14 | 9 | 9.2 | osh-native | mut+alloc+free+gc |
23 | 14 | 10 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 12 | 13 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 13 | 12 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 10 | 11 | 10.6 | osh-native-souffle | mut+alloc |
21 | 6 | 16 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 12 | 10 | 8.8 | osh-native-souffle | mut+alloc+free+gc |
22 | 9 | 13 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |