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.8 | 476,698 | 1,282 | 6 | 408,770 | 5 | 204,385 | osh-native |
parse.configure-coreutils | 147 | 26 | 60 | 44.6 | 49.9 | 1,653,286 | 4,764 | 12 | 1,030,654 | 6 | 769,411 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,889 | 180 | 2 | 75,112 | 1 | 37,556 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.4 | 8.0 | 584,154 | 31,810 | 12 | 50,000 | 0 | 2,832 | osh-native |
ex.bashcomp-parse-help | 182 | 0 | 3 | 10.3 | 8.8 | 995,231 | 27,376 | 21 | 50,000 | 0 | 3,823 | osh-native |
ex.abuild-print-help | 24 | 1 | 2 | 2.8 | 9.0 | 116,298 | 478 | 3 | 85,348 | 1 | 42,674 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
104 | 61 | 50 | 3.4 | zsh | - |
17 | 17 | 0 | 28.3 | bumpleak/osh | mut |
19 | 19 | 0 | 28.9 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 30.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 25 | 4 | 25.2 | osh-native | mut+alloc |
32 | 28 | 4 | 25.6 | osh-native | mut+alloc+free |
35 | 26 | 9 | 17.8 | osh-native | mut+alloc+free+gc |
37 | 33 | 4 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 35 | 8 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 39 | 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 |
21 | 21 | 0 | 1.6 | dash | - |
79 | 75 | 4 | 3.1 | bash | - |
375 | 209 | 188 | 3.5 | zsh | - |
49 | 37 | 11 | 84.4 | bumpleak/osh | mut |
59 | 55 | 4 | 85.5 | _bin/cxx-opt+bumproot/osh | mut |
70 | 33 | 37 | 85.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 77 | 20 | 73.4 | osh-native | mut+alloc |
106 | 73 | 33 | 75.3 | osh-native | mut+alloc+free |
147 | 115 | 32 | 49.9 | osh-native | mut+alloc+free+gc |
161 | 141 | 20 | 50.6 | osh-native | mut+alloc+free+gc+exit |
137 | 101 | 36 | 99.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
201 | 169 | 32 | 67.6 | _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.3 | dash | - |
6 | 6 | 0 | 2.9 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 6 | 0 | 11.4 | bumpleak/osh | mut |
7 | 7 | 0 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 9 | 0 | 10.0 | osh-native | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 11 | 0 | 9.6 | _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.8 | bash | - |
23 | 12 | 12 | 3.3 | zsh | - |
19 | 18 | 0 | 31.0 | bumpleak/osh | mut |
25 | 21 | 4 | 31.6 | _bin/cxx-opt+bumproot/osh | mut |
29 | 25 | 4 | 32.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 32 | 4 | 26.2 | osh-native | mut+alloc |
37 | 30 | 7 | 26.5 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 16 | 12 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 41 | 12 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 33 | 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 |
74 | 66 | 8 | 3.0 | bash | - |
168 | 124 | 44 | 54.9 | bumpleak/osh | mut |
179 | 123 | 56 | 55.6 | _bin/cxx-opt+bumproot/osh | mut |
192 | 112 | 80 | 56.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 143 | 67 | 47.0 | osh-native | mut+alloc |
216 | 153 | 63 | 48.6 | osh-native | mut+alloc+free |
182 | 123 | 59 | 8.8 | osh-native | mut+alloc+free+gc |
180 | 128 | 52 | 8.5 | osh-native | mut+alloc+free+gc+exit |
232 | 132 | 100 | 63.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 140 | 68 | 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 | 1 | 3.4 | dash | - |
20 | 17 | 3 | 4.5 | bash | - |
17 | 11 | 7 | 3.5 | zsh | - |
18 | 10 | 8 | 11.4 | bumpleak/osh | mut |
19 | 16 | 3 | 13.6 | _bin/cxx-opt+bumproot/osh | mut |
20 | 16 | 4 | 13.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 11 | 10 | 11.0 | osh-native | mut+alloc |
22 | 14 | 9 | 11.1 | osh-native | mut+alloc+free |
24 | 12 | 12 | 9.0 | osh-native | mut+alloc+free+gc |
22 | 16 | 8 | 8.9 | osh-native | mut+alloc+free+gc+exit |
24 | 19 | 6 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 12 | 13 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |