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 | 3 | 9 | 12.0 | 17.8 | 476,636 | 1,282 | 6 | 408,686 | 5 | 204,343 | osh-native |
parse.configure-coreutils | 149 | 24 | 61 | 46.1 | 51.3 | 1,653,224 | 4,764 | 12 | 1,069,052 | 6 | 798,607 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,827 | 180 | 2 | 75,028 | 1 | 37,514 | osh-native |
ex.compute-fib | 29 | 0 | 2 | 3.1 | 7.9 | 584,088 | 31,810 | 12 | 50,000 | 0 | 2,788 | osh-native |
ex.bashcomp-parse-help | 182 | 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.9 | 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.6 | dash | - |
23 | 23 | 0 | 3.1 | bash | - |
105 | 56 | 55 | 3.4 | zsh | - |
16 | 12 | 4 | 28.8 | bumpleak/osh | mut |
20 | 8 | 12 | 29.9 | _bin/cxx-opt+bumproot/osh | mut |
23 | 19 | 4 | 29.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 26 | 4 | 25.0 | osh-native | mut+alloc |
32 | 28 | 4 | 25.4 | osh-native | mut+alloc+free |
36 | 31 | 4 | 17.8 | osh-native | mut+alloc+free+gc |
37 | 22 | 15 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 39 | 4 | 32.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 36 | 12 | 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 |
22 | 21 | 0 | 1.6 | dash | - |
77 | 77 | 0 | 3.1 | bash | - |
376 | 216 | 183 | 3.5 | zsh | - |
50 | 41 | 8 | 85.6 | bumpleak/osh | mut |
61 | 53 | 8 | 86.0 | _bin/cxx-opt+bumproot/osh | mut |
70 | 54 | 15 | 85.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 70 | 29 | 73.4 | osh-native | mut+alloc |
106 | 71 | 35 | 75.3 | osh-native | mut+alloc+free |
149 | 129 | 20 | 51.3 | osh-native | mut+alloc+free+gc |
154 | 138 | 16 | 52.1 | osh-native | mut+alloc+free+gc+exit |
138 | 95 | 43 | 97.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
213 | 184 | 28 | 73.4 | _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.4 | dash | - |
6 | 3 | 3 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 6 | 0 | 11.2 | bumpleak/osh | mut |
7 | 7 | 0 | 11.3 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.0 | osh-native | mut+alloc |
9 | 4 | 4 | 10.0 | osh-native | mut+alloc+free |
9 | 4 | 4 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc+exit |
11 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 0 | 9.4 | _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 |
10 | 7 | 3 | 1.6 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
23 | 23 | 0 | 3.3 | zsh | - |
19 | 8 | 11 | 31.2 | bumpleak/osh | mut |
26 | 21 | 4 | 33.3 | _bin/cxx-opt+bumproot/osh | mut |
28 | 28 | 0 | 33.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 20 | 16 | 26.6 | osh-native | mut+alloc |
39 | 31 | 8 | 27.0 | osh-native | mut+alloc+free |
29 | 25 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.7 | osh-native | mut+alloc+free+gc+exit |
54 | 42 | 12 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 37 | 0 | 9.3 | _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 |
74 | 66 | 8 | 3.1 | bash | - |
171 | 122 | 49 | 56.9 | bumpleak/osh | mut |
180 | 92 | 88 | 57.7 | _bin/cxx-opt+bumproot/osh | mut |
195 | 135 | 60 | 58.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 137 | 73 | 48.7 | osh-native | mut+alloc |
220 | 152 | 68 | 50.6 | osh-native | mut+alloc+free |
182 | 95 | 87 | 8.7 | osh-native | mut+alloc+free+gc |
184 | 148 | 36 | 8.5 | osh-native | mut+alloc+free+gc+exit |
234 | 131 | 103 | 64.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 131 | 79 | 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 | 8 | 1 | 3.5 | dash | - |
20 | 12 | 8 | 4.5 | bash | - |
18 | 16 | 2 | 3.5 | zsh | - |
19 | 17 | 3 | 11.9 | bumpleak/osh | mut |
19 | 11 | 9 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
21 | 12 | 9 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 14 | 8 | 10.9 | osh-native | mut+alloc |
22 | 19 | 4 | 10.9 | osh-native | mut+alloc+free |
22 | 16 | 7 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 15 | 8 | 8.8 | osh-native | mut+alloc+free+gc+exit |
25 | 12 | 13 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 15 | 11 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |