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,684 | 1,282 | 6 | 408,754 | 5 | 204,377 | osh-native |
parse.configure-coreutils | 164 | 25 | 74 | 46.1 | 51.6 | 1,653,272 | 4,764 | 12 | 1,069,120 | 6 | 798,641 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.3 | 101,875 | 180 | 2 | 75,096 | 1 | 37,548 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.6 | 8.0 | 584,140 | 31,810 | 12 | 50,000 | 0 | 2,825 | osh-native |
ex.bashcomp-parse-help | 180 | 0 | 3 | 10.6 | 8.7 | 995,217 | 27,376 | 21 | 50,000 | 0 | 3,820 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.7 | 116,284 | 478 | 3 | 85,332 | 1 | 42,666 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 19 | 4 | 3.0 | bash | - |
105 | 70 | 41 | 3.3 | zsh | - |
16 | 8 | 8 | 28.7 | bumpleak/osh | mut |
20 | 16 | 4 | 28.5 | _bin/cxx-opt+bumproot/osh | mut |
23 | 22 | 0 | 30.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 21 | 8 | 24.9 | osh-native | mut+alloc |
32 | 28 | 4 | 25.6 | osh-native | mut+alloc+free |
35 | 31 | 4 | 17.8 | osh-native | mut+alloc+free+gc |
37 | 28 | 8 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 34 | 9 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 45 | 4 | 21.9 | _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.4 | dash | - |
78 | 74 | 4 | 3.1 | bash | - |
379 | 201 | 199 | 3.5 | zsh | - |
47 | 35 | 12 | 85.2 | bumpleak/osh | mut |
59 | 43 | 16 | 85.8 | _bin/cxx-opt+bumproot/osh | mut |
70 | 70 | 0 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 73 | 24 | 73.4 | osh-native | mut+alloc |
107 | 63 | 43 | 75.3 | osh-native | mut+alloc+free |
164 | 140 | 24 | 51.6 | osh-native | mut+alloc+free+gc |
162 | 134 | 28 | 52.1 | osh-native | mut+alloc+free+gc+exit |
139 | 103 | 36 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 155 | 56 | 73.7 | _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 | 3 | 3 | 3.0 | bash | - |
8 | 7 | 0 | 3.3 | zsh | - |
6 | 3 | 3 | 11.7 | bumpleak/osh | mut |
7 | 4 | 4 | 11.7 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.1 | osh-native | mut+alloc |
9 | 4 | 4 | 10.0 | osh-native | mut+alloc+free |
9 | 5 | 5 | 8.3 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 0 | 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 | 29 | 0 | 2.8 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
20 | 12 | 8 | 32.2 | bumpleak/osh | mut |
25 | 21 | 4 | 32.5 | _bin/cxx-opt+bumproot/osh | mut |
28 | 28 | 0 | 31.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 18 | 18 | 26.2 | osh-native | mut+alloc |
38 | 29 | 8 | 26.7 | osh-native | mut+alloc+free |
28 | 20 | 8 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 27 | 0 | 7.7 | osh-native | mut+alloc+free+gc+exit |
53 | 38 | 15 | 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 |
72 | 68 | 4 | 3.1 | bash | - |
168 | 108 | 60 | 54.6 | bumpleak/osh | mut |
179 | 139 | 40 | 54.1 | _bin/cxx-opt+bumproot/osh | mut |
195 | 138 | 57 | 56.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 125 | 85 | 47.1 | osh-native | mut+alloc |
216 | 140 | 76 | 48.9 | osh-native | mut+alloc+free |
180 | 125 | 55 | 8.7 | osh-native | mut+alloc+free+gc |
180 | 116 | 64 | 8.8 | osh-native | mut+alloc+free+gc+exit |
230 | 139 | 91 | 63.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 156 | 52 | 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 | 5 | 5 | 3.4 | dash | - |
20 | 15 | 5 | 4.3 | bash | - |
18 | 11 | 7 | 3.5 | zsh | - |
18 | 14 | 5 | 11.8 | bumpleak/osh | mut |
21 | 15 | 6 | 13.0 | _bin/cxx-opt+bumproot/osh | mut |
20 | 17 | 4 | 12.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 12 | 9 | 11.0 | osh-native | mut+alloc |
23 | 16 | 8 | 10.9 | osh-native | mut+alloc+free |
23 | 17 | 6 | 8.7 | osh-native | mut+alloc+free+gc |
24 | 18 | 6 | 8.8 | osh-native | mut+alloc+free+gc+exit |
25 | 8 | 17 | 12.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 17 | 9 | 9.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |