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 | 27 | 3 | 7 | 12.0 | 17.8 | 476,721 | 1,282 | 6 | 408,808 | 5 | 204,404 | osh-native |
parse.configure-coreutils | 112 | 19 | 47 | 44.6 | 49.8 | 1,653,309 | 4,764 | 12 | 1,030,692 | 6 | 769,430 | osh-native |
parse.abuild | 7 | 0 | 1 | 2.6 | 8.6 | 101,912 | 180 | 2 | 75,150 | 1 | 37,575 | osh-native |
ex.compute-fib | 20 | 0 | 1 | 2.4 | 8.0 | 584,177 | 22,608 | 12 | 50,000 | 0 | 2,852 | osh-native |
ex.bashcomp-parse-help | 127 | 0 | 2 | 10.3 | 8.7 | 995,254 | 12,911 | 21 | 50,000 | 0 | 3,842 | osh-native |
ex.abuild-print-help | 18 | 0 | 1 | 2.8 | 9.1 | 116,321 | 270 | 3 | 85,386 | 1 | 42,693 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
4 | 4 | 0 | 1.6 | dash | - |
20 | 20 | 0 | 3.2 | bash | - |
78 | 48 | 34 | 3.5 | zsh | - |
13 | 12 | 0 | 28.3 | bumpleak/osh | mut |
14 | 10 | 5 | 28.5 | _bin/cxx-opt+bumproot/osh | mut |
17 | 16 | 0 | 30.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
23 | 15 | 8 | 25.2 | osh-native | mut+alloc |
24 | 20 | 4 | 25.5 | osh-native | mut+alloc+free |
27 | 19 | 8 | 17.8 | osh-native | mut+alloc+free+gc |
27 | 23 | 5 | 18.0 | osh-native | mut+alloc+free+gc+exit |
33 | 22 | 11 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
36 | 35 | 0 | 22.5 | _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 |
15 | 15 | 0 | 1.6 | dash | - |
56 | 56 | 0 | 3.3 | bash | - |
323 | 192 | 148 | 3.5 | zsh | - |
37 | 37 | 0 | 85.8 | bumpleak/osh | mut |
45 | 41 | 4 | 84.7 | _bin/cxx-opt+bumproot/osh | mut |
53 | 37 | 16 | 85.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
74 | 57 | 16 | 73.3 | osh-native | mut+alloc |
82 | 41 | 41 | 75.0 | osh-native | mut+alloc+free |
112 | 88 | 24 | 49.8 | osh-native | mut+alloc+free+gc |
116 | 88 | 28 | 50.7 | osh-native | mut+alloc+free+gc+exit |
105 | 77 | 28 | 99.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
158 | 133 | 24 | 67.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 |
1 | 1 | 0 | 1.6 | dash | - |
4 | 4 | 0 | 3.1 | bash | - |
5 | 3 | 2 | 3.5 | zsh | - |
5 | 0 | 5 | 11.7 | bumpleak/osh | mut |
5 | 0 | 5 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
5 | 5 | 0 | 11.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.1 | osh-native | mut+alloc |
7 | 0 | 6 | 10.1 | osh-native | mut+alloc+free |
7 | 0 | 7 | 8.6 | osh-native | mut+alloc+free+gc |
7 | 7 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
9 | 4 | 4 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
8 | 8 | 0 | 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 |
8 | 4 | 4 | 1.6 | dash | - |
21 | 20 | 0 | 3.0 | bash | - |
17 | 13 | 3 | 3.4 | zsh | - |
14 | 9 | 5 | 31.2 | bumpleak/osh | mut |
19 | 15 | 4 | 32.6 | _bin/cxx-opt+bumproot/osh | mut |
21 | 14 | 7 | 32.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
28 | 24 | 4 | 26.3 | osh-native | mut+alloc |
29 | 25 | 4 | 26.6 | osh-native | mut+alloc+free |
20 | 16 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
21 | 14 | 7 | 8.1 | osh-native | mut+alloc+free+gc+exit |
41 | 16 | 24 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
27 | 23 | 4 | 9.5 | _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 |
52 | 44 | 8 | 3.2 | bash | - |
118 | 85 | 33 | 55.1 | bumpleak/osh | mut |
129 | 89 | 40 | 56.1 | _bin/cxx-opt+bumproot/osh | mut |
137 | 100 | 36 | 55.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
151 | 102 | 49 | 46.9 | osh-native | mut+alloc |
158 | 118 | 39 | 48.7 | osh-native | mut+alloc+free |
127 | 79 | 47 | 8.7 | osh-native | mut+alloc+free+gc |
126 | 86 | 39 | 8.8 | osh-native | mut+alloc+free+gc+exit |
167 | 84 | 84 | 63.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
147 | 123 | 24 | 10.2 | _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 |
8 | 5 | 3 | 3.6 | dash | - |
16 | 6 | 10 | 4.5 | bash | - |
14 | 5 | 9 | 3.7 | zsh | - |
16 | 6 | 10 | 13.0 | bumpleak/osh | mut |
16 | 14 | 2 | 13.8 | _bin/cxx-opt+bumproot/osh | mut |
17 | 15 | 2 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
16 | 15 | 1 | 11.2 | osh-native | mut+alloc |
18 | 17 | 1 | 11.2 | osh-native | mut+alloc+free |
18 | 18 | 0 | 9.1 | osh-native | mut+alloc+free+gc |
19 | 11 | 8 | 9.1 | osh-native | mut+alloc+free+gc+exit |
19 | 10 | 9 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
21 | 11 | 10 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |