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.7 | 476,711 | 1,282 | 6 | 408,792 | 5 | 204,396 | osh-native |
parse.configure-coreutils | 163 | 25 | 75 | 44.6 | 49.9 | 1,653,299 | 4,764 | 12 | 1,030,676 | 6 | 769,422 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,902 | 180 | 2 | 75,134 | 1 | 37,567 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.4 | 7.7 | 584,167 | 31,810 | 12 | 50,000 | 0 | 2,842 | osh-native |
ex.bashcomp-parse-help | 182 | 0 | 3 | 10.3 | 8.8 | 995,244 | 27,376 | 21 | 50,000 | 0 | 3,824 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.7 | 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 |
7 | 7 | 0 | 1.6 | dash | - |
24 | 23 | 0 | 3.0 | bash | - |
107 | 55 | 59 | 3.4 | zsh | - |
17 | 17 | 0 | 28.1 | bumpleak/osh | mut |
20 | 16 | 4 | 28.8 | _bin/cxx-opt+bumproot/osh | mut |
23 | 19 | 4 | 29.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 21 | 8 | 25.2 | osh-native | mut+alloc |
33 | 25 | 8 | 25.6 | osh-native | mut+alloc+free |
37 | 33 | 4 | 17.7 | osh-native | mut+alloc+free+gc |
37 | 29 | 8 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 35 | 9 | 32.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
51 | 35 | 15 | 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 | 78 | 0 | 3.3 | bash | - |
378 | 226 | 173 | 3.7 | zsh | - |
48 | 32 | 16 | 86.0 | bumpleak/osh | mut |
61 | 60 | 0 | 84.9 | _bin/cxx-opt+bumproot/osh | mut |
71 | 47 | 23 | 86.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 65 | 33 | 73.3 | osh-native | mut+alloc |
106 | 82 | 23 | 75.3 | osh-native | mut+alloc+free |
163 | 135 | 28 | 49.9 | osh-native | mut+alloc+free+gc |
173 | 153 | 20 | 50.4 | osh-native | mut+alloc+free+gc+exit |
141 | 96 | 44 | 98.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
237 | 206 | 32 | 68.6 | _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 | 2.9 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 0 | 6 | 11.1 | bumpleak/osh | mut |
7 | 4 | 4 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 10.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 10.0 | osh-native | mut+alloc+free |
9 | 4 | 4 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 12 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.5 | _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 | 29 | 0 | 3.0 | bash | - |
24 | 24 | 0 | 3.4 | zsh | - |
19 | 15 | 4 | 31.1 | bumpleak/osh | mut |
25 | 25 | 0 | 31.5 | _bin/cxx-opt+bumproot/osh | mut |
28 | 20 | 8 | 32.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 21 | 16 | 26.2 | osh-native | mut+alloc |
38 | 34 | 4 | 26.6 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.7 | osh-native | mut+alloc+free+gc |
29 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
55 | 31 | 23 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 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 | 69 | 4 | 3.0 | bash | - |
172 | 108 | 64 | 55.5 | bumpleak/osh | mut |
185 | 144 | 40 | 54.5 | _bin/cxx-opt+bumproot/osh | mut |
193 | 136 | 56 | 54.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 139 | 71 | 47.0 | osh-native | mut+alloc |
215 | 155 | 60 | 48.6 | osh-native | mut+alloc+free |
182 | 126 | 57 | 8.8 | osh-native | mut+alloc+free+gc |
183 | 135 | 48 | 8.7 | osh-native | mut+alloc+free+gc+exit |
234 | 147 | 87 | 62.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
212 | 168 | 44 | 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 | 9 | 1 | 3.4 | dash | - |
20 | 12 | 8 | 4.3 | bash | - |
18 | 7 | 12 | 3.5 | zsh | - |
18 | 17 | 1 | 11.5 | bumpleak/osh | mut |
21 | 8 | 14 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
21 | 15 | 6 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 19 | 3 | 10.7 | osh-native | mut+alloc |
23 | 20 | 3 | 11.0 | osh-native | mut+alloc+free |
22 | 22 | 1 | 8.7 | osh-native | mut+alloc+free+gc |
23 | 13 | 10 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 6 | 19 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 17 | 8 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |