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,711 | 1,282 | 6 | 408,792 | 5 | 204,396 | osh-native |
parse.configure-coreutils | 144 | 21 | 57 | 44.6 | 49.8 | 1,653,299 | 4,764 | 12 | 1,030,676 | 6 | 769,422 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,902 | 180 | 2 | 75,134 | 1 | 37,567 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.4 | 8.0 | 584,167 | 31,810 | 12 | 50,000 | 0 | 2,842 | osh-native |
ex.bashcomp-parse-help | 179 | 0 | 3 | 10.3 | 8.5 | 995,244 | 27,376 | 21 | 50,000 | 0 | 3,824 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 116,311 | 478 | 3 | 85,370 | 1 | 42,685 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 3 | 3 | 1.6 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
104 | 52 | 58 | 3.4 | zsh | - |
16 | 12 | 4 | 29.4 | bumpleak/osh | mut |
19 | 19 | 0 | 30.1 | _bin/cxx-opt+bumproot/osh | mut |
21 | 21 | 0 | 29.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 17 | 12 | 25.2 | osh-native | mut+alloc |
31 | 22 | 9 | 25.4 | osh-native | mut+alloc+free |
35 | 27 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 32 | 4 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 39 | 4 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 32 | 16 | 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.3 | bash | - |
377 | 238 | 160 | 3.4 | zsh | - |
48 | 36 | 12 | 84.9 | bumpleak/osh | mut |
60 | 48 | 12 | 84.9 | _bin/cxx-opt+bumproot/osh | mut |
70 | 61 | 8 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 64 | 32 | 73.4 | osh-native | mut+alloc |
104 | 84 | 20 | 75.3 | osh-native | mut+alloc+free |
144 | 107 | 36 | 49.8 | osh-native | mut+alloc+free+gc |
146 | 118 | 28 | 50.4 | osh-native | mut+alloc+free+gc+exit |
137 | 100 | 36 | 99.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
200 | 168 | 32 | 67.5 | _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 | 0 | 6 | 3.0 | bash | - |
8 | 0 | 7 | 3.3 | zsh | - |
6 | 3 | 3 | 10.9 | bumpleak/osh | mut |
7 | 0 | 7 | 11.9 | _bin/cxx-opt+bumproot/osh | mut |
7 | 0 | 7 | 11.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.0 | osh-native | mut+alloc |
9 | 8 | 0 | 10.0 | osh-native | mut+alloc+free |
9 | 3 | 6 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
11 | 11 | 0 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 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 | - |
28 | 28 | 0 | 2.9 | bash | - |
24 | 8 | 16 | 3.4 | zsh | - |
19 | 19 | 0 | 31.4 | bumpleak/osh | mut |
25 | 25 | 0 | 31.6 | _bin/cxx-opt+bumproot/osh | mut |
27 | 23 | 4 | 32.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 26.3 | osh-native | mut+alloc |
38 | 37 | 0 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
52 | 20 | 32 | 36.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 29 | 8 | 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 |
73 | 65 | 8 | 3.1 | bash | - |
169 | 118 | 51 | 55.0 | bumpleak/osh | mut |
181 | 118 | 63 | 54.8 | _bin/cxx-opt+bumproot/osh | mut |
192 | 132 | 60 | 56.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
208 | 140 | 68 | 47.0 | osh-native | mut+alloc |
215 | 147 | 68 | 48.6 | osh-native | mut+alloc+free |
179 | 131 | 48 | 8.5 | osh-native | mut+alloc+free+gc |
177 | 106 | 71 | 8.7 | osh-native | mut+alloc+free+gc+exit |
232 | 140 | 92 | 62.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
207 | 147 | 60 | 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 |
9 | 6 | 3 | 3.5 | dash | - |
19 | 17 | 2 | 4.5 | bash | - |
17 | 17 | 1 | 3.5 | zsh | - |
18 | 9 | 8 | 11.2 | bumpleak/osh | mut |
20 | 5 | 15 | 13.5 | _bin/cxx-opt+bumproot/osh | mut |
19 | 16 | 4 | 12.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
20 | 12 | 9 | 11.0 | osh-native | mut+alloc |
22 | 12 | 10 | 11.0 | osh-native | mut+alloc+free |
22 | 18 | 4 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 17 | 6 | 8.9 | osh-native | mut+alloc+free+gc+exit |
24 | 20 | 4 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 17 | 8 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |