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,711 | 1,282 | 6 | 408,792 | 5 | 204,396 | osh-native |
parse.configure-coreutils | 160 | 26 | 72 | 44.6 | 50.0 | 1,653,299 | 4,764 | 12 | 1,030,676 | 6 | 769,422 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,902 | 180 | 2 | 75,134 | 1 | 37,567 | osh-native |
ex.compute-fib | 29 | 0 | 2 | 2.4 | 7.9 | 584,167 | 31,810 | 12 | 50,000 | 0 | 2,842 | osh-native |
ex.bashcomp-parse-help | 181 | 0 | 4 | 10.3 | 8.4 | 995,244 | 27,376 | 21 | 50,000 | 0 | 3,824 | osh-native |
ex.abuild-print-help | 24 | 1 | 2 | 2.8 | 9.0 | 116,311 | 478 | 3 | 85,370 | 1 | 42,685 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 19 | 4 | 3.0 | bash | - |
105 | 66 | 46 | 3.4 | zsh | - |
20 | 12 | 8 | 27.9 | bumpleak/osh | mut |
20 | 20 | 0 | 28.8 | _bin/cxx-opt+bumproot/osh | mut |
23 | 19 | 4 | 29.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 30 | 0 | 25.2 | osh-native | mut+alloc |
33 | 24 | 8 | 25.4 | osh-native | mut+alloc+free |
37 | 37 | 0 | 17.8 | osh-native | mut+alloc+free+gc |
37 | 20 | 16 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 23 | 20 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 29 | 20 | 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 | - |
78 | 74 | 4 | 3.1 | bash | - |
378 | 190 | 210 | 3.7 | zsh | - |
50 | 46 | 4 | 85.1 | bumpleak/osh | mut |
60 | 52 | 8 | 84.9 | _bin/cxx-opt+bumproot/osh | mut |
70 | 51 | 19 | 86.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 51 | 47 | 73.5 | osh-native | mut+alloc |
108 | 58 | 50 | 75.4 | osh-native | mut+alloc+free |
160 | 143 | 16 | 50.0 | osh-native | mut+alloc+free+gc |
171 | 151 | 20 | 50.6 | osh-native | mut+alloc+free+gc+exit |
139 | 98 | 41 | 97.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
225 | 172 | 52 | 67.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 | 0 | 2 | 1.4 | dash | - |
6 | 6 | 0 | 2.9 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 6 | 0 | 11.2 | bumpleak/osh | mut |
7 | 7 | 0 | 11.7 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 10.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 10.0 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 8 | 4 | 9.6 | _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 | 10 | 0 | 1.4 | dash | - |
29 | 25 | 4 | 2.8 | bash | - |
24 | 16 | 8 | 3.3 | zsh | - |
19 | 19 | 0 | 30.8 | bumpleak/osh | mut |
25 | 25 | 0 | 31.1 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 33.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 29 | 8 | 26.2 | osh-native | mut+alloc |
39 | 35 | 4 | 26.6 | osh-native | mut+alloc+free |
29 | 22 | 7 | 7.9 | osh-native | mut+alloc+free+gc |
30 | 22 | 7 | 7.9 | osh-native | mut+alloc+free+gc+exit |
55 | 39 | 16 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 38 | 0 | 9.5 | _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 | - |
168 | 116 | 52 | 53.8 | bumpleak/osh | mut |
181 | 96 | 84 | 54.2 | _bin/cxx-opt+bumproot/osh | mut |
194 | 113 | 81 | 56.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 116 | 96 | 46.9 | osh-native | mut+alloc |
217 | 158 | 59 | 48.7 | osh-native | mut+alloc+free |
181 | 124 | 56 | 8.4 | osh-native | mut+alloc+free+gc |
182 | 129 | 53 | 8.7 | osh-native | mut+alloc+free+gc+exit |
231 | 139 | 92 | 63.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 157 | 52 | 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 |
11 | 5 | 6 | 3.4 | dash | - |
20 | 11 | 10 | 4.5 | bash | - |
18 | 5 | 13 | 3.4 | zsh | - |
19 | 15 | 4 | 13.1 | bumpleak/osh | mut |
20 | 17 | 3 | 13.4 | _bin/cxx-opt+bumproot/osh | mut |
21 | 14 | 7 | 12.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 14 | 8 | 11.0 | osh-native | mut+alloc |
23 | 14 | 10 | 11.0 | osh-native | mut+alloc+free |
24 | 20 | 4 | 9.0 | osh-native | mut+alloc+free+gc |
24 | 16 | 8 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 10 | 15 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 15 | 12 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |