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 | 18.1 | 476,679 | 1,282 | 6 | 408,748 | 5 | 204,374 | osh-native |
parse.configure-coreutils | 173 | 30 | 83 | 46.1 | 51.6 | 1,653,267 | 4,764 | 12 | 1,069,114 | 6 | 798,638 | osh-native |
parse.abuild | 10 | 1 | 2 | 2.6 | 8.4 | 101,870 | 180 | 2 | 75,090 | 1 | 37,545 | osh-native |
ex.compute-fib | 28 | 0 | 2 | 2.6 | 7.7 | 584,135 | 31,810 | 12 | 50,000 | 0 | 2,822 | osh-native |
ex.bashcomp-parse-help | 180 | 0 | 4 | 10.6 | 8.8 | 995,212 | 27,376 | 21 | 50,000 | 0 | 3,817 | osh-native |
ex.abuild-print-help | 23 | 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 | 3 | 3 | 1.6 | dash | - |
23 | 19 | 4 | 3.0 | bash | - |
106 | 61 | 51 | 3.4 | zsh | - |
16 | 16 | 0 | 29.0 | bumpleak/osh | mut |
20 | 12 | 8 | 29.0 | _bin/cxx-opt+bumproot/osh | mut |
24 | 23 | 0 | 29.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 17 | 13 | 25.0 | osh-native | mut+alloc |
32 | 24 | 8 | 25.6 | osh-native | mut+alloc+free |
37 | 28 | 8 | 18.1 | osh-native | mut+alloc+free+gc |
39 | 30 | 9 | 17.8 | osh-native | mut+alloc+free+gc+exit |
44 | 32 | 12 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
51 | 35 | 16 | 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 | 18 | 4 | 1.4 | dash | - |
78 | 74 | 4 | 3.3 | bash | - |
379 | 218 | 180 | 3.5 | zsh | - |
50 | 34 | 15 | 84.1 | bumpleak/osh | mut |
62 | 53 | 8 | 86.2 | _bin/cxx-opt+bumproot/osh | mut |
70 | 62 | 8 | 86.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 70 | 29 | 73.3 | osh-native | mut+alloc |
106 | 75 | 32 | 75.3 | osh-native | mut+alloc+free |
173 | 153 | 20 | 51.6 | osh-native | mut+alloc+free+gc |
171 | 155 | 16 | 52.1 | osh-native | mut+alloc+free+gc+exit |
142 | 101 | 40 | 98.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
239 | 199 | 40 | 72.9 | _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 | 3 | 3 | 2.9 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 6 | 0 | 11.0 | bumpleak/osh | mut |
7 | 7 | 0 | 11.4 | _bin/cxx-opt+bumproot/osh | mut |
8 | 8 | 0 | 11.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 3 | 6 | 10.1 | osh-native | mut+alloc |
9 | 4 | 4 | 10.0 | osh-native | mut+alloc+free |
10 | 10 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
10 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 12 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
13 | 6 | 6 | 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 | - |
28 | 28 | 0 | 2.8 | bash | - |
24 | 8 | 16 | 3.3 | zsh | - |
19 | 19 | 0 | 31.0 | bumpleak/osh | mut |
26 | 21 | 4 | 32.2 | _bin/cxx-opt+bumproot/osh | mut |
29 | 18 | 11 | 31.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 25 | 12 | 26.3 | osh-native | mut+alloc |
39 | 30 | 9 | 26.7 | osh-native | mut+alloc+free |
28 | 24 | 4 | 7.7 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.7 | osh-native | mut+alloc+free+gc+exit |
54 | 34 | 19 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 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.1 | bash | - |
168 | 100 | 68 | 54.6 | bumpleak/osh | mut |
179 | 131 | 48 | 55.3 | _bin/cxx-opt+bumproot/osh | mut |
194 | 169 | 24 | 56.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 116 | 96 | 47.1 | osh-native | mut+alloc |
219 | 143 | 76 | 48.9 | osh-native | mut+alloc+free |
180 | 132 | 48 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 150 | 32 | 8.7 | osh-native | mut+alloc+free+gc+exit |
232 | 136 | 96 | 62.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 162 | 47 | 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 |
10 | 5 | 6 | 3.4 | dash | - |
20 | 15 | 6 | 4.5 | bash | - |
18 | 11 | 8 | 3.5 | zsh | - |
19 | 10 | 9 | 11.2 | bumpleak/osh | mut |
21 | 11 | 10 | 13.9 | _bin/cxx-opt+bumproot/osh | mut |
21 | 6 | 16 | 12.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 17 | 5 | 10.5 | osh-native | mut+alloc |
23 | 21 | 3 | 10.9 | osh-native | mut+alloc+free |
23 | 12 | 11 | 8.8 | osh-native | mut+alloc+free+gc |
25 | 21 | 5 | 8.8 | osh-native | mut+alloc+free+gc+exit |
25 | 17 | 9 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
27 | 20 | 7 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |