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 | 17.7 | 476,690 | 1,282 | 6 | 408,762 | 5 | 204,381 | osh-native |
parse.configure-coreutils | 148 | 24 | 61 | 46.1 | 51.4 | 1,653,278 | 4,764 | 12 | 1,069,128 | 6 | 798,645 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,881 | 180 | 2 | 75,104 | 1 | 37,552 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.6 | 7.7 | 584,146 | 31,810 | 12 | 50,000 | 0 | 2,828 | osh-native |
ex.bashcomp-parse-help | 181 | 0 | 3 | 10.6 | 8.8 | 995,223 | 27,376 | 21 | 50,000 | 0 | 3,824 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 116,290 | 478 | 3 | 85,340 | 1 | 42,670 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 3 | 3 | 1.4 | dash | - |
23 | 23 | 0 | 3.1 | bash | - |
104 | 61 | 49 | 3.4 | zsh | - |
16 | 8 | 8 | 28.5 | bumpleak/osh | mut |
20 | 16 | 4 | 28.9 | _bin/cxx-opt+bumproot/osh | mut |
23 | 18 | 5 | 28.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 12 | 16 | 25.0 | osh-native | mut+alloc |
31 | 22 | 9 | 25.7 | osh-native | mut+alloc+free |
35 | 27 | 8 | 17.7 | osh-native | mut+alloc+free+gc |
36 | 35 | 0 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 34 | 9 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 40 | 8 | 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 | 73 | 4 | 3.1 | bash | - |
377 | 219 | 180 | 3.5 | zsh | - |
48 | 36 | 12 | 84.2 | bumpleak/osh | mut |
61 | 57 | 4 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
70 | 57 | 12 | 86.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 60 | 36 | 73.4 | osh-native | mut+alloc |
106 | 73 | 32 | 75.1 | osh-native | mut+alloc+free |
148 | 139 | 8 | 51.4 | osh-native | mut+alloc+free+gc |
152 | 124 | 28 | 50.5 | osh-native | mut+alloc+free+gc+exit |
138 | 95 | 43 | 99.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 191 | 20 | 72.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 | 6 | 0 | 3.0 | bash | - |
8 | 0 | 7 | 3.3 | zsh | - |
6 | 6 | 0 | 10.9 | bumpleak/osh | mut |
7 | 7 | 0 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
7 | 3 | 3 | 10.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 0 | 8 | 9.8 | osh-native | mut+alloc |
9 | 9 | 0 | 10.0 | osh-native | mut+alloc+free |
9 | 3 | 6 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
11 | 11 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 7 | 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 | 28 | 0 | 3.0 | bash | - |
23 | 18 | 5 | 3.1 | zsh | - |
19 | 15 | 4 | 32.7 | bumpleak/osh | mut |
26 | 17 | 9 | 32.1 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.3 | osh-native | mut+alloc |
38 | 30 | 7 | 26.7 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.7 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.7 | osh-native | mut+alloc+free+gc+exit |
55 | 33 | 21 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 37 | 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 |
73 | 65 | 8 | 3.1 | bash | - |
166 | 117 | 49 | 55.7 | bumpleak/osh | mut |
180 | 108 | 72 | 54.5 | _bin/cxx-opt+bumproot/osh | mut |
193 | 145 | 48 | 56.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 137 | 73 | 46.9 | osh-native | mut+alloc |
216 | 140 | 76 | 48.8 | osh-native | mut+alloc+free |
181 | 141 | 40 | 8.8 | osh-native | mut+alloc+free+gc |
179 | 114 | 65 | 8.5 | osh-native | mut+alloc+free+gc+exit |
229 | 156 | 72 | 62.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
206 | 121 | 85 | 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.4 | dash | - |
20 | 18 | 2 | 4.5 | bash | - |
17 | 10 | 8 | 3.4 | zsh | - |
19 | 16 | 3 | 12.1 | bumpleak/osh | mut |
19 | 11 | 8 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
20 | 13 | 8 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 13 | 9 | 10.9 | osh-native | mut+alloc |
22 | 14 | 9 | 11.1 | osh-native | mut+alloc+free |
22 | 17 | 5 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 12 | 11 | 8.8 | osh-native | mut+alloc+free+gc+exit |
24 | 15 | 10 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 20 | 6 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |