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 | 38 | 4 | 11 | 12.0 | 17.7 | 476,689 | 1,282 | 6 | 408,756 | 5 | 204,378 | osh-native |
parse.configure-coreutils | 175 | 28 | 85 | 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.3 | 101,880 | 180 | 2 | 75,098 | 1 | 37,549 | osh-native |
ex.compute-fib | 28 | 0 | 2 | 2.6 | 8.0 | 584,145 | 31,810 | 12 | 50,000 | 0 | 2,826 | osh-native |
ex.bashcomp-parse-help | 186 | 0 | 4 | 10.6 | 8.4 | 995,222 | 27,376 | 21 | 50,000 | 0 | 3,821 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.8 | 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.4 | dash | - |
24 | 23 | 0 | 3.1 | bash | - |
106 | 60 | 53 | 3.3 | zsh | - |
16 | 12 | 4 | 28.7 | bumpleak/osh | mut |
20 | 20 | 0 | 28.9 | _bin/cxx-opt+bumproot/osh | mut |
23 | 11 | 11 | 28.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 30 | 0 | 25.2 | osh-native | mut+alloc |
32 | 12 | 20 | 25.4 | osh-native | mut+alloc+free |
38 | 23 | 15 | 17.7 | osh-native | mut+alloc+free+gc |
37 | 25 | 12 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 32 | 12 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
51 | 35 | 16 | 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 | 21 | 0 | 1.4 | dash | - |
77 | 73 | 4 | 3.1 | bash | - |
381 | 234 | 168 | 3.4 | zsh | - |
49 | 41 | 8 | 84.0 | bumpleak/osh | mut |
60 | 52 | 8 | 84.6 | _bin/cxx-opt+bumproot/osh | mut |
70 | 66 | 4 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 71 | 28 | 73.5 | osh-native | mut+alloc |
108 | 72 | 36 | 75.4 | osh-native | mut+alloc+free |
175 | 151 | 24 | 51.6 | osh-native | mut+alloc+free+gc |
177 | 149 | 28 | 52.3 | osh-native | mut+alloc+free+gc+exit |
142 | 91 | 51 | 98.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
242 | 197 | 44 | 72.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.4 | dash | - |
6 | 3 | 3 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 0 | 6 | 10.4 | bumpleak/osh | mut |
7 | 3 | 3 | 10.9 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc |
9 | 5 | 5 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.3 | osh-native | mut+alloc+free+gc |
10 | 10 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 12 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 4 | 8 | 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 |
12 | 8 | 4 | 1.4 | dash | - |
30 | 25 | 4 | 3.0 | bash | - |
24 | 16 | 8 | 3.1 | zsh | - |
19 | 15 | 4 | 32.6 | bumpleak/osh | mut |
25 | 21 | 4 | 33.1 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 33.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 29 | 8 | 26.3 | osh-native | mut+alloc |
39 | 27 | 12 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 25 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
55 | 39 | 16 | 36.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 37 | 0 | 9.5 | _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 |
75 | 74 | 0 | 3.1 | bash | - |
169 | 108 | 60 | 54.7 | bumpleak/osh | mut |
181 | 108 | 72 | 55.8 | _bin/cxx-opt+bumproot/osh | mut |
196 | 132 | 64 | 55.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
217 | 132 | 84 | 47.2 | osh-native | mut+alloc |
226 | 141 | 85 | 48.9 | osh-native | mut+alloc+free |
186 | 142 | 44 | 8.4 | osh-native | mut+alloc+free+gc |
184 | 120 | 64 | 8.5 | osh-native | mut+alloc+free+gc+exit |
238 | 134 | 103 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
217 | 145 | 72 | 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 | 6 | 4 | 3.4 | dash | - |
20 | 12 | 8 | 4.5 | bash | - |
18 | 10 | 8 | 3.4 | zsh | - |
19 | 9 | 10 | 11.4 | bumpleak/osh | mut |
20 | 15 | 5 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
23 | 20 | 4 | 13.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
23 | 11 | 12 | 11.0 | osh-native | mut+alloc |
23 | 13 | 10 | 11.1 | osh-native | mut+alloc+free |
23 | 16 | 7 | 8.8 | osh-native | mut+alloc+free+gc |
24 | 15 | 9 | 9.0 | osh-native | mut+alloc+free+gc+exit |
26 | 12 | 14 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 20 | 6 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |