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,676 | 1,282 | 6 | 408,744 | 5 | 204,372 | osh-native |
parse.configure-coreutils | 153 | 26 | 66 | 46.1 | 51.4 | 1,653,264 | 4,764 | 12 | 1,069,110 | 6 | 798,636 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,867 | 180 | 2 | 75,086 | 1 | 37,543 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.6 | 7.6 | 584,128 | 31,810 | 12 | 50,000 | 0 | 2,818 | osh-native |
ex.bashcomp-parse-help | 184 | 0 | 3 | 12.3 | 8.8 | 1,002,882 | 27,376 | 21 | 50,000 | 0 | 3,802 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.8 | 116,069 | 478 | 3 | 85,320 | 1 | 42,660 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
103 | 71 | 39 | 3.5 | zsh | - |
17 | 8 | 8 | 29.8 | bumpleak/osh | mut |
20 | 20 | 0 | 28.8 | _bin/cxx-opt+bumproot/osh | mut |
23 | 19 | 4 | 28.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 25 | 4 | 25.0 | osh-native | mut+alloc |
31 | 16 | 16 | 25.3 | osh-native | mut+alloc+free |
35 | 31 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 37 | 0 | 17.8 | osh-native | mut+alloc+free+gc+exit |
43 | 38 | 4 | 32.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 32 | 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 | 21 | 0 | 1.6 | dash | - |
78 | 74 | 4 | 3.1 | bash | - |
372 | 208 | 186 | 3.5 | zsh | - |
48 | 40 | 8 | 85.2 | bumpleak/osh | mut |
61 | 56 | 4 | 85.2 | _bin/cxx-opt+bumproot/osh | mut |
70 | 51 | 19 | 85.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 55 | 43 | 73.3 | osh-native | mut+alloc |
105 | 89 | 16 | 75.3 | osh-native | mut+alloc+free |
153 | 141 | 12 | 51.4 | osh-native | mut+alloc+free+gc |
159 | 127 | 32 | 52.3 | osh-native | mut+alloc+free+gc+exit |
139 | 107 | 32 | 99.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
219 | 166 | 53 | 73.4 | _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 | 2.9 | bash | - |
8 | 0 | 7 | 3.3 | zsh | - |
6 | 6 | 0 | 10.2 | bumpleak/osh | mut |
7 | 7 | 0 | 11.8 | _bin/cxx-opt+bumproot/osh | mut |
8 | 8 | 0 | 12.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.0 | osh-native | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native | mut+alloc+free |
9 | 3 | 6 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.4 | osh-native | mut+alloc+free+gc+exit |
12 | 12 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 11 | 0 | 9.4 | _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.4 | dash | - |
28 | 24 | 4 | 2.9 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
19 | 15 | 4 | 32.9 | bumpleak/osh | mut |
26 | 21 | 4 | 32.1 | _bin/cxx-opt+bumproot/osh | mut |
28 | 28 | 0 | 32.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 20 | 16 | 26.1 | osh-native | mut+alloc |
38 | 27 | 11 | 26.5 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.6 | osh-native | mut+alloc+free+gc |
29 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 30 | 23 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 29 | 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 | - |
168 | 88 | 80 | 56.2 | bumpleak/osh | mut |
178 | 109 | 69 | 57.8 | _bin/cxx-opt+bumproot/osh | mut |
195 | 119 | 76 | 57.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 125 | 85 | 48.9 | osh-native | mut+alloc |
218 | 147 | 71 | 50.6 | osh-native | mut+alloc+free |
184 | 144 | 40 | 8.8 | osh-native | mut+alloc+free+gc |
181 | 132 | 48 | 8.7 | osh-native | mut+alloc+free+gc+exit |
229 | 156 | 72 | 65.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
207 | 146 | 61 | 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 | 8 | 2 | 3.5 | dash | - |
19 | 15 | 4 | 4.3 | bash | - |
17 | 7 | 10 | 3.5 | zsh | - |
20 | 15 | 5 | 12.5 | bumpleak/osh | mut |
20 | 20 | 0 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
20 | 6 | 15 | 12.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 16 | 5 | 11.0 | osh-native | mut+alloc |
22 | 16 | 7 | 11.0 | osh-native | mut+alloc+free |
22 | 22 | 0 | 8.8 | osh-native | mut+alloc+free+gc |
23 | 19 | 5 | 8.8 | osh-native | mut+alloc+free+gc+exit |
25 | 13 | 12 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 12 | 14 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |