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.0 | 476,751 | 1,282 | 6 | 406,604 | 5 | 203,302 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.6 | 476,751 | 1,282 | 6 | 406,200 | 5 | 203,100 | osh-native-souffle |
parse.configure-coreutils | 149 | 24 | 63 | 44.5 | 49.8 | 1,653,339 | 4,764 | 12 | 1,025,526 | 6 | 764,306 | osh-native |
parse.configure-coreutils | 138 | 24 | 61 | 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.5 | 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 | 28 | 0 | 2 | 2.1 | 8.0 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,919 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.1 | 7.6 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,858 | osh-native-souffle |
ex.bashcomp-parse-help | 185 | 0 | 3 | 10.8 | 8.9 | 1,006,005 | 15,258 | 21 | 50,000 | 0 | 3,919 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 3 | 10.8 | 8.4 | 1,006,004 | 15,258 | 21 | 50,000 | 0 | 3,842 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,318 | 277 | 3 | 85,248 | 1 | 42,624 | osh-native |
ex.abuild-print-help | 20 | 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 | 3 | 3 | 1.4 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
103 | 69 | 39 | 3.4 | zsh | - |
17 | 17 | 0 | 28.5 | bumpleak/osh | mut |
20 | 10 | 10 | 28.9 | _bin/cxx-opt+bumproot/osh | mut |
23 | 15 | 7 | 30.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 17 | 12 | 25.2 | osh-native | mut+alloc |
31 | 31 | 0 | 25.8 | osh-native | mut+alloc+free |
36 | 35 | 0 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 28 | 8 | 18.1 | osh-native | mut+alloc+free+gc+exit |
44 | 32 | 12 | 32.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 36 | 12 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 15 | 11 | 25.0 | osh-native-souffle | mut+alloc |
28 | 16 | 12 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 28 | 4 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 25 | 7 | 17.8 | 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 | 79 | 0 | 3.1 | bash | - |
372 | 193 | 201 | 3.5 | zsh | - |
50 | 33 | 17 | 84.4 | bumpleak/osh | mut |
61 | 56 | 4 | 85.4 | _bin/cxx-opt+bumproot/osh | mut |
69 | 53 | 16 | 85.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 62 | 35 | 73.4 | osh-native | mut+alloc |
105 | 78 | 27 | 75.4 | osh-native | mut+alloc+free |
149 | 129 | 20 | 49.8 | osh-native | mut+alloc+free+gc |
151 | 131 | 20 | 50.5 | osh-native | mut+alloc+free+gc+exit |
139 | 98 | 41 | 98.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
207 | 175 | 32 | 66.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 47 | 39 | 73.1 | osh-native-souffle | mut+alloc |
95 | 71 | 24 | 75.0 | osh-native-souffle | mut+alloc+free |
138 | 117 | 20 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
141 | 128 | 12 | 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 | 2.8 | bash | - |
8 | 0 | 7 | 3.3 | zsh | - |
6 | 6 | 0 | 11.3 | bumpleak/osh | mut |
7 | 7 | 0 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.0 | osh-native | mut+alloc |
9 | 4 | 4 | 10.2 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 4 | 4 | 8.5 | osh-native | mut+alloc+free+gc+exit |
11 | 11 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 4 | 8 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
7 | 0 | 7 | 9.6 | osh-native-souffle | mut+alloc |
8 | 0 | 8 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 9 | 0 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
9 | 4 | 4 | 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.4 | dash | - |
29 | 28 | 0 | 2.9 | bash | - |
24 | 16 | 8 | 3.1 | zsh | - |
19 | 7 | 11 | 32.0 | bumpleak/osh | mut |
26 | 18 | 7 | 32.6 | _bin/cxx-opt+bumproot/osh | mut |
28 | 20 | 8 | 31.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 26.3 | osh-native | mut+alloc |
37 | 37 | 0 | 26.7 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 27 | 27 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 36 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
29 | 17 | 13 | 26.0 | osh-native-souffle | mut+alloc |
31 | 19 | 12 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 22 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 18 | 4 | 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 |
72 | 60 | 12 | 3.1 | bash | - |
167 | 98 | 69 | 56.3 | bumpleak/osh | mut |
181 | 128 | 52 | 56.8 | _bin/cxx-opt+bumproot/osh | mut |
197 | 121 | 76 | 57.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
214 | 154 | 59 | 48.0 | osh-native | mut+alloc |
221 | 136 | 84 | 50.0 | osh-native | mut+alloc+free |
185 | 122 | 63 | 8.9 | osh-native | mut+alloc+free+gc |
184 | 132 | 52 | 8.8 | osh-native | mut+alloc+free+gc+exit |
239 | 175 | 64 | 64.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
212 | 168 | 44 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
209 | 110 | 98 | 47.6 | osh-native-souffle | mut+alloc |
216 | 124 | 92 | 49.5 | osh-native-souffle | mut+alloc+free |
175 | 103 | 71 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
176 | 136 | 40 | 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 | 9 | 1 | 3.4 | dash | - |
20 | 14 | 6 | 4.5 | bash | - |
17 | 16 | 2 | 3.5 | zsh | - |
19 | 10 | 9 | 12.8 | bumpleak/osh | mut |
19 | 11 | 9 | 12.2 | _bin/cxx-opt+bumproot/osh | mut |
20 | 17 | 4 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 15 | 6 | 11.0 | osh-native | mut+alloc |
22 | 13 | 9 | 11.0 | osh-native | mut+alloc+free |
22 | 19 | 4 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 15 | 8 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 19 | 6 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 22 | 3 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 14 | 6 | 10.6 | osh-native-souffle | mut+alloc |
21 | 17 | 5 | 10.7 | osh-native-souffle | mut+alloc+free |
20 | 7 | 14 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
21 | 15 | 7 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |