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 | 39 | 5 | 12 | 12.0 | 17.6 | 476,636 | 1,282 | 6 | 408,686 | 5 | 204,343 | osh-native |
parse.configure-coreutils | 150 | 24 | 62 | 46.1 | 51.3 | 1,653,224 | 4,764 | 12 | 1,069,052 | 6 | 798,607 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.3 | 101,827 | 180 | 2 | 75,028 | 1 | 37,514 | osh-native |
ex.compute-fib | 29 | 0 | 2 | 3.1 | 7.6 | 584,088 | 31,810 | 12 | 50,000 | 0 | 2,788 | osh-native |
ex.bashcomp-parse-help | 184 | 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 |
6 | 6 | 0 | 1.4 | dash | - |
23 | 19 | 4 | 3.1 | bash | - |
105 | 65 | 46 | 3.4 | zsh | - |
16 | 12 | 4 | 29.1 | bumpleak/osh | mut |
20 | 10 | 10 | 28.7 | _bin/cxx-opt+bumproot/osh | mut |
23 | 19 | 4 | 28.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 25 | 4 | 25.0 | osh-native | mut+alloc |
31 | 22 | 9 | 25.6 | osh-native | mut+alloc+free |
39 | 31 | 8 | 17.6 | osh-native | mut+alloc+free+gc |
37 | 36 | 0 | 17.8 | osh-native | mut+alloc+free+gc+exit |
43 | 15 | 27 | 32.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 44 | 4 | 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 |
22 | 18 | 4 | 1.6 | dash | - |
78 | 74 | 4 | 3.1 | bash | - |
378 | 223 | 176 | 3.4 | zsh | - |
49 | 38 | 11 | 84.4 | bumpleak/osh | mut |
62 | 50 | 12 | 85.3 | _bin/cxx-opt+bumproot/osh | mut |
70 | 53 | 16 | 86.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 54 | 43 | 73.3 | osh-native | mut+alloc |
105 | 60 | 44 | 75.1 | osh-native | mut+alloc+free |
150 | 130 | 20 | 51.3 | osh-native | mut+alloc+free+gc |
154 | 130 | 24 | 52.3 | osh-native | mut+alloc+free+gc+exit |
138 | 93 | 44 | 98.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
214 | 174 | 40 | 71.8 | _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 | 3.0 | bash | - |
8 | 4 | 4 | 3.4 | zsh | - |
6 | 3 | 3 | 10.1 | bumpleak/osh | mut |
7 | 0 | 7 | 11.0 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 12.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 9 | 0 | 10.0 | osh-native | mut+alloc |
9 | 0 | 9 | 10.0 | osh-native | mut+alloc+free |
9 | 3 | 6 | 8.3 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.4 | osh-native | mut+alloc+free+gc+exit |
12 | 0 | 12 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.4 | _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.3 | dash | - |
29 | 28 | 0 | 3.0 | bash | - |
24 | 16 | 8 | 3.3 | zsh | - |
20 | 12 | 8 | 31.7 | bumpleak/osh | mut |
26 | 18 | 9 | 33.3 | _bin/cxx-opt+bumproot/osh | mut |
29 | 22 | 7 | 31.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 20 | 16 | 26.6 | osh-native | mut+alloc |
39 | 27 | 12 | 27.0 | osh-native | mut+alloc+free |
29 | 29 | 0 | 7.6 | osh-native | mut+alloc+free+gc |
29 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 49 | 4 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 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 |
73 | 69 | 4 | 3.1 | bash | - |
170 | 117 | 53 | 57.0 | bumpleak/osh | mut |
180 | 132 | 48 | 57.9 | _bin/cxx-opt+bumproot/osh | mut |
196 | 120 | 76 | 57.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
215 | 147 | 68 | 48.7 | osh-native | mut+alloc |
222 | 170 | 52 | 50.6 | osh-native | mut+alloc+free |
184 | 112 | 72 | 8.7 | osh-native | mut+alloc+free+gc |
183 | 147 | 36 | 8.5 | osh-native | mut+alloc+free+gc+exit |
234 | 121 | 113 | 65.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
213 | 145 | 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 | 6 | 4 | 3.5 | dash | - |
20 | 13 | 7 | 4.3 | bash | - |
18 | 10 | 9 | 3.5 | zsh | - |
21 | 19 | 2 | 12.7 | bumpleak/osh | mut |
21 | 14 | 7 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
20 | 9 | 12 | 12.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 20 | 2 | 10.7 | osh-native | mut+alloc |
23 | 15 | 9 | 10.9 | osh-native | mut+alloc+free |
23 | 18 | 5 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 22 | 2 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 19 | 7 | 12.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 16 | 10 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |