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 | 18.0 | 476,636 | 1,282 | 6 | 408,686 | 5 | 204,343 | osh-native |
parse.configure-coreutils | 144 | 22 | 56 | 46.1 | 51.4 | 1,653,224 | 4,764 | 12 | 1,069,052 | 6 | 798,607 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,827 | 180 | 2 | 75,028 | 1 | 37,514 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 3.1 | 7.7 | 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 | 22 | 1 | 2 | 2.8 | 9.0 | 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 | 3 | 3 | 1.6 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
105 | 60 | 51 | 3.4 | zsh | - |
17 | 13 | 4 | 29.5 | bumpleak/osh | mut |
20 | 16 | 4 | 28.7 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 29.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 29 | 0 | 25.0 | osh-native | mut+alloc |
31 | 31 | 0 | 25.3 | osh-native | mut+alloc+free |
35 | 23 | 11 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 28 | 8 | 18.0 | osh-native | mut+alloc+free+gc+exit |
42 | 38 | 4 | 33.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 39 | 8 | 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 |
21 | 21 | 0 | 1.6 | dash | - |
78 | 78 | 0 | 3.3 | bash | - |
376 | 184 | 214 | 3.4 | zsh | - |
49 | 37 | 12 | 85.5 | bumpleak/osh | mut |
60 | 52 | 8 | 84.4 | _bin/cxx-opt+bumproot/osh | mut |
71 | 63 | 8 | 84.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 51 | 47 | 73.3 | osh-native | mut+alloc |
121 | 81 | 40 | 75.3 | osh-native | mut+alloc+free |
144 | 128 | 16 | 51.4 | osh-native | mut+alloc+free+gc |
148 | 132 | 16 | 52.3 | osh-native | mut+alloc+free+gc+exit |
140 | 88 | 52 | 98.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
214 | 186 | 28 | 72.1 | _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 | 0 | 2 | 1.4 | dash | - |
6 | 6 | 0 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 6 | 0 | 11.9 | bumpleak/osh | mut |
6 | 3 | 3 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 9.8 | osh-native | mut+alloc |
9 | 3 | 6 | 9.7 | osh-native | mut+alloc+free |
9 | 4 | 4 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.3 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 8 | 4 | 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 | 7 | 3 | 1.4 | dash | - |
29 | 29 | 0 | 2.9 | bash | - |
24 | 23 | 0 | 3.3 | zsh | - |
19 | 15 | 4 | 32.7 | bumpleak/osh | mut |
27 | 23 | 4 | 32.8 | _bin/cxx-opt+bumproot/osh | mut |
29 | 29 | 0 | 32.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 20 | 16 | 26.7 | osh-native | mut+alloc |
38 | 25 | 13 | 27.1 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.7 | osh-native | mut+alloc+free+gc |
28 | 27 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 35 | 19 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 37 | 0 | 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 |
74 | 62 | 12 | 3.1 | bash | - |
169 | 121 | 48 | 57.0 | bumpleak/osh | mut |
182 | 117 | 65 | 56.5 | _bin/cxx-opt+bumproot/osh | mut |
194 | 126 | 67 | 57.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 132 | 80 | 48.9 | osh-native | mut+alloc |
222 | 150 | 73 | 50.6 | osh-native | mut+alloc+free |
184 | 112 | 72 | 8.7 | osh-native | mut+alloc+free+gc |
183 | 138 | 45 | 8.7 | osh-native | mut+alloc+free+gc+exit |
231 | 147 | 84 | 65.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 169 | 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.4 | dash | - |
20 | 12 | 8 | 4.3 | bash | - |
18 | 11 | 7 | 3.5 | zsh | - |
19 | 18 | 1 | 12.0 | bumpleak/osh | mut |
21 | 9 | 13 | 13.4 | _bin/cxx-opt+bumproot/osh | mut |
21 | 13 | 8 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 12 | 10 | 10.7 | osh-native | mut+alloc |
22 | 17 | 5 | 10.9 | osh-native | mut+alloc+free |
22 | 20 | 3 | 9.0 | osh-native | mut+alloc+free+gc |
22 | 13 | 10 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 12 | 13 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 15 | 11 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |