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 | 36 | 3 | 10 | 12.0 | 17.8 | 476,679 | 1,282 | 6 | 408,748 | 5 | 204,374 | osh-native |
parse.configure-coreutils | 150 | 24 | 63 | 46.1 | 51.5 | 1,653,267 | 4,764 | 12 | 1,069,114 | 6 | 798,638 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,870 | 180 | 2 | 75,090 | 1 | 37,545 | osh-native |
ex.compute-fib | 28 | 0 | 2 | 2.6 | 7.9 | 584,135 | 31,810 | 12 | 50,000 | 0 | 2,822 | osh-native |
ex.bashcomp-parse-help | 183 | 0 | 4 | 10.6 | 8.7 | 995,212 | 27,376 | 21 | 50,000 | 0 | 3,817 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.8 | 116,279 | 478 | 3 | 85,326 | 1 | 42,663 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.4 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
104 | 62 | 48 | 3.5 | zsh | - |
16 | 12 | 4 | 28.8 | bumpleak/osh | mut |
19 | 11 | 8 | 29.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 11 | 11 | 29.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 29 | 0 | 25.0 | osh-native | mut+alloc |
32 | 27 | 4 | 25.4 | osh-native | mut+alloc+free |
36 | 31 | 4 | 17.8 | osh-native | mut+alloc+free+gc |
36 | 20 | 16 | 17.8 | osh-native | mut+alloc+free+gc+exit |
42 | 31 | 11 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
45 | 30 | 15 | 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 | - |
77 | 77 | 0 | 3.3 | bash | - |
378 | 226 | 172 | 3.8 | zsh | - |
49 | 41 | 8 | 85.2 | bumpleak/osh | mut |
61 | 56 | 4 | 85.0 | _bin/cxx-opt+bumproot/osh | mut |
71 | 59 | 12 | 85.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 66 | 31 | 73.3 | osh-native | mut+alloc |
105 | 66 | 39 | 75.3 | osh-native | mut+alloc+free |
150 | 134 | 16 | 51.5 | osh-native | mut+alloc+free+gc |
159 | 122 | 37 | 52.2 | osh-native | mut+alloc+free+gc+exit |
139 | 103 | 36 | 98.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
206 | 178 | 28 | 73.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 | 2 | 0 | 1.4 | dash | - |
6 | 3 | 3 | 3.0 | bash | - |
8 | 4 | 4 | 3.4 | zsh | - |
6 | 0 | 6 | 11.1 | bumpleak/osh | mut |
7 | 0 | 7 | 11.9 | _bin/cxx-opt+bumproot/osh | mut |
7 | 0 | 7 | 11.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 9.7 | osh-native | mut+alloc |
9 | 3 | 6 | 10.1 | osh-native | mut+alloc+free |
9 | 5 | 5 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 12 | 0 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 7 | 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 | 10 | 0 | 1.6 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
23 | 14 | 9 | 3.1 | zsh | - |
20 | 16 | 4 | 30.9 | bumpleak/osh | mut |
25 | 25 | 0 | 31.4 | _bin/cxx-opt+bumproot/osh | mut |
28 | 28 | 0 | 31.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 26.2 | osh-native | mut+alloc |
37 | 22 | 15 | 26.7 | osh-native | mut+alloc+free |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
53 | 32 | 20 | 36.1 | _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 | 70 | 4 | 3.1 | bash | - |
166 | 107 | 59 | 54.9 | bumpleak/osh | mut |
180 | 124 | 56 | 55.1 | _bin/cxx-opt+bumproot/osh | mut |
191 | 107 | 83 | 55.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
209 | 133 | 76 | 47.1 | osh-native | mut+alloc |
216 | 124 | 92 | 48.9 | osh-native | mut+alloc+free |
183 | 119 | 64 | 8.7 | osh-native | mut+alloc+free+gc |
181 | 128 | 52 | 8.7 | osh-native | mut+alloc+free+gc+exit |
230 | 145 | 85 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
206 | 119 | 87 | 9.9 | _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 | 8 | 2 | 3.5 | dash | - |
19 | 13 | 7 | 4.5 | bash | - |
18 | 6 | 13 | 3.4 | zsh | - |
20 | 15 | 5 | 12.2 | bumpleak/osh | mut |
20 | 18 | 3 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
22 | 16 | 6 | 13.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 17 | 5 | 10.9 | osh-native | mut+alloc |
22 | 11 | 11 | 10.9 | osh-native | mut+alloc+free |
22 | 16 | 7 | 8.8 | osh-native | mut+alloc+free+gc |
23 | 13 | 10 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 17 | 8 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 16 | 10 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |