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.1 | 476,698 | 1,282 | 6 | 408,770 | 5 | 204,385 | osh-native |
parse.configure-coreutils | 157 | 25 | 68 | 44.6 | 49.8 | 1,653,286 | 4,764 | 12 | 1,030,654 | 6 | 769,411 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.7 | 101,889 | 180 | 2 | 75,112 | 1 | 37,556 | osh-native |
ex.compute-fib | 29 | 0 | 2 | 2.4 | 8.0 | 584,154 | 31,810 | 12 | 50,000 | 0 | 2,832 | osh-native |
ex.bashcomp-parse-help | 181 | 0 | 4 | 10.3 | 8.8 | 995,231 | 27,376 | 21 | 50,000 | 0 | 3,823 | osh-native |
ex.abuild-print-help | 23 | 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.6 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
105 | 62 | 49 | 3.4 | zsh | - |
16 | 16 | 0 | 29.7 | bumpleak/osh | mut |
20 | 17 | 3 | 28.8 | _bin/cxx-opt+bumproot/osh | mut |
23 | 19 | 4 | 30.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 17 | 13 | 25.3 | osh-native | mut+alloc |
32 | 16 | 16 | 25.4 | osh-native | mut+alloc+free |
37 | 28 | 8 | 18.1 | osh-native | mut+alloc+free+gc |
37 | 24 | 12 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 24 | 20 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
50 | 41 | 8 | 22.2 | _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 | 18 | 4 | 1.4 | dash | - |
78 | 78 | 0 | 3.1 | bash | - |
381 | 227 | 175 | 3.5 | zsh | - |
51 | 46 | 4 | 84.4 | bumpleak/osh | mut |
61 | 57 | 4 | 85.7 | _bin/cxx-opt+bumproot/osh | mut |
72 | 56 | 16 | 86.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 63 | 36 | 73.4 | osh-native | mut+alloc |
107 | 63 | 43 | 75.4 | osh-native | mut+alloc+free |
157 | 137 | 20 | 49.8 | osh-native | mut+alloc+free+gc |
161 | 136 | 24 | 50.5 | osh-native | mut+alloc+free+gc+exit |
140 | 100 | 40 | 99.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
219 | 190 | 28 | 67.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 | 0 | 2 | 1.3 | dash | - |
6 | 6 | 0 | 3.0 | bash | - |
8 | 8 | 0 | 3.1 | zsh | - |
6 | 6 | 0 | 10.9 | bumpleak/osh | mut |
7 | 3 | 3 | 11.3 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 11.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 3 | 6 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 10.0 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.3 | _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 | 3 | 7 | 1.4 | dash | - |
28 | 28 | 0 | 3.0 | bash | - |
24 | 16 | 8 | 3.3 | zsh | - |
20 | 16 | 4 | 31.5 | bumpleak/osh | mut |
26 | 19 | 7 | 31.4 | _bin/cxx-opt+bumproot/osh | mut |
28 | 20 | 8 | 32.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 29 | 8 | 26.2 | osh-native | mut+alloc |
39 | 19 | 19 | 26.5 | osh-native | mut+alloc+free |
29 | 29 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
55 | 24 | 31 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 34 | 4 | 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 |
73 | 69 | 4 | 2.9 | bash | - |
170 | 126 | 43 | 54.7 | bumpleak/osh | mut |
180 | 112 | 68 | 56.1 | _bin/cxx-opt+bumproot/osh | mut |
196 | 104 | 92 | 56.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 148 | 64 | 47.0 | osh-native | mut+alloc |
217 | 141 | 76 | 48.7 | osh-native | mut+alloc+free |
181 | 133 | 48 | 8.8 | osh-native | mut+alloc+free+gc |
181 | 140 | 40 | 8.7 | osh-native | mut+alloc+free+gc+exit |
232 | 144 | 88 | 64.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 124 | 84 | 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 | 10 | 1 | 3.5 | dash | - |
20 | 18 | 2 | 4.3 | bash | - |
18 | 13 | 6 | 3.4 | zsh | - |
18 | 6 | 13 | 13.4 | bumpleak/osh | mut |
20 | 17 | 3 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
21 | 6 | 16 | 12.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 12 | 10 | 10.9 | osh-native | mut+alloc |
23 | 14 | 10 | 11.1 | osh-native | mut+alloc+free |
23 | 17 | 7 | 9.0 | osh-native | mut+alloc+free+gc |
24 | 21 | 3 | 8.9 | osh-native | mut+alloc+free+gc+exit |
26 | 19 | 7 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 13 | 13 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |