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,698 | 1,282 | 6 | 408,770 | 5 | 204,385 | osh-native |
parse.configure-coreutils | 149 | 23 | 62 | 44.6 | 49.9 | 1,653,286 | 4,764 | 12 | 1,030,654 | 6 | 769,411 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,889 | 180 | 2 | 75,112 | 1 | 37,556 | osh-native |
ex.compute-fib | 30 | 0 | 2 | 2.4 | 7.9 | 584,154 | 31,810 | 12 | 50,000 | 0 | 2,832 | osh-native |
ex.bashcomp-parse-help | 181 | 0 | 4 | 10.3 | 8.7 | 995,231 | 27,376 | 21 | 50,000 | 0 | 3,823 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,298 | 478 | 3 | 85,348 | 1 | 42,674 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.4 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
105 | 53 | 58 | 3.4 | zsh | - |
17 | 8 | 8 | 29.5 | bumpleak/osh | mut |
20 | 19 | 0 | 29.7 | _bin/cxx-opt+bumproot/osh | mut |
23 | 19 | 4 | 29.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 7 | 22 | 25.2 | osh-native | mut+alloc |
31 | 19 | 12 | 25.6 | osh-native | mut+alloc+free |
36 | 28 | 8 | 17.8 | osh-native | mut+alloc+free+gc |
37 | 28 | 8 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 34 | 9 | 32.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 40 | 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 | 78 | 0 | 3.1 | bash | - |
376 | 241 | 157 | 3.5 | zsh | - |
48 | 41 | 7 | 85.4 | bumpleak/osh | mut |
61 | 56 | 4 | 86.2 | _bin/cxx-opt+bumproot/osh | mut |
70 | 62 | 8 | 85.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 65 | 32 | 73.4 | osh-native | mut+alloc |
106 | 86 | 20 | 75.2 | osh-native | mut+alloc+free |
149 | 120 | 28 | 49.9 | osh-native | mut+alloc+free+gc |
153 | 132 | 20 | 50.6 | osh-native | mut+alloc+free+gc+exit |
138 | 83 | 55 | 99.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 178 | 32 | 67.1 | _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 | 11.5 | bumpleak/osh | mut |
7 | 3 | 3 | 11.0 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.0 | osh-native | mut+alloc |
8 | 0 | 8 | 9.8 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 11 | 0 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 11 | 0 | 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 | 3.0 | bash | - |
24 | 20 | 4 | 3.1 | zsh | - |
19 | 15 | 4 | 30.9 | bumpleak/osh | mut |
26 | 18 | 7 | 32.1 | _bin/cxx-opt+bumproot/osh | mut |
37 | 33 | 4 | 32.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 32 | 4 | 26.2 | osh-native | mut+alloc |
37 | 33 | 4 | 26.3 | osh-native | mut+alloc+free |
30 | 30 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.7 | osh-native | mut+alloc+free+gc+exit |
54 | 27 | 27 | 36.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.5 | _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 | 73 | 0 | 3.1 | bash | - |
169 | 108 | 60 | 53.9 | bumpleak/osh | mut |
181 | 137 | 44 | 55.4 | _bin/cxx-opt+bumproot/osh | mut |
191 | 115 | 75 | 56.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 144 | 68 | 46.9 | osh-native | mut+alloc |
218 | 158 | 59 | 48.7 | osh-native | mut+alloc+free |
181 | 129 | 52 | 8.7 | osh-native | mut+alloc+free+gc |
181 | 128 | 52 | 8.7 | osh-native | mut+alloc+free+gc+exit |
231 | 137 | 93 | 63.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 172 | 36 | 9.9 | _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.5 | dash | - |
20 | 17 | 3 | 4.3 | bash | - |
18 | 10 | 8 | 3.5 | zsh | - |
20 | 13 | 7 | 12.5 | bumpleak/osh | mut |
19 | 13 | 7 | 12.2 | _bin/cxx-opt+bumproot/osh | mut |
20 | 17 | 4 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 12 | 9 | 11.0 | osh-native | mut+alloc |
22 | 11 | 11 | 11.1 | osh-native | mut+alloc+free |
22 | 17 | 5 | 9.0 | osh-native | mut+alloc+free+gc |
24 | 14 | 10 | 8.9 | osh-native | mut+alloc+free+gc+exit |
24 | 11 | 14 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 16 | 9 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |