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 | 4 | 10 | 12.0 | 17.7 | 476,689 | 1,282 | 6 | 408,756 | 5 | 204,378 | osh-native |
parse.configure-coreutils | 148 | 23 | 62 | 46.1 | 51.4 | 1,653,277 | 4,764 | 12 | 1,069,122 | 6 | 798,642 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,880 | 180 | 2 | 75,098 | 1 | 37,549 | osh-native |
ex.compute-fib | 27 | 0 | 2 | 2.6 | 7.9 | 584,145 | 31,810 | 12 | 50,000 | 0 | 2,826 | osh-native |
ex.bashcomp-parse-help | 183 | 0 | 4 | 10.6 | 8.7 | 995,222 | 27,376 | 21 | 50,000 | 0 | 3,821 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.8 | 116,289 | 478 | 3 | 85,334 | 1 | 42,667 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
24 | 23 | 0 | 3.1 | bash | - |
104 | 64 | 46 | 3.4 | zsh | - |
16 | 12 | 4 | 28.5 | bumpleak/osh | mut |
19 | 12 | 8 | 29.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 17 | 4 | 29.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 21 | 8 | 25.2 | osh-native | mut+alloc |
31 | 13 | 18 | 25.6 | osh-native | mut+alloc+free |
36 | 24 | 12 | 17.7 | osh-native | mut+alloc+free+gc |
36 | 28 | 8 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 25 | 17 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 32 | 16 | 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 | 18 | 4 | 1.4 | dash | - |
81 | 81 | 0 | 3.1 | bash | - |
371 | 203 | 190 | 3.5 | zsh | - |
48 | 40 | 8 | 84.4 | bumpleak/osh | mut |
61 | 60 | 0 | 85.2 | _bin/cxx-opt+bumproot/osh | mut |
69 | 61 | 8 | 86.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 56 | 40 | 73.6 | osh-native | mut+alloc |
105 | 84 | 20 | 75.1 | osh-native | mut+alloc+free |
148 | 116 | 32 | 51.4 | osh-native | mut+alloc+free+gc |
155 | 123 | 32 | 52.4 | osh-native | mut+alloc+free+gc+exit |
137 | 101 | 36 | 99.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
203 | 162 | 41 | 72.7 | _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 | 0 | 7 | 3.3 | zsh | - |
6 | 3 | 3 | 10.9 | bumpleak/osh | mut |
6 | 6 | 0 | 12.6 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.0 | osh-native | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native | mut+alloc+free |
9 | 4 | 4 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 4 | 4 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 0 | 12 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 11 | 0 | 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 |
11 | 7 | 4 | 1.3 | dash | - |
28 | 24 | 4 | 2.9 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
19 | 19 | 0 | 32.7 | bumpleak/osh | mut |
25 | 25 | 0 | 32.3 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 27 | 8 | 26.3 | osh-native | mut+alloc |
38 | 19 | 19 | 26.6 | osh-native | mut+alloc+free |
27 | 27 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 23 | 31 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 26 | 11 | 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.1 | bash | - |
168 | 100 | 68 | 53.7 | bumpleak/osh | mut |
180 | 132 | 48 | 55.8 | _bin/cxx-opt+bumproot/osh | mut |
192 | 132 | 60 | 55.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 123 | 87 | 46.9 | osh-native | mut+alloc |
217 | 144 | 72 | 48.9 | osh-native | mut+alloc+free |
183 | 151 | 32 | 8.7 | osh-native | mut+alloc+free+gc |
181 | 133 | 48 | 8.8 | osh-native | mut+alloc+free+gc+exit |
230 | 157 | 73 | 63.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 148 | 60 | 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 | 10 | 0 | 3.5 | dash | - |
19 | 19 | 1 | 4.3 | bash | - |
18 | 10 | 9 | 3.5 | zsh | - |
18 | 18 | 0 | 11.4 | bumpleak/osh | mut |
20 | 10 | 10 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
20 | 10 | 11 | 12.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 16 | 6 | 10.9 | osh-native | mut+alloc |
22 | 13 | 9 | 11.1 | osh-native | mut+alloc+free |
22 | 14 | 9 | 8.8 | osh-native | mut+alloc+free+gc |
23 | 14 | 10 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 18 | 7 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 19 | 7 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |