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 | 18.0 | 476,690 | 1,282 | 6 | 408,762 | 5 | 204,381 | osh-native |
parse.configure-coreutils | 165 | 26 | 75 | 46.1 | 51.5 | 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 | 29 | 0 | 2 | 2.6 | 7.9 | 584,146 | 31,810 | 12 | 50,000 | 0 | 2,828 | osh-native |
ex.bashcomp-parse-help | 182 | 0 | 4 | 10.6 | 8.5 | 995,223 | 27,376 | 21 | 50,000 | 0 | 3,824 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.5 | 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 | 6 | 0 | 1.6 | dash | - |
24 | 20 | 4 | 3.1 | bash | - |
104 | 52 | 59 | 3.4 | zsh | - |
16 | 12 | 4 | 28.2 | bumpleak/osh | mut |
20 | 19 | 0 | 30.2 | _bin/cxx-opt+bumproot/osh | mut |
23 | 14 | 9 | 29.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 21 | 9 | 25.0 | osh-native | mut+alloc |
32 | 24 | 8 | 25.6 | osh-native | mut+alloc+free |
36 | 32 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 30 | 7 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 28 | 16 | 32.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
51 | 39 | 12 | 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 |
21 | 21 | 0 | 1.4 | dash | - |
78 | 74 | 4 | 3.3 | bash | - |
388 | 216 | 190 | 3.5 | zsh | - |
49 | 41 | 8 | 84.2 | bumpleak/osh | mut |
62 | 54 | 8 | 85.4 | _bin/cxx-opt+bumproot/osh | mut |
70 | 61 | 8 | 85.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 65 | 32 | 73.4 | osh-native | mut+alloc |
105 | 69 | 36 | 75.1 | osh-native | mut+alloc+free |
165 | 136 | 28 | 51.5 | osh-native | mut+alloc+free+gc |
163 | 139 | 24 | 50.5 | osh-native | mut+alloc+free+gc+exit |
140 | 96 | 44 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
235 | 187 | 48 | 73.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 | 0 | 2 | 1.4 | dash | - |
6 | 6 | 0 | 2.9 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 6 | 0 | 12.1 | bumpleak/osh | mut |
7 | 7 | 0 | 11.5 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 10.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 3 | 6 | 9.8 | osh-native | mut+alloc |
9 | 0 | 9 | 10.2 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc+exit |
12 | 12 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 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 |
11 | 7 | 4 | 1.4 | dash | - |
29 | 25 | 4 | 2.9 | bash | - |
24 | 23 | 0 | 3.3 | zsh | - |
19 | 19 | 0 | 31.1 | bumpleak/osh | mut |
26 | 25 | 0 | 31.9 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 26 | 11 | 26.3 | osh-native | mut+alloc |
39 | 17 | 21 | 26.6 | osh-native | mut+alloc+free |
29 | 20 | 8 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
55 | 43 | 12 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 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 |
74 | 73 | 0 | 3.1 | bash | - |
168 | 116 | 52 | 54.2 | bumpleak/osh | mut |
180 | 136 | 44 | 54.4 | _bin/cxx-opt+bumproot/osh | mut |
196 | 127 | 68 | 55.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 132 | 80 | 47.0 | osh-native | mut+alloc |
220 | 163 | 57 | 48.9 | osh-native | mut+alloc+free |
182 | 123 | 59 | 8.5 | osh-native | mut+alloc+free+gc |
182 | 145 | 36 | 8.5 | osh-native | mut+alloc+free+gc+exit |
234 | 157 | 76 | 64.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
213 | 168 | 44 | 10.1 | _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.4 | dash | - |
20 | 12 | 8 | 4.5 | bash | - |
18 | 7 | 12 | 3.4 | zsh | - |
19 | 14 | 5 | 11.6 | bumpleak/osh | mut |
20 | 14 | 6 | 11.8 | _bin/cxx-opt+bumproot/osh | mut |
21 | 16 | 6 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 15 | 8 | 10.7 | osh-native | mut+alloc |
23 | 11 | 13 | 11.1 | osh-native | mut+alloc+free |
23 | 14 | 9 | 8.5 | osh-native | mut+alloc+free+gc |
23 | 19 | 5 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 23 | 3 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 23 | 3 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |