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 | 37 | 4 | 10 | 12.0 | 17.8 | 476,636 | 1,282 | 6 | 408,686 | 5 | 204,343 | osh-native |
parse.configure-coreutils | 151 | 25 | 61 | 46.1 | 51.3 | 1,653,224 | 4,764 | 12 | 1,069,052 | 6 | 798,607 | osh-native |
parse.abuild | 10 | 1 | 1 | 2.6 | 8.3 | 101,827 | 180 | 2 | 75,028 | 1 | 37,514 | osh-native |
ex.compute-fib | 29 | 0 | 1 | 3.1 | 7.9 | 584,088 | 31,810 | 12 | 50,000 | 0 | 2,788 | osh-native |
ex.bashcomp-parse-help | 183 | 0 | 3 | 12.3 | 8.7 | 1,001,962 | 27,376 | 21 | 50,000 | 0 | 3,776 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.9 | 116,032 | 478 | 3 | 85,262 | 1 | 42,631 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
7 | 6 | 0 | 1.6 | dash | - |
23 | 23 | 0 | 2.9 | bash | - |
104 | 64 | 47 | 3.4 | zsh | - |
16 | 16 | 0 | 28.5 | bumpleak/osh | mut |
20 | 12 | 8 | 28.8 | _bin/cxx-opt+bumproot/osh | mut |
22 | 9 | 13 | 29.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 17 | 13 | 25.0 | osh-native | mut+alloc |
32 | 16 | 16 | 25.6 | osh-native | mut+alloc+free |
37 | 33 | 4 | 17.8 | osh-native | mut+alloc+free+gc |
37 | 22 | 15 | 17.7 | osh-native | mut+alloc+free+gc+exit |
44 | 24 | 20 | 33.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 36 | 12 | 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 | 22 | 0 | 1.6 | dash | - |
77 | 77 | 0 | 3.1 | bash | - |
379 | 200 | 201 | 3.5 | zsh | - |
52 | 36 | 16 | 85.0 | bumpleak/osh | mut |
60 | 52 | 8 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
72 | 44 | 28 | 84.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
101 | 60 | 40 | 73.3 | osh-native | mut+alloc |
108 | 64 | 44 | 75.4 | osh-native | mut+alloc+free |
151 | 134 | 16 | 51.3 | osh-native | mut+alloc+free+gc |
153 | 125 | 28 | 52.3 | osh-native | mut+alloc+free+gc+exit |
139 | 102 | 37 | 97.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 167 | 44 | 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.4 | dash | - |
6 | 3 | 3 | 2.9 | bash | - |
8 | 0 | 7 | 3.4 | zsh | - |
6 | 6 | 0 | 10.5 | bumpleak/osh | mut |
6 | 3 | 3 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 11.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 3 | 6 | 10.0 | osh-native | mut+alloc |
9 | 4 | 4 | 9.8 | osh-native | mut+alloc+free |
10 | 5 | 5 | 8.3 | osh-native | mut+alloc+free+gc |
9 | 4 | 4 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 12 | 0 | 11.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 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 |
10 | 7 | 3 | 1.4 | dash | - |
29 | 29 | 0 | 2.9 | bash | - |
24 | 16 | 8 | 3.1 | zsh | - |
19 | 15 | 4 | 31.1 | bumpleak/osh | mut |
26 | 19 | 7 | 32.1 | _bin/cxx-opt+bumproot/osh | mut |
29 | 25 | 4 | 33.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 26 | 11 | 26.6 | osh-native | mut+alloc |
39 | 31 | 8 | 27.0 | osh-native | mut+alloc+free |
29 | 21 | 7 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 38 | 15 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 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 |
73 | 69 | 4 | 3.3 | bash | - |
170 | 118 | 51 | 57.6 | bumpleak/osh | mut |
182 | 97 | 85 | 56.0 | _bin/cxx-opt+bumproot/osh | mut |
196 | 132 | 64 | 57.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 125 | 88 | 48.9 | osh-native | mut+alloc |
221 | 161 | 60 | 50.6 | osh-native | mut+alloc+free |
183 | 97 | 85 | 8.7 | osh-native | mut+alloc+free+gc |
183 | 107 | 75 | 8.5 | osh-native | mut+alloc+free+gc+exit |
235 | 159 | 76 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 109 | 101 | 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 | 18 | 3 | 4.3 | bash | - |
18 | 15 | 4 | 3.4 | zsh | - |
20 | 13 | 8 | 12.7 | bumpleak/osh | mut |
22 | 13 | 9 | 13.2 | _bin/cxx-opt+bumproot/osh | mut |
22 | 17 | 5 | 13.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 16 | 6 | 11.0 | osh-native | mut+alloc |
23 | 17 | 7 | 11.1 | osh-native | mut+alloc+free |
23 | 15 | 8 | 8.9 | osh-native | mut+alloc+free+gc |
24 | 14 | 10 | 8.8 | osh-native | mut+alloc+free+gc+exit |
25 | 17 | 8 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 17 | 9 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |