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 | 4 | 10 | 12.0 | 17.8 | 476,711 | 1,282 | 6 | 408,792 | 5 | 204,396 | osh-native |
parse.configure-coreutils | 170 | 26 | 81 | 44.6 | 49.9 | 1,653,299 | 4,764 | 12 | 1,030,676 | 6 | 769,422 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,902 | 180 | 2 | 75,134 | 1 | 37,567 | osh-native |
ex.compute-fib | 28 | 0 | 2 | 2.4 | 8.0 | 584,167 | 31,810 | 12 | 50,000 | 0 | 2,842 | osh-native |
ex.bashcomp-parse-help | 180 | 0 | 3 | 10.3 | 8.7 | 995,244 | 27,376 | 21 | 50,000 | 0 | 3,824 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.0 | 116,311 | 478 | 3 | 85,370 | 1 | 42,685 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 19 | 4 | 3.0 | bash | - |
105 | 59 | 52 | 3.4 | zsh | - |
16 | 12 | 4 | 29.2 | bumpleak/osh | mut |
20 | 16 | 4 | 30.1 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 29.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 22 | 7 | 25.0 | osh-native | mut+alloc |
33 | 16 | 16 | 25.6 | osh-native | mut+alloc+free |
36 | 22 | 14 | 17.8 | osh-native | mut+alloc+free+gc |
38 | 26 | 11 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 24 | 20 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
52 | 48 | 4 | 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 | 21 | 0 | 1.4 | dash | - |
77 | 77 | 0 | 3.1 | bash | - |
385 | 216 | 190 | 3.7 | zsh | - |
50 | 34 | 15 | 85.0 | bumpleak/osh | mut |
59 | 47 | 13 | 85.7 | _bin/cxx-opt+bumproot/osh | mut |
70 | 49 | 21 | 86.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 71 | 28 | 73.4 | osh-native | mut+alloc |
106 | 57 | 49 | 75.3 | osh-native | mut+alloc+free |
170 | 145 | 24 | 49.9 | osh-native | mut+alloc+free+gc |
171 | 151 | 20 | 50.4 | osh-native | mut+alloc+free+gc+exit |
140 | 84 | 56 | 97.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
241 | 225 | 16 | 67.5 | _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.3 | dash | - |
6 | 3 | 3 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 3 | 3 | 11.6 | bumpleak/osh | mut |
7 | 0 | 7 | 11.8 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 10.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 0 | 9 | 10.0 | osh-native | mut+alloc |
9 | 6 | 3 | 10.0 | osh-native | mut+alloc+free |
9 | 5 | 5 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 4 | 8 | 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 | 10 | 0 | 1.6 | dash | - |
29 | 28 | 0 | 2.9 | bash | - |
24 | 23 | 0 | 3.4 | zsh | - |
21 | 10 | 10 | 32.0 | bumpleak/osh | mut |
25 | 21 | 4 | 31.5 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 33.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 28 | 8 | 26.3 | osh-native | mut+alloc |
39 | 39 | 0 | 26.5 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 37 | 16 | 35.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 29 | 8 | 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 |
74 | 70 | 4 | 3.1 | bash | - |
168 | 132 | 36 | 53.9 | bumpleak/osh | mut |
180 | 144 | 36 | 55.6 | _bin/cxx-opt+bumproot/osh | mut |
194 | 137 | 57 | 55.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 135 | 76 | 47.0 | osh-native | mut+alloc |
221 | 160 | 60 | 48.7 | osh-native | mut+alloc+free |
180 | 140 | 40 | 8.7 | osh-native | mut+alloc+free+gc |
182 | 129 | 53 | 8.8 | osh-native | mut+alloc+free+gc+exit |
235 | 167 | 68 | 62.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 154 | 57 | 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 | 4 | 6 | 3.4 | dash | - |
20 | 14 | 6 | 4.3 | bash | - |
18 | 16 | 2 | 3.4 | zsh | - |
18 | 10 | 8 | 11.2 | bumpleak/osh | mut |
21 | 14 | 7 | 13.4 | _bin/cxx-opt+bumproot/osh | mut |
20 | 15 | 5 | 12.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 16 | 6 | 11.0 | osh-native | mut+alloc |
23 | 16 | 7 | 11.0 | osh-native | mut+alloc+free |
23 | 13 | 9 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 11 | 12 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 15 | 10 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 24 | 1 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |