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 | 147 | 22 | 60 | 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.4 | 101,880 | 180 | 2 | 75,098 | 1 | 37,549 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.6 | 8.0 | 584,145 | 31,810 | 12 | 50,000 | 0 | 2,826 | osh-native |
ex.bashcomp-parse-help | 180 | 0 | 3 | 10.6 | 8.8 | 995,222 | 27,376 | 21 | 50,000 | 0 | 3,821 | osh-native |
ex.abuild-print-help | 22 | 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 | - |
23 | 19 | 4 | 2.9 | bash | - |
103 | 50 | 59 | 3.4 | zsh | - |
17 | 13 | 4 | 29.8 | bumpleak/osh | mut |
19 | 14 | 5 | 29.5 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 28.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 8 | 21 | 25.2 | osh-native | mut+alloc |
31 | 19 | 11 | 25.6 | osh-native | mut+alloc+free |
35 | 34 | 0 | 18.0 | osh-native | mut+alloc+free+gc |
35 | 27 | 9 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 31 | 12 | 33.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
46 | 41 | 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.4 | dash | - |
78 | 78 | 0 | 3.3 | bash | - |
374 | 187 | 210 | 3.7 | zsh | - |
49 | 38 | 11 | 85.0 | bumpleak/osh | mut |
59 | 51 | 8 | 84.9 | _bin/cxx-opt+bumproot/osh | mut |
71 | 44 | 28 | 85.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 72 | 24 | 73.4 | osh-native | mut+alloc |
103 | 51 | 51 | 75.4 | osh-native | mut+alloc+free |
147 | 118 | 29 | 51.4 | osh-native | mut+alloc+free+gc |
152 | 128 | 24 | 52.2 | osh-native | mut+alloc+free+gc+exit |
140 | 92 | 48 | 98.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
201 | 181 | 20 | 71.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 | 6 | 0 | 3.0 | bash | - |
8 | 7 | 0 | 3.4 | zsh | - |
6 | 6 | 0 | 10.5 | bumpleak/osh | mut |
6 | 3 | 3 | 10.7 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 12.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 0 | 8 | 10.1 | osh-native | mut+alloc |
8 | 3 | 6 | 10.2 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 4 | 4 | 8.8 | osh-native | mut+alloc+free+gc+exit |
11 | 11 | 0 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 11 | 0 | 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 |
11 | 11 | 0 | 1.4 | dash | - |
28 | 28 | 0 | 2.9 | bash | - |
27 | 23 | 4 | 3.3 | zsh | - |
19 | 15 | 4 | 32.2 | bumpleak/osh | mut |
25 | 21 | 4 | 33.0 | _bin/cxx-opt+bumproot/osh | mut |
27 | 23 | 4 | 32.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 26.2 | osh-native | mut+alloc |
38 | 29 | 8 | 26.9 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 31 | 23 | 35.9 | _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 |
73 | 64 | 8 | 3.1 | bash | - |
162 | 110 | 51 | 54.0 | bumpleak/osh | mut |
172 | 136 | 36 | 56.4 | _bin/cxx-opt+bumproot/osh | mut |
192 | 124 | 68 | 55.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
206 | 135 | 71 | 46.9 | osh-native | mut+alloc |
222 | 141 | 81 | 48.8 | osh-native | mut+alloc+free |
180 | 120 | 60 | 8.8 | osh-native | mut+alloc+free+gc |
175 | 107 | 67 | 8.8 | osh-native | mut+alloc+free+gc+exit |
231 | 151 | 79 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
207 | 135 | 72 | 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 | - |
19 | 13 | 7 | 4.5 | bash | - |
17 | 13 | 5 | 3.5 | zsh | - |
19 | 17 | 2 | 11.8 | bumpleak/osh | mut |
20 | 18 | 2 | 12.8 | _bin/cxx-opt+bumproot/osh | mut |
20 | 11 | 10 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 19 | 3 | 10.9 | osh-native | mut+alloc |
22 | 11 | 12 | 10.7 | osh-native | mut+alloc+free |
22 | 12 | 11 | 8.8 | osh-native | mut+alloc+free+gc |
23 | 13 | 10 | 8.8 | osh-native | mut+alloc+free+gc+exit |
24 | 15 | 10 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 18 | 7 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |