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 | 18.0 | 476,688 | 1,282 | 6 | 408,754 | 5 | 204,377 | osh-native |
parse.configure-coreutils | 154 | 27 | 66 | 46.1 | 51.6 | 1,653,276 | 4,764 | 12 | 1,069,120 | 6 | 798,641 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,879 | 180 | 2 | 75,096 | 1 | 37,548 | osh-native |
ex.compute-fib | 29 | 0 | 2 | 2.6 | 7.7 | 584,144 | 31,810 | 12 | 50,000 | 0 | 2,825 | osh-native |
ex.bashcomp-parse-help | 180 | 0 | 3 | 10.6 | 8.7 | 995,221 | 27,376 | 21 | 50,000 | 0 | 3,820 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,288 | 478 | 3 | 85,332 | 1 | 42,666 | 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 | - |
105 | 61 | 51 | 3.4 | zsh | - |
17 | 12 | 4 | 28.1 | bumpleak/osh | mut |
19 | 11 | 8 | 29.1 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 28.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 18 | 11 | 25.2 | osh-native | mut+alloc |
32 | 31 | 0 | 25.7 | osh-native | mut+alloc+free |
36 | 28 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 36 | 0 | 17.8 | osh-native | mut+alloc+free+gc+exit |
43 | 23 | 20 | 31.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 37 | 11 | 22.0 | _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 | 69 | 8 | 3.3 | bash | - |
378 | 204 | 194 | 3.5 | zsh | - |
49 | 45 | 4 | 85.8 | bumpleak/osh | mut |
59 | 47 | 12 | 85.6 | _bin/cxx-opt+bumproot/osh | mut |
70 | 58 | 12 | 86.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 47 | 51 | 73.3 | osh-native | mut+alloc |
106 | 78 | 27 | 75.4 | osh-native | mut+alloc+free |
154 | 134 | 20 | 51.6 | osh-native | mut+alloc+free+gc |
157 | 120 | 36 | 52.2 | osh-native | mut+alloc+free+gc+exit |
139 | 99 | 40 | 97.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
221 | 189 | 32 | 70.8 | _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 | 6 | 0 | 10.3 | bumpleak/osh | mut |
6 | 3 | 3 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
7 | 0 | 7 | 11.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc |
9 | 3 | 6 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.3 | _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 | 11 | 0 | 1.4 | dash | - |
29 | 28 | 0 | 2.9 | bash | - |
23 | 19 | 4 | 3.3 | zsh | - |
19 | 15 | 4 | 30.9 | bumpleak/osh | mut |
25 | 21 | 4 | 32.0 | _bin/cxx-opt+bumproot/osh | mut |
28 | 20 | 8 | 31.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 20 | 16 | 26.2 | osh-native | mut+alloc |
38 | 25 | 13 | 26.6 | osh-native | mut+alloc+free |
29 | 28 | 0 | 7.7 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 41 | 12 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
36 | 36 | 0 | 9.4 | _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 |
75 | 71 | 4 | 3.1 | bash | - |
169 | 108 | 60 | 55.7 | bumpleak/osh | mut |
182 | 122 | 59 | 54.9 | _bin/cxx-opt+bumproot/osh | mut |
194 | 131 | 63 | 55.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 112 | 100 | 47.0 | osh-native | mut+alloc |
219 | 143 | 76 | 48.8 | osh-native | mut+alloc+free |
180 | 104 | 76 | 8.7 | osh-native | mut+alloc+free+gc |
181 | 113 | 68 | 8.5 | osh-native | mut+alloc+free+gc+exit |
231 | 170 | 61 | 63.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 156 | 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 |
10 | 8 | 2 | 3.7 | dash | - |
20 | 14 | 7 | 4.5 | bash | - |
18 | 7 | 11 | 3.5 | zsh | - |
19 | 17 | 2 | 11.8 | bumpleak/osh | mut |
20 | 12 | 8 | 12.2 | _bin/cxx-opt+bumproot/osh | mut |
20 | 11 | 9 | 11.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 16 | 6 | 10.9 | osh-native | mut+alloc |
23 | 11 | 11 | 11.1 | osh-native | mut+alloc+free |
22 | 20 | 2 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 18 | 5 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 12 | 13 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 19 | 6 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |