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 | 17.8 | 476,636 | 1,282 | 6 | 408,686 | 5 | 204,343 | osh-native |
parse.configure-coreutils | 162 | 26 | 72 | 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.4 | 101,827 | 180 | 2 | 75,028 | 1 | 37,514 | osh-native |
ex.compute-fib | 29 | 0 | 2 | 3.1 | 7.7 | 584,088 | 31,810 | 12 | 50,000 | 0 | 2,788 | osh-native |
ex.bashcomp-parse-help | 186 | 0 | 4 | 12.3 | 8.7 | 1,001,962 | 27,376 | 21 | 50,000 | 0 | 3,776 | osh-native |
ex.abuild-print-help | 23 | 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 |
7 | 3 | 3 | 1.6 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
104 | 51 | 59 | 3.4 | zsh | - |
16 | 12 | 4 | 28.5 | bumpleak/osh | mut |
20 | 16 | 4 | 29.2 | _bin/cxx-opt+bumproot/osh | mut |
23 | 22 | 0 | 29.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 21 | 9 | 24.9 | osh-native | mut+alloc |
32 | 20 | 12 | 25.3 | osh-native | mut+alloc+free |
37 | 33 | 4 | 17.8 | osh-native | mut+alloc+free+gc |
38 | 38 | 0 | 17.8 | osh-native | mut+alloc+free+gc+exit |
45 | 41 | 4 | 32.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
53 | 42 | 11 | 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 | 21 | 0 | 1.6 | dash | - |
81 | 77 | 4 | 3.1 | bash | - |
380 | 213 | 188 | 3.4 | zsh | - |
49 | 45 | 4 | 84.5 | bumpleak/osh | mut |
61 | 53 | 8 | 84.8 | _bin/cxx-opt+bumproot/osh | mut |
71 | 55 | 16 | 86.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 66 | 31 | 73.3 | osh-native | mut+alloc |
113 | 80 | 32 | 75.3 | osh-native | mut+alloc+free |
162 | 150 | 12 | 51.3 | osh-native | mut+alloc+free+gc |
163 | 139 | 24 | 52.2 | osh-native | mut+alloc+free+gc+exit |
138 | 89 | 49 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
218 | 174 | 43 | 73.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.4 | dash | - |
6 | 0 | 6 | 3.0 | bash | - |
8 | 7 | 0 | 3.1 | zsh | - |
6 | 3 | 3 | 10.2 | bumpleak/osh | mut |
6 | 6 | 0 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 11.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 9 | 0 | 10.0 | osh-native | mut+alloc |
9 | 3 | 6 | 10.0 | osh-native | mut+alloc+free |
9 | 3 | 6 | 8.4 | osh-native | mut+alloc+free+gc |
10 | 3 | 6 | 8.3 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 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 | 11 | 0 | 1.6 | dash | - |
29 | 25 | 4 | 3.0 | bash | - |
24 | 20 | 4 | 3.4 | zsh | - |
20 | 20 | 0 | 31.4 | bumpleak/osh | mut |
27 | 19 | 8 | 33.0 | _bin/cxx-opt+bumproot/osh | mut |
30 | 25 | 4 | 32.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
38 | 26 | 11 | 26.6 | osh-native | mut+alloc |
40 | 31 | 9 | 27.1 | osh-native | mut+alloc+free |
29 | 25 | 4 | 7.7 | osh-native | mut+alloc+free+gc |
29 | 20 | 8 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 39 | 15 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 34 | 4 | 9.2 | _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 | 73 | 0 | 3.1 | bash | - |
171 | 87 | 83 | 56.7 | bumpleak/osh | mut |
181 | 116 | 64 | 57.8 | _bin/cxx-opt+bumproot/osh | mut |
196 | 144 | 52 | 56.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
215 | 121 | 93 | 48.8 | osh-native | mut+alloc |
225 | 152 | 72 | 50.7 | osh-native | mut+alloc+free |
186 | 138 | 47 | 8.7 | osh-native | mut+alloc+free+gc |
185 | 128 | 56 | 8.7 | osh-native | mut+alloc+free+gc+exit |
234 | 145 | 89 | 64.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
213 | 146 | 67 | 10.1 | _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 | 6 | 4 | 3.4 | dash | - |
20 | 13 | 7 | 4.5 | bash | - |
18 | 10 | 9 | 3.5 | zsh | - |
19 | 11 | 8 | 11.5 | bumpleak/osh | mut |
22 | 20 | 2 | 13.0 | _bin/cxx-opt+bumproot/osh | mut |
21 | 8 | 13 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 13 | 9 | 10.9 | osh-native | mut+alloc |
23 | 16 | 7 | 11.1 | osh-native | mut+alloc+free |
23 | 12 | 12 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 19 | 5 | 8.8 | osh-native | mut+alloc+free+gc+exit |
26 | 20 | 7 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 15 | 12 | 9.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |