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 | 35 | 3 | 9 | 12.0 | 18.0 | 476,714 | 1,282 | 6 | 408,802 | 5 | 204,401 | osh-native |
parse.configure-coreutils | 146 | 22 | 58 | 44.6 | 50.0 | 1,653,302 | 4,764 | 12 | 1,030,686 | 6 | 769,427 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.7 | 101,905 | 180 | 2 | 75,144 | 1 | 37,572 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.4 | 8.0 | 584,170 | 31,810 | 12 | 50,000 | 0 | 2,848 | osh-native |
ex.bashcomp-parse-help | 180 | 0 | 3 | 10.3 | 8.8 | 995,247 | 27,376 | 21 | 50,000 | 0 | 3,829 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 116,314 | 478 | 3 | 85,380 | 1 | 42,690 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.4 | dash | - |
24 | 20 | 4 | 3.1 | bash | - |
104 | 60 | 50 | 3.4 | zsh | - |
16 | 12 | 4 | 29.0 | bumpleak/osh | mut |
19 | 19 | 0 | 29.8 | _bin/cxx-opt+bumproot/osh | mut |
22 | 13 | 9 | 29.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 22 | 7 | 25.0 | osh-native | mut+alloc |
31 | 19 | 12 | 25.6 | osh-native | mut+alloc+free |
35 | 35 | 0 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 32 | 4 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 31 | 12 | 32.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
46 | 31 | 15 | 22.2 | _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.4 | dash | - |
78 | 74 | 4 | 3.1 | bash | - |
375 | 195 | 203 | 3.5 | zsh | - |
48 | 36 | 12 | 85.2 | bumpleak/osh | mut |
60 | 56 | 4 | 84.8 | _bin/cxx-opt+bumproot/osh | mut |
70 | 57 | 12 | 86.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 65 | 32 | 73.4 | osh-native | mut+alloc |
106 | 81 | 24 | 75.3 | osh-native | mut+alloc+free |
146 | 118 | 28 | 50.0 | osh-native | mut+alloc+free+gc |
148 | 125 | 23 | 50.7 | osh-native | mut+alloc+free+gc+exit |
138 | 106 | 32 | 99.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
202 | 165 | 36 | 67.0 | _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 | 3.0 | bash | - |
8 | 0 | 7 | 3.4 | zsh | - |
6 | 6 | 0 | 10.6 | bumpleak/osh | mut |
6 | 3 | 3 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
8 | 8 | 0 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 0 | 8 | 10.1 | osh-native | mut+alloc |
8 | 8 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc |
9 | 4 | 4 | 8.5 | osh-native | mut+alloc+free+gc+exit |
11 | 8 | 4 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 4 | 7 | 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 | 10 | 0 | 1.4 | dash | - |
30 | 30 | 0 | 2.9 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
19 | 5 | 14 | 32.4 | bumpleak/osh | mut |
26 | 21 | 4 | 32.4 | _bin/cxx-opt+bumproot/osh | mut |
28 | 28 | 0 | 31.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 33 | 4 | 26.3 | osh-native | mut+alloc |
38 | 25 | 12 | 26.5 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 27 | 27 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.7 | _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.1 | bash | - |
168 | 112 | 56 | 54.3 | bumpleak/osh | mut |
181 | 132 | 48 | 54.8 | _bin/cxx-opt+bumproot/osh | mut |
193 | 117 | 76 | 55.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 140 | 72 | 47.1 | osh-native | mut+alloc |
218 | 147 | 71 | 48.7 | osh-native | mut+alloc+free |
180 | 120 | 60 | 8.8 | osh-native | mut+alloc+free+gc |
180 | 132 | 48 | 8.8 | osh-native | mut+alloc+free+gc+exit |
232 | 176 | 56 | 63.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
207 | 158 | 49 | 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 | 9 | 1 | 3.4 | dash | - |
19 | 14 | 5 | 4.5 | bash | - |
18 | 9 | 9 | 3.5 | zsh | - |
17 | 10 | 8 | 13.0 | bumpleak/osh | mut |
19 | 14 | 5 | 11.6 | _bin/cxx-opt+bumproot/osh | mut |
20 | 15 | 5 | 11.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 15 | 6 | 10.9 | osh-native | mut+alloc |
22 | 11 | 12 | 11.1 | osh-native | mut+alloc+free |
22 | 12 | 10 | 8.9 | osh-native | mut+alloc+free+gc |
22 | 18 | 5 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 16 | 8 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 17 | 8 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |