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,679 | 1,282 | 6 | 408,748 | 5 | 204,374 | osh-native |
parse.configure-coreutils | 151 | 24 | 64 | 46.1 | 51.6 | 1,653,267 | 4,764 | 12 | 1,069,114 | 6 | 798,638 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,870 | 180 | 2 | 75,090 | 1 | 37,545 | osh-native |
ex.compute-fib | 28 | 0 | 2 | 2.6 | 7.9 | 584,135 | 31,810 | 12 | 50,000 | 0 | 2,822 | osh-native |
ex.bashcomp-parse-help | 181 | 0 | 4 | 10.6 | 8.8 | 995,212 | 27,376 | 21 | 50,000 | 0 | 3,817 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 116,279 | 478 | 3 | 85,326 | 1 | 42,663 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 3 | 3 | 1.6 | dash | - |
23 | 19 | 4 | 3.0 | bash | - |
104 | 46 | 63 | 3.4 | zsh | - |
16 | 16 | 0 | 29.4 | bumpleak/osh | mut |
20 | 19 | 0 | 29.4 | _bin/cxx-opt+bumproot/osh | mut |
25 | 25 | 0 | 28.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 12 | 17 | 25.0 | osh-native | mut+alloc |
32 | 20 | 12 | 25.6 | osh-native | mut+alloc+free |
36 | 32 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 29 | 8 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 23 | 19 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 27 | 19 | 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.6 | dash | - |
77 | 76 | 0 | 3.0 | bash | - |
375 | 211 | 185 | 3.4 | zsh | - |
49 | 41 | 8 | 85.9 | bumpleak/osh | mut |
61 | 53 | 8 | 84.9 | _bin/cxx-opt+bumproot/osh | mut |
72 | 56 | 16 | 85.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 68 | 28 | 73.4 | osh-native | mut+alloc |
105 | 76 | 28 | 75.3 | osh-native | mut+alloc+free |
151 | 122 | 28 | 51.6 | osh-native | mut+alloc+free+gc |
158 | 130 | 28 | 52.3 | osh-native | mut+alloc+free+gc+exit |
138 | 102 | 37 | 98.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
202 | 170 | 32 | 72.9 | _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 | 2.9 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 6 | 0 | 10.4 | bumpleak/osh | mut |
7 | 0 | 7 | 11.4 | _bin/cxx-opt+bumproot/osh | mut |
7 | 0 | 7 | 11.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 3 | 6 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 4 | 8 | 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 | - |
28 | 28 | 0 | 2.9 | bash | - |
24 | 19 | 4 | 3.3 | zsh | - |
19 | 15 | 4 | 34.7 | bumpleak/osh | mut |
27 | 27 | 0 | 32.4 | _bin/cxx-opt+bumproot/osh | mut |
27 | 27 | 0 | 32.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 26.3 | osh-native | mut+alloc |
38 | 19 | 19 | 26.6 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 31 | 23 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
36 | 32 | 4 | 9.3 | _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 | 64 | 8 | 3.1 | bash | - |
169 | 132 | 36 | 55.2 | bumpleak/osh | mut |
179 | 103 | 76 | 56.1 | _bin/cxx-opt+bumproot/osh | mut |
192 | 120 | 72 | 57.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 111 | 100 | 47.1 | osh-native | mut+alloc |
217 | 160 | 56 | 48.9 | osh-native | mut+alloc+free |
181 | 133 | 48 | 8.8 | osh-native | mut+alloc+free+gc |
183 | 166 | 16 | 8.8 | osh-native | mut+alloc+free+gc+exit |
233 | 156 | 76 | 62.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 172 | 36 | 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.5 | dash | - |
20 | 14 | 7 | 4.5 | bash | - |
18 | 11 | 7 | 3.5 | zsh | - |
18 | 10 | 8 | 11.3 | bumpleak/osh | mut |
19 | 10 | 10 | 13.7 | _bin/cxx-opt+bumproot/osh | mut |
21 | 13 | 8 | 13.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 11 | 11 | 10.7 | osh-native | mut+alloc |
23 | 20 | 3 | 11.0 | osh-native | mut+alloc+free |
22 | 20 | 3 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 13 | 10 | 8.8 | osh-native | mut+alloc+free+gc+exit |
25 | 11 | 14 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 17 | 8 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |