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 | 35 | 3 | 9 | 12.0 | 18.0 | 476,689 | 1,282 | 6 | 408,756 | 5 | 204,378 | osh-native |
parse.configure-coreutils | 153 | 24 | 63 | 46.1 | 51.6 | 1,653,277 | 4,764 | 12 | 1,069,122 | 6 | 798,642 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,880 | 180 | 2 | 75,098 | 1 | 37,549 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.6 | 7.6 | 584,145 | 31,810 | 12 | 50,000 | 0 | 2,826 | osh-native |
ex.bashcomp-parse-help | 181 | 0 | 3 | 10.6 | 8.7 | 995,222 | 27,376 | 21 | 50,000 | 0 | 3,821 | osh-native |
ex.abuild-print-help | 24 | 1 | 2 | 2.8 | 9.2 | 116,289 | 478 | 3 | 85,334 | 1 | 42,667 | 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.1 | bash | - |
105 | 64 | 47 | 3.4 | zsh | - |
16 | 12 | 4 | 29.0 | bumpleak/osh | mut |
20 | 16 | 4 | 29.9 | _bin/cxx-opt+bumproot/osh | mut |
23 | 18 | 4 | 30.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 17 | 13 | 25.0 | osh-native | mut+alloc |
31 | 23 | 8 | 25.7 | osh-native | mut+alloc+free |
35 | 31 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 32 | 4 | 17.7 | osh-native | mut+alloc+free+gc+exit |
43 | 23 | 19 | 31.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 44 | 4 | 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 | 78 | 0 | 3.1 | bash | - |
380 | 201 | 199 | 3.5 | zsh | - |
47 | 39 | 9 | 85.5 | bumpleak/osh | mut |
61 | 52 | 8 | 85.5 | _bin/cxx-opt+bumproot/osh | mut |
71 | 71 | 0 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 73 | 24 | 73.4 | osh-native | mut+alloc |
107 | 75 | 32 | 75.3 | osh-native | mut+alloc+free |
153 | 124 | 28 | 51.6 | osh-native | mut+alloc+free+gc |
154 | 126 | 28 | 52.2 | osh-native | mut+alloc+free+gc+exit |
139 | 86 | 53 | 98.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 185 | 24 | 71.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 | 3 | 3 | 3.0 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 0 | 6 | 11.1 | bumpleak/osh | mut |
7 | 4 | 4 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
8 | 0 | 8 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 0 | 8 | 10.1 | osh-native | mut+alloc |
8 | 8 | 0 | 10.0 | osh-native | mut+alloc+free |
9 | 0 | 9 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 4 | 7 | 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 | 10 | 0 | 1.4 | dash | - |
29 | 29 | 0 | 2.9 | bash | - |
23 | 12 | 12 | 3.3 | zsh | - |
19 | 19 | 0 | 31.0 | bumpleak/osh | mut |
26 | 18 | 7 | 32.5 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 22 | 15 | 26.5 | osh-native | mut+alloc |
38 | 33 | 4 | 26.7 | osh-native | mut+alloc+free |
28 | 24 | 4 | 7.6 | osh-native | mut+alloc+free+gc |
28 | 27 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 29 | 25 | 35.9 | _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 |
72 | 64 | 8 | 3.1 | bash | - |
168 | 116 | 52 | 55.5 | bumpleak/osh | mut |
180 | 120 | 60 | 54.3 | _bin/cxx-opt+bumproot/osh | mut |
195 | 135 | 60 | 55.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 160 | 52 | 47.1 | osh-native | mut+alloc |
217 | 149 | 68 | 48.8 | osh-native | mut+alloc+free |
181 | 136 | 44 | 8.7 | osh-native | mut+alloc+free+gc |
181 | 94 | 86 | 8.8 | osh-native | mut+alloc+free+gc+exit |
233 | 149 | 84 | 64.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 156 | 52 | 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 | 10 | 0 | 3.5 | dash | - |
20 | 17 | 3 | 4.3 | bash | - |
18 | 17 | 2 | 3.5 | zsh | - |
21 | 14 | 7 | 12.2 | bumpleak/osh | mut |
21 | 14 | 7 | 11.9 | _bin/cxx-opt+bumproot/osh | mut |
22 | 14 | 9 | 12.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
23 | 18 | 5 | 10.7 | osh-native | mut+alloc |
24 | 20 | 4 | 11.0 | osh-native | mut+alloc+free |
24 | 17 | 7 | 9.2 | osh-native | mut+alloc+free+gc |
24 | 19 | 5 | 8.7 | osh-native | mut+alloc+free+gc+exit |
26 | 24 | 3 | 12.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 17 | 9 | 9.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |