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 | 35 | 3 | 9 | 12.0 | 17.6 | 476,636 | 1,282 | 6 | 408,686 | 5 | 204,343 | osh-native |
parse.configure-coreutils | 145 | 22 | 57 | 46.1 | 51.5 | 1,653,224 | 4,764 | 12 | 1,069,052 | 6 | 798,607 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,827 | 180 | 2 | 75,028 | 1 | 37,514 | osh-native |
ex.compute-fib | 29 | 0 | 1 | 3.1 | 8.0 | 584,088 | 31,810 | 12 | 50,000 | 0 | 2,788 | osh-native |
ex.bashcomp-parse-help | 183 | 0 | 3 | 12.3 | 8.7 | 1,001,962 | 27,376 | 21 | 50,000 | 0 | 3,776 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.8 | 116,032 | 478 | 3 | 85,262 | 1 | 42,631 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.4 | dash | - |
23 | 23 | 0 | 3.1 | bash | - |
103 | 55 | 55 | 3.4 | zsh | - |
16 | 12 | 4 | 28.6 | bumpleak/osh | mut |
21 | 18 | 4 | 28.2 | _bin/cxx-opt+bumproot/osh | mut |
23 | 23 | 0 | 28.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 22 | 7 | 25.0 | osh-native | mut+alloc |
31 | 20 | 12 | 25.6 | osh-native | mut+alloc+free |
35 | 31 | 4 | 17.6 | osh-native | mut+alloc+free+gc |
37 | 29 | 7 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 31 | 12 | 31.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 43 | 4 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
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 | 18 | 4 | 1.6 | dash | - |
79 | 74 | 4 | 3.1 | bash | - |
378 | 205 | 196 | 3.5 | zsh | - |
50 | 42 | 8 | 84.2 | bumpleak/osh | mut |
60 | 56 | 4 | 84.3 | _bin/cxx-opt+bumproot/osh | mut |
70 | 41 | 29 | 84.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 71 | 27 | 73.4 | osh-native | mut+alloc |
106 | 74 | 31 | 75.3 | osh-native | mut+alloc+free |
145 | 132 | 12 | 51.5 | osh-native | mut+alloc+free+gc |
150 | 122 | 28 | 52.3 | osh-native | mut+alloc+free+gc+exit |
137 | 97 | 40 | 97.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
206 | 177 | 28 | 72.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
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 | 4 | 4 | 3.4 | zsh | - |
6 | 0 | 6 | 10.4 | bumpleak/osh | mut |
6 | 3 | 3 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
7 | 3 | 3 | 11.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 9.7 | osh-native | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native | mut+alloc+free |
9 | 4 | 4 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 4 | 4 | 8.4 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 11 | 0 | 9.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
A synthetic benchmark for POSIX shell arithmetic.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
11 | 7 | 4 | 1.4 | dash | - |
28 | 24 | 4 | 2.9 | bash | - |
23 | 12 | 12 | 3.3 | zsh | - |
19 | 11 | 8 | 32.7 | bumpleak/osh | mut |
26 | 26 | 0 | 31.7 | _bin/cxx-opt+bumproot/osh | mut |
29 | 24 | 4 | 31.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 26 | 11 | 26.6 | osh-native | mut+alloc |
39 | 23 | 15 | 27.0 | osh-native | mut+alloc+free |
29 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 16 | 12 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 38 | 15 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 33 | 4 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
A realistic bash-completion
workload.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
73 | 65 | 8 | 3.0 | bash | - |
171 | 103 | 68 | 57.5 | bumpleak/osh | mut |
179 | 111 | 68 | 56.5 | _bin/cxx-opt+bumproot/osh | mut |
196 | 128 | 68 | 57.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 127 | 84 | 48.7 | osh-native | mut+alloc |
218 | 129 | 89 | 50.7 | osh-native | mut+alloc+free |
183 | 127 | 56 | 8.7 | osh-native | mut+alloc+free+gc |
181 | 121 | 60 | 8.7 | osh-native | mut+alloc+free+gc+exit |
231 | 132 | 100 | 65.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 145 | 65 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
Running abuild -h
from Alpine Linux.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
10 | 9 | 2 | 3.3 | dash | - |
20 | 11 | 9 | 4.5 | bash | - |
17 | 9 | 9 | 3.4 | zsh | - |
19 | 8 | 11 | 11.8 | bumpleak/osh | mut |
20 | 12 | 7 | 13.6 | _bin/cxx-opt+bumproot/osh | mut |
20 | 10 | 10 | 11.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 17 | 5 | 10.6 | osh-native | mut+alloc |
22 | 12 | 10 | 10.9 | osh-native | mut+alloc+free |
22 | 21 | 1 | 8.8 | osh-native | mut+alloc+free+gc |
23 | 15 | 9 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 18 | 8 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 17 | 8 | 9.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |