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 | 11 | 12.0 | 18.0 | 476,685 | 1,282 | 6 | 408,756 | 5 | 204,378 | osh-native |
parse.configure-coreutils | 177 | 28 | 88 | 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 | 29 | 0 | 2 | 2.6 | 7.7 | 584,141 | 31,810 | 12 | 50,000 | 0 | 2,826 | osh-native |
ex.bashcomp-parse-help | 180 | 0 | 4 | 10.6 | 8.7 | 995,218 | 27,376 | 21 | 50,000 | 0 | 3,821 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.0 | 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 | 3 | 3 | 1.6 | dash | - |
23 | 23 | 0 | 3.1 | bash | - |
106 | 70 | 43 | 3.3 | zsh | - |
16 | 12 | 4 | 29.4 | bumpleak/osh | mut |
20 | 16 | 4 | 29.5 | _bin/cxx-opt+bumproot/osh | mut |
23 | 15 | 8 | 30.0 | _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 |
37 | 33 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
38 | 33 | 4 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 31 | 12 | 33.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
50 | 41 | 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 |
22 | 21 | 0 | 1.6 | dash | - |
78 | 74 | 4 | 3.1 | bash | - |
376 | 222 | 174 | 3.5 | zsh | - |
49 | 34 | 15 | 84.1 | bumpleak/osh | mut |
60 | 56 | 4 | 85.4 | _bin/cxx-opt+bumproot/osh | mut |
70 | 46 | 23 | 86.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 59 | 39 | 73.4 | osh-native | mut+alloc |
108 | 64 | 44 | 75.3 | osh-native | mut+alloc+free |
177 | 157 | 20 | 51.6 | osh-native | mut+alloc+free+gc |
173 | 141 | 31 | 52.3 | osh-native | mut+alloc+free+gc+exit |
139 | 90 | 49 | 97.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
238 | 174 | 63 | 73.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 | 2 | 0 | 1.4 | dash | - |
6 | 6 | 0 | 3.0 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 0 | 6 | 10.4 | bumpleak/osh | mut |
7 | 3 | 3 | 11.4 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 10.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 10.0 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
10 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 12 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 0 | 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 | 7 | 3 | 1.4 | dash | - |
28 | 28 | 0 | 3.0 | bash | - |
24 | 8 | 16 | 3.3 | zsh | - |
20 | 19 | 0 | 32.5 | bumpleak/osh | mut |
26 | 17 | 8 | 32.1 | _bin/cxx-opt+bumproot/osh | mut |
28 | 28 | 0 | 31.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 26 | 11 | 26.3 | osh-native | mut+alloc |
39 | 27 | 12 | 26.7 | osh-native | mut+alloc+free |
29 | 24 | 4 | 7.7 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
55 | 42 | 13 | 35.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 30 | 7 | 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 |
72 | 60 | 12 | 3.1 | bash | - |
169 | 116 | 52 | 54.8 | bumpleak/osh | mut |
187 | 142 | 45 | 54.4 | _bin/cxx-opt+bumproot/osh | mut |
208 | 152 | 56 | 56.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 125 | 85 | 46.9 | osh-native | mut+alloc |
217 | 157 | 60 | 48.8 | osh-native | mut+alloc+free |
180 | 128 | 52 | 8.7 | osh-native | mut+alloc+free+gc |
181 | 124 | 56 | 8.7 | osh-native | mut+alloc+free+gc+exit |
235 | 162 | 73 | 62.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 152 | 56 | 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 | 2 | 3.5 | dash | - |
20 | 11 | 9 | 4.3 | bash | - |
18 | 15 | 4 | 3.5 | zsh | - |
20 | 13 | 7 | 12.5 | bumpleak/osh | mut |
22 | 15 | 8 | 13.2 | _bin/cxx-opt+bumproot/osh | mut |
21 | 13 | 8 | 11.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 11 | 11 | 11.0 | osh-native | mut+alloc |
23 | 16 | 7 | 11.1 | osh-native | mut+alloc+free |
23 | 15 | 8 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 13 | 11 | 8.8 | osh-native | mut+alloc+free+gc+exit |
25 | 14 | 11 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 21 | 5 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |