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 | 11 | 12.1 | 18.0 | 476,736 | 1,282 | 6 | 409,282 | 5 | 204,641 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.6 | 476,736 | 1,282 | 6 | 408,782 | 5 | 204,391 | osh-native-souffle |
parse.configure-coreutils | 160 | 22 | 76 | 41.1 | 45.9 | 1,653,324 | 4,764 | 12 | 1,591,964 | 7 | 795,982 | osh-native |
parse.configure-coreutils | 140 | 23 | 64 | 44.6 | 49.7 | 1,653,323 | 4,764 | 12 | 1,030,666 | 6 | 769,417 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,927 | 180 | 2 | 75,254 | 1 | 37,627 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.6 | 8.1 | 101,927 | 180 | 2 | 75,124 | 1 | 37,562 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.4 | 8.0 | 584,192 | 22,608 | 12 | 50,000 | 0 | 2,904 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.4 | 7.5 | 584,192 | 22,608 | 12 | 50,000 | 0 | 2,842 | osh-native-souffle |
ex.bashcomp-parse-help | 183 | 0 | 4 | 10.3 | 8.8 | 995,273 | 12,911 | 21 | 50,000 | 0 | 3,892 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 4 | 10.3 | 8.3 | 995,272 | 12,911 | 21 | 50,000 | 0 | 3,832 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.0 | 116,342 | 270 | 3 | 85,490 | 1 | 42,745 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.5 | 116,342 | 270 | 3 | 85,366 | 1 | 42,683 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 3 | 3 | 1.4 | dash | - |
24 | 23 | 0 | 3.0 | bash | - |
105 | 60 | 52 | 3.4 | zsh | - |
16 | 16 | 0 | 27.9 | bumpleak/osh | mut |
20 | 15 | 4 | 29.7 | _bin/cxx-opt+bumproot/osh | mut |
23 | 15 | 8 | 29.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
31 | 27 | 4 | 25.3 | osh-native | mut+alloc |
31 | 19 | 12 | 25.6 | osh-native | mut+alloc+free |
37 | 33 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
38 | 19 | 19 | 18.1 | osh-native | mut+alloc+free+gc+exit |
44 | 20 | 24 | 33.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 40 | 8 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 15 | 11 | 24.8 | osh-native-souffle | mut+alloc |
29 | 18 | 11 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 22 | 11 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
34 | 26 | 8 | 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 | - |
77 | 77 | 0 | 3.1 | bash | - |
379 | 225 | 177 | 3.7 | zsh | - |
48 | 36 | 12 | 84.5 | bumpleak/osh | mut |
60 | 52 | 8 | 85.3 | _bin/cxx-opt+bumproot/osh | mut |
70 | 61 | 8 | 86.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 62 | 35 | 73.5 | osh-native | mut+alloc |
105 | 62 | 43 | 75.4 | osh-native | mut+alloc+free |
160 | 144 | 16 | 45.9 | osh-native | mut+alloc+free+gc |
167 | 142 | 24 | 46.1 | osh-native | mut+alloc+free+gc+exit |
138 | 83 | 55 | 99.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
229 | 201 | 28 | 61.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 56 | 32 | 73.2 | osh-native-souffle | mut+alloc |
97 | 64 | 32 | 75.0 | osh-native-souffle | mut+alloc+free |
140 | 120 | 20 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
149 | 129 | 20 | 50.4 | 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.3 | dash | - |
6 | 3 | 3 | 2.9 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 0 | 6 | 11.8 | bumpleak/osh | mut |
6 | 0 | 6 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.2 | osh-native | mut+alloc |
9 | 6 | 3 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.8 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 8 | 0 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
8 | 4 | 4 | 8.4 | 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 | 0 | 1.6 | dash | - |
29 | 28 | 0 | 2.9 | bash | - |
24 | 20 | 4 | 3.4 | zsh | - |
19 | 8 | 11 | 32.0 | bumpleak/osh | mut |
26 | 22 | 4 | 32.8 | _bin/cxx-opt+bumproot/osh | mut |
29 | 20 | 8 | 32.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 25 | 12 | 26.2 | osh-native | mut+alloc |
38 | 23 | 15 | 26.7 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 27 | 27 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 22 | 7 | 25.8 | osh-native-souffle | mut+alloc |
32 | 21 | 11 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 21 | 0 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 21 | 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 | 73 | 0 | 3.1 | bash | - |
167 | 107 | 60 | 55.0 | bumpleak/osh | mut |
183 | 127 | 56 | 54.9 | _bin/cxx-opt+bumproot/osh | mut |
194 | 129 | 65 | 56.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 128 | 84 | 47.0 | osh-native | mut+alloc |
217 | 138 | 79 | 48.8 | osh-native | mut+alloc+free |
183 | 126 | 57 | 8.8 | osh-native | mut+alloc+free+gc |
181 | 117 | 64 | 8.8 | osh-native | mut+alloc+free+gc+exit |
232 | 148 | 84 | 62.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 179 | 32 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
205 | 146 | 59 | 46.8 | osh-native-souffle | mut+alloc |
213 | 133 | 80 | 48.3 | osh-native-souffle | mut+alloc+free |
175 | 95 | 79 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
175 | 123 | 52 | 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 | 6 | 4 | 3.4 | dash | - |
20 | 18 | 2 | 4.3 | bash | - |
18 | 13 | 5 | 3.4 | zsh | - |
18 | 6 | 13 | 11.9 | bumpleak/osh | mut |
20 | 14 | 7 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
21 | 15 | 6 | 13.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 15 | 6 | 11.0 | osh-native | mut+alloc |
22 | 17 | 6 | 11.0 | osh-native | mut+alloc+free |
23 | 16 | 8 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 16 | 7 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 21 | 4 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 16 | 9 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 13 | 8 | 10.6 | osh-native-souffle | mut+alloc |
21 | 9 | 13 | 10.7 | osh-native-souffle | mut+alloc+free |
22 | 17 | 5 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 8 | 14 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |