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,676 | 1,282 | 6 | 408,744 | 5 | 204,372 | osh-native |
parse.configure-coreutils | 151 | 26 | 65 | 46.1 | 51.4 | 1,653,264 | 4,764 | 12 | 1,069,110 | 6 | 798,636 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,867 | 180 | 2 | 75,086 | 1 | 37,543 | osh-native |
ex.compute-fib | 27 | 0 | 1 | 2.6 | 7.9 | 584,132 | 31,810 | 12 | 50,000 | 0 | 2,819 | osh-native |
ex.bashcomp-parse-help | 180 | 0 | 3 | 10.6 | 8.7 | 995,209 | 27,376 | 21 | 50,000 | 0 | 3,815 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 116,276 | 478 | 3 | 85,322 | 1 | 42,661 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
7 | 7 | 0 | 1.4 | dash | - |
23 | 23 | 0 | 2.9 | bash | - |
105 | 78 | 33 | 3.3 | zsh | - |
16 | 12 | 4 | 29.1 | bumpleak/osh | mut |
20 | 16 | 4 | 29.8 | _bin/cxx-opt+bumproot/osh | mut |
23 | 15 | 7 | 28.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 15 | 15 | 25.0 | osh-native | mut+alloc |
31 | 19 | 12 | 25.4 | osh-native | mut+alloc+free |
35 | 23 | 12 | 17.8 | osh-native | mut+alloc+free+gc |
36 | 32 | 4 | 17.8 | osh-native | mut+alloc+free+gc+exit |
44 | 33 | 11 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 39 | 8 | 22.4 | _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 | - |
77 | 77 | 0 | 3.1 | bash | - |
377 | 211 | 188 | 3.5 | zsh | - |
49 | 41 | 8 | 84.7 | bumpleak/osh | mut |
60 | 52 | 8 | 84.7 | _bin/cxx-opt+bumproot/osh | mut |
71 | 66 | 4 | 85.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 75 | 20 | 73.4 | osh-native | mut+alloc |
105 | 77 | 27 | 75.2 | osh-native | mut+alloc+free |
151 | 123 | 28 | 51.4 | osh-native | mut+alloc+free+gc |
151 | 114 | 37 | 52.2 | osh-native | mut+alloc+free+gc+exit |
138 | 97 | 40 | 98.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 172 | 36 | 72.4 | _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.3 | dash | - |
6 | 6 | 0 | 2.9 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 0 | 6 | 10.3 | bumpleak/osh | mut |
6 | 6 | 0 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.1 | osh-native | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native | mut+alloc+free |
9 | 4 | 4 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
11 | 6 | 6 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 4 | 8 | 9.3 | _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 | 25 | 4 | 2.9 | bash | - |
24 | 23 | 0 | 3.3 | zsh | - |
19 | 15 | 4 | 31.4 | bumpleak/osh | mut |
25 | 21 | 4 | 33.3 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 16 | 20 | 26.3 | osh-native | mut+alloc |
38 | 30 | 8 | 26.6 | osh-native | mut+alloc+free |
27 | 27 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 27 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
53 | 34 | 19 | 35.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 28 | 8 | 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 |
72 | 64 | 8 | 3.0 | bash | - |
168 | 120 | 48 | 55.1 | bumpleak/osh | mut |
180 | 124 | 56 | 56.2 | _bin/cxx-opt+bumproot/osh | mut |
193 | 120 | 72 | 55.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 157 | 52 | 47.1 | osh-native | mut+alloc |
218 | 146 | 71 | 48.9 | osh-native | mut+alloc+free |
180 | 132 | 48 | 8.7 | osh-native | mut+alloc+free+gc |
182 | 117 | 64 | 8.7 | osh-native | mut+alloc+free+gc+exit |
228 | 136 | 92 | 63.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 167 | 40 | 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 | 7 | 3 | 3.5 | dash | - |
19 | 11 | 9 | 4.3 | bash | - |
18 | 6 | 12 | 3.4 | zsh | - |
20 | 10 | 9 | 12.5 | bumpleak/osh | mut |
19 | 12 | 8 | 11.7 | _bin/cxx-opt+bumproot/osh | mut |
22 | 13 | 9 | 13.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 20 | 2 | 10.9 | osh-native | mut+alloc |
22 | 13 | 10 | 11.0 | osh-native | mut+alloc+free |
22 | 20 | 3 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 17 | 6 | 8.8 | osh-native | mut+alloc+free+gc+exit |
25 | 17 | 8 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 17 | 9 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |