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 | 9 | 12.0 | 17.7 | 476,689 | 1,282 | 6 | 408,756 | 5 | 204,378 | osh-native |
parse.configure-coreutils | 163 | 26 | 74 | 46.1 | 51.4 | 1,653,277 | 4,764 | 12 | 1,069,122 | 6 | 798,642 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,880 | 180 | 2 | 75,098 | 1 | 37,549 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.7 | 7.9 | 584,145 | 31,810 | 12 | 50,000 | 0 | 2,826 | osh-native |
ex.bashcomp-parse-help | 181 | 0 | 4 | 10.6 | 8.7 | 995,222 | 27,376 | 21 | 50,000 | 0 | 3,821 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.9 | 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.0 | bash | - |
105 | 66 | 46 | 3.4 | zsh | - |
17 | 10 | 7 | 29.5 | bumpleak/osh | mut |
20 | 4 | 16 | 28.8 | _bin/cxx-opt+bumproot/osh | mut |
22 | 19 | 4 | 29.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 9 | 21 | 25.0 | osh-native | mut+alloc |
32 | 32 | 0 | 25.6 | osh-native | mut+alloc+free |
36 | 20 | 16 | 17.7 | osh-native | mut+alloc+free+gc |
37 | 32 | 4 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 28 | 16 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 45 | 4 | 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.6 | dash | - |
77 | 77 | 0 | 3.3 | bash | - |
381 | 191 | 210 | 3.5 | zsh | - |
49 | 41 | 8 | 85.7 | bumpleak/osh | mut |
60 | 51 | 8 | 86.0 | _bin/cxx-opt+bumproot/osh | mut |
70 | 66 | 4 | 85.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 51 | 47 | 73.5 | osh-native | mut+alloc |
108 | 56 | 52 | 75.3 | osh-native | mut+alloc+free |
163 | 139 | 24 | 51.4 | osh-native | mut+alloc+free+gc |
178 | 141 | 36 | 52.1 | osh-native | mut+alloc+free+gc+exit |
140 | 96 | 44 | 98.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
226 | 205 | 20 | 73.9 | _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 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 3 | 3 | 10.3 | bumpleak/osh | mut |
7 | 0 | 7 | 11.2 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.0 | osh-native | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 5 | 5 | 8.5 | osh-native | mut+alloc+free+gc |
10 | 10 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.5 | _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 |
10 | 10 | 0 | 1.6 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
24 | 12 | 12 | 3.3 | zsh | - |
20 | 0 | 20 | 32.5 | bumpleak/osh | mut |
27 | 19 | 7 | 33.0 | _bin/cxx-opt+bumproot/osh | mut |
29 | 14 | 14 | 32.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 25 | 12 | 26.6 | osh-native | mut+alloc |
39 | 23 | 15 | 26.7 | osh-native | mut+alloc+free |
28 | 18 | 11 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
55 | 43 | 12 | 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 |
72 | 64 | 8 | 3.0 | bash | - |
167 | 115 | 52 | 54.1 | bumpleak/osh | mut |
180 | 124 | 56 | 55.5 | _bin/cxx-opt+bumproot/osh | mut |
194 | 137 | 56 | 56.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 148 | 64 | 47.0 | osh-native | mut+alloc |
219 | 143 | 76 | 49.0 | osh-native | mut+alloc+free |
181 | 125 | 56 | 8.7 | osh-native | mut+alloc+free+gc |
182 | 118 | 63 | 8.8 | osh-native | mut+alloc+free+gc+exit |
234 | 139 | 95 | 62.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 138 | 71 | 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 | 8 | 2 | 3.4 | dash | - |
20 | 19 | 2 | 4.5 | bash | - |
18 | 12 | 6 | 3.4 | zsh | - |
19 | 11 | 8 | 11.5 | bumpleak/osh | mut |
20 | 11 | 9 | 13.7 | _bin/cxx-opt+bumproot/osh | mut |
21 | 17 | 4 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 15 | 8 | 10.7 | osh-native | mut+alloc |
24 | 14 | 10 | 11.0 | osh-native | mut+alloc+free |
23 | 16 | 8 | 8.9 | osh-native | mut+alloc+free+gc |
24 | 11 | 13 | 8.7 | osh-native | mut+alloc+free+gc+exit |
25 | 14 | 11 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 25 | 2 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |