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 | 17.7 | 476,690 | 1,282 | 6 | 408,762 | 5 | 204,381 | osh-native |
parse.configure-coreutils | 160 | 27 | 72 | 46.1 | 51.4 | 1,653,278 | 4,764 | 12 | 1,069,128 | 6 | 798,645 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,881 | 180 | 2 | 75,104 | 1 | 37,552 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.6 | 7.9 | 584,146 | 31,810 | 12 | 50,000 | 0 | 2,828 | osh-native |
ex.bashcomp-parse-help | 180 | 0 | 3 | 10.6 | 8.7 | 995,223 | 27,376 | 21 | 50,000 | 0 | 3,824 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.9 | 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 |
6 | 6 | 0 | 1.6 | dash | - |
23 | 19 | 4 | 3.1 | bash | - |
106 | 84 | 28 | 3.4 | zsh | - |
16 | 16 | 0 | 29.6 | bumpleak/osh | mut |
19 | 15 | 4 | 28.5 | _bin/cxx-opt+bumproot/osh | mut |
22 | 22 | 0 | 29.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 21 | 8 | 25.2 | osh-native | mut+alloc |
32 | 20 | 12 | 25.6 | osh-native | mut+alloc+free |
37 | 37 | 0 | 17.7 | osh-native | mut+alloc+free+gc |
36 | 32 | 4 | 17.8 | osh-native | mut+alloc+free+gc+exit |
44 | 28 | 16 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
50 | 33 | 16 | 22.0 | _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.6 | dash | - |
78 | 74 | 4 | 3.1 | bash | - |
379 | 235 | 166 | 3.4 | zsh | - |
50 | 46 | 4 | 84.1 | bumpleak/osh | mut |
59 | 50 | 8 | 85.2 | _bin/cxx-opt+bumproot/osh | mut |
70 | 62 | 8 | 84.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 49 | 49 | 73.6 | osh-native | mut+alloc |
104 | 80 | 24 | 75.3 | osh-native | mut+alloc+free |
160 | 144 | 16 | 51.4 | osh-native | mut+alloc+free+gc |
156 | 136 | 20 | 50.6 | osh-native | mut+alloc+free+gc+exit |
140 | 96 | 44 | 98.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
218 | 173 | 44 | 72.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 | 8 | 0 | 3.4 | zsh | - |
6 | 3 | 3 | 11.0 | bumpleak/osh | mut |
7 | 4 | 4 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 11.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 8 | 0 | 10.1 | osh-native | mut+alloc |
9 | 4 | 4 | 10.2 | osh-native | mut+alloc+free |
9 | 4 | 4 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.5 | 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 | 7 | 3 | 1.4 | dash | - |
29 | 28 | 0 | 2.9 | bash | - |
24 | 12 | 12 | 3.3 | zsh | - |
19 | 4 | 15 | 31.6 | bumpleak/osh | mut |
25 | 17 | 8 | 31.7 | _bin/cxx-opt+bumproot/osh | mut |
29 | 24 | 4 | 32.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.5 | osh-native | mut+alloc |
38 | 23 | 15 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
29 | 29 | 0 | 7.7 | osh-native | mut+alloc+free+gc+exit |
54 | 37 | 16 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 37 | 0 | 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 | 3.3 | bash | - |
169 | 116 | 52 | 54.3 | bumpleak/osh | mut |
177 | 120 | 56 | 55.6 | _bin/cxx-opt+bumproot/osh | mut |
196 | 128 | 68 | 55.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 148 | 64 | 47.1 | osh-native | mut+alloc |
218 | 133 | 85 | 48.9 | osh-native | mut+alloc+free |
180 | 160 | 20 | 8.7 | osh-native | mut+alloc+free+gc |
181 | 140 | 40 | 8.7 | osh-native | mut+alloc+free+gc+exit |
232 | 148 | 84 | 64.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 163 | 45 | 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 | 1 | 3.3 | dash | - |
20 | 17 | 3 | 4.5 | bash | - |
18 | 6 | 12 | 3.5 | zsh | - |
20 | 11 | 9 | 11.9 | bumpleak/osh | mut |
21 | 13 | 8 | 13.0 | _bin/cxx-opt+bumproot/osh | mut |
21 | 17 | 4 | 12.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 10 | 12 | 10.9 | osh-native | mut+alloc |
23 | 14 | 10 | 10.9 | osh-native | mut+alloc+free |
23 | 17 | 6 | 8.9 | osh-native | mut+alloc+free+gc |
24 | 14 | 10 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 17 | 8 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 24 | 2 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |