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 | 42 | 6 | 15 | 12.0 | 17.7 | 476,690 | 1,282 | 6 | 408,762 | 5 | 204,381 | osh-native |
parse.configure-coreutils | 194 | 31 | 101 | 46.1 | 51.6 | 1,653,278 | 4,764 | 12 | 1,069,128 | 6 | 798,645 | osh-native |
parse.abuild | 10 | 1 | 1 | 2.6 | 8.5 | 101,881 | 180 | 2 | 75,104 | 1 | 37,552 | osh-native |
ex.compute-fib | 28 | 0 | 2 | 2.6 | 7.7 | 584,146 | 31,810 | 12 | 50,000 | 0 | 2,828 | osh-native |
ex.bashcomp-parse-help | 187 | 0 | 5 | 10.6 | 8.8 | 995,223 | 27,376 | 21 | 50,000 | 0 | 3,824 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.8 | 116,290 | 478 | 3 | 85,340 | 1 | 42,670 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
7 | 7 | 0 | 1.6 | dash | - |
24 | 23 | 0 | 3.0 | bash | - |
107 | 53 | 60 | 3.4 | zsh | - |
17 | 17 | 0 | 28.8 | bumpleak/osh | mut |
20 | 8 | 12 | 29.1 | _bin/cxx-opt+bumproot/osh | mut |
24 | 16 | 8 | 29.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 22 | 7 | 25.2 | osh-native | mut+alloc |
32 | 24 | 8 | 25.6 | osh-native | mut+alloc+free |
42 | 33 | 8 | 17.7 | osh-native | mut+alloc+free+gc |
41 | 36 | 4 | 17.8 | osh-native | mut+alloc+free+gc+exit |
44 | 24 | 20 | 33.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
63 | 55 | 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 | 17 | 4 | 1.4 | dash | - |
77 | 77 | 0 | 3.3 | bash | - |
384 | 180 | 225 | 3.5 | zsh | - |
49 | 38 | 11 | 84.8 | bumpleak/osh | mut |
60 | 48 | 12 | 84.8 | _bin/cxx-opt+bumproot/osh | mut |
70 | 47 | 23 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 70 | 27 | 73.6 | osh-native | mut+alloc |
108 | 76 | 32 | 75.3 | osh-native | mut+alloc+free |
194 | 169 | 24 | 51.6 | osh-native | mut+alloc+free+gc |
191 | 171 | 20 | 50.6 | osh-native | mut+alloc+free+gc+exit |
140 | 92 | 48 | 98.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
274 | 213 | 60 | 73.0 | _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 | 2.9 | bash | - |
8 | 0 | 8 | 3.3 | zsh | - |
6 | 6 | 0 | 10.3 | bumpleak/osh | mut |
7 | 0 | 7 | 10.7 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 11.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 3 | 6 | 10.1 | osh-native | mut+alloc |
9 | 3 | 6 | 10.2 | osh-native | mut+alloc+free |
10 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
13 | 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 | 7 | 3 | 1.6 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
24 | 20 | 4 | 3.4 | zsh | - |
19 | 0 | 19 | 31.6 | bumpleak/osh | mut |
26 | 22 | 4 | 32.1 | _bin/cxx-opt+bumproot/osh | mut |
28 | 18 | 11 | 31.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 18 | 18 | 26.3 | osh-native | mut+alloc |
40 | 35 | 4 | 26.7 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.7 | osh-native | mut+alloc+free+gc |
29 | 29 | 0 | 7.7 | osh-native | mut+alloc+free+gc+exit |
54 | 33 | 21 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
39 | 35 | 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 | 62 | 12 | 3.1 | bash | - |
170 | 133 | 36 | 55.0 | bumpleak/osh | mut |
179 | 135 | 45 | 56.1 | _bin/cxx-opt+bumproot/osh | mut |
198 | 121 | 77 | 55.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
215 | 139 | 76 | 47.1 | osh-native | mut+alloc |
227 | 131 | 95 | 48.9 | osh-native | mut+alloc+free |
187 | 131 | 56 | 8.8 | osh-native | mut+alloc+free+gc |
185 | 142 | 43 | 8.7 | osh-native | mut+alloc+free+gc+exit |
232 | 136 | 96 | 63.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
230 | 186 | 44 | 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 | 2 | 3.4 | dash | - |
21 | 16 | 5 | 4.5 | bash | - |
19 | 8 | 11 | 3.5 | zsh | - |
21 | 17 | 4 | 12.6 | bumpleak/osh | mut |
20 | 16 | 4 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
22 | 9 | 14 | 13.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
23 | 16 | 8 | 10.9 | osh-native | mut+alloc |
24 | 16 | 8 | 10.7 | osh-native | mut+alloc+free |
23 | 12 | 11 | 8.8 | osh-native | mut+alloc+free+gc |
24 | 24 | 1 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 11 | 15 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 25 | 2 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |