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,685 | 1,282 | 6 | 408,756 | 5 | 204,378 | osh-native |
parse.configure-coreutils | 151 | 24 | 62 | 46.1 | 51.6 | 1,653,273 | 4,764 | 12 | 1,069,122 | 6 | 798,642 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,876 | 180 | 2 | 75,098 | 1 | 37,549 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.6 | 8.0 | 584,141 | 31,810 | 12 | 50,000 | 0 | 2,826 | osh-native |
ex.bashcomp-parse-help | 179 | 0 | 3 | 10.6 | 8.5 | 995,218 | 27,376 | 21 | 50,000 | 0 | 3,821 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.8 | 116,285 | 478 | 3 | 85,334 | 1 | 42,667 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
7 | 7 | 0 | 1.6 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
105 | 69 | 43 | 3.3 | zsh | - |
17 | 12 | 4 | 29.7 | bumpleak/osh | mut |
19 | 15 | 4 | 29.1 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 28.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 18 | 11 | 25.2 | osh-native | mut+alloc |
31 | 16 | 16 | 25.4 | osh-native | mut+alloc+free |
35 | 26 | 9 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 35 | 0 | 17.8 | osh-native | mut+alloc+free+gc+exit |
43 | 21 | 21 | 33.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 36 | 12 | 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 |
21 | 21 | 0 | 1.6 | dash | - |
77 | 73 | 4 | 3.3 | bash | - |
375 | 216 | 180 | 3.4 | zsh | - |
50 | 42 | 8 | 85.1 | bumpleak/osh | mut |
60 | 56 | 4 | 85.1 | _bin/cxx-opt+bumproot/osh | mut |
71 | 31 | 39 | 85.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 77 | 20 | 73.4 | osh-native | mut+alloc |
105 | 65 | 40 | 75.1 | osh-native | mut+alloc+free |
151 | 143 | 8 | 51.6 | osh-native | mut+alloc+free+gc |
154 | 138 | 16 | 52.1 | osh-native | mut+alloc+free+gc+exit |
140 | 100 | 40 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
212 | 192 | 20 | 73.3 | _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 | 0 | 7 | 3.3 | zsh | - |
6 | 6 | 0 | 10.5 | bumpleak/osh | mut |
7 | 3 | 3 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.0 | osh-native | mut+alloc |
9 | 3 | 6 | 10.0 | osh-native | mut+alloc+free |
9 | 4 | 4 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.7 | osh-native | mut+alloc+free+gc+exit |
11 | 6 | 6 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 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 | 25 | 4 | 3.0 | bash | - |
24 | 23 | 0 | 3.3 | zsh | - |
19 | 12 | 8 | 32.5 | bumpleak/osh | mut |
25 | 21 | 4 | 33.3 | _bin/cxx-opt+bumproot/osh | mut |
28 | 27 | 0 | 32.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 32 | 4 | 26.3 | osh-native | mut+alloc |
38 | 29 | 8 | 26.6 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
53 | 41 | 12 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
36 | 36 | 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 |
74 | 74 | 0 | 3.0 | bash | - |
167 | 97 | 69 | 55.6 | bumpleak/osh | mut |
180 | 116 | 64 | 56.1 | _bin/cxx-opt+bumproot/osh | mut |
193 | 112 | 80 | 55.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 117 | 93 | 47.1 | osh-native | mut+alloc |
216 | 160 | 56 | 48.9 | osh-native | mut+alloc+free |
179 | 135 | 44 | 8.5 | osh-native | mut+alloc+free+gc |
180 | 128 | 52 | 8.7 | osh-native | mut+alloc+free+gc+exit |
230 | 133 | 97 | 64.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
205 | 153 | 52 | 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 | 9 | 1 | 3.3 | dash | - |
20 | 11 | 9 | 4.3 | bash | - |
18 | 16 | 2 | 3.5 | zsh | - |
19 | 8 | 12 | 11.9 | bumpleak/osh | mut |
20 | 17 | 4 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
22 | 7 | 15 | 13.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 9 | 13 | 10.7 | osh-native | mut+alloc |
23 | 17 | 6 | 11.1 | osh-native | mut+alloc+free |
22 | 16 | 6 | 8.8 | osh-native | mut+alloc+free+gc |
23 | 15 | 8 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 15 | 10 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 18 | 8 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |