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 | 10 | 12.0 | 18.0 | 476,711 | 1,282 | 6 | 408,792 | 5 | 204,396 | osh-native |
parse.configure-coreutils | 150 | 23 | 64 | 44.6 | 49.9 | 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 | 29 | 0 | 2 | 2.4 | 8.0 | 584,167 | 31,810 | 12 | 50,000 | 0 | 2,842 | osh-native |
ex.bashcomp-parse-help | 181 | 0 | 4 | 10.3 | 8.7 | 995,244 | 27,376 | 21 | 50,000 | 0 | 3,824 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 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 | 6 | 0 | 1.6 | dash | - |
24 | 23 | 0 | 3.0 | bash | - |
106 | 54 | 58 | 3.4 | zsh | - |
16 | 16 | 0 | 29.9 | bumpleak/osh | mut |
19 | 11 | 8 | 29.1 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 29.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 17 | 13 | 25.3 | osh-native | mut+alloc |
32 | 20 | 12 | 25.6 | osh-native | mut+alloc+free |
36 | 32 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 33 | 4 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 30 | 13 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 48 | 0 | 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 |
21 | 21 | 0 | 1.4 | dash | - |
78 | 78 | 0 | 3.1 | bash | - |
377 | 220 | 177 | 3.5 | zsh | - |
49 | 40 | 8 | 84.7 | bumpleak/osh | mut |
60 | 48 | 12 | 85.1 | _bin/cxx-opt+bumproot/osh | mut |
70 | 53 | 16 | 86.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 71 | 28 | 73.6 | osh-native | mut+alloc |
106 | 65 | 41 | 75.3 | osh-native | mut+alloc+free |
150 | 126 | 24 | 49.9 | osh-native | mut+alloc+free+gc |
154 | 129 | 24 | 50.4 | osh-native | mut+alloc+free+gc+exit |
145 | 97 | 48 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 183 | 28 | 67.2 | _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.3 | dash | - |
6 | 6 | 0 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
7 | 3 | 3 | 11.6 | bumpleak/osh | mut |
7 | 0 | 7 | 11.7 | _bin/cxx-opt+bumproot/osh | mut |
7 | 3 | 3 | 11.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc |
9 | 0 | 9 | 10.0 | osh-native | mut+alloc+free |
9 | 5 | 5 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.3 | _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 | - |
23 | 20 | 4 | 3.3 | zsh | - |
19 | 15 | 4 | 31.4 | bumpleak/osh | mut |
26 | 26 | 0 | 33.1 | _bin/cxx-opt+bumproot/osh | mut |
28 | 16 | 12 | 33.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 22 | 15 | 26.3 | osh-native | mut+alloc |
39 | 35 | 4 | 26.5 | osh-native | mut+alloc+free |
29 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 42 | 12 | 36.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 34 | 4 | 9.3 | _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 | 2.9 | bash | - |
169 | 104 | 64 | 53.9 | bumpleak/osh | mut |
179 | 113 | 65 | 55.4 | _bin/cxx-opt+bumproot/osh | mut |
191 | 115 | 75 | 54.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
209 | 130 | 79 | 47.0 | osh-native | mut+alloc |
214 | 115 | 99 | 48.7 | osh-native | mut+alloc+free |
181 | 120 | 60 | 8.7 | osh-native | mut+alloc+free+gc |
182 | 109 | 73 | 8.7 | osh-native | mut+alloc+free+gc+exit |
230 | 146 | 83 | 63.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 139 | 71 | 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 | 5 | 6 | 3.5 | dash | - |
20 | 14 | 5 | 4.5 | bash | - |
18 | 17 | 1 | 3.5 | zsh | - |
19 | 16 | 4 | 12.0 | bumpleak/osh | mut |
20 | 12 | 8 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
21 | 14 | 8 | 13.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 14 | 8 | 11.0 | osh-native | mut+alloc |
22 | 10 | 12 | 11.0 | osh-native | mut+alloc+free |
22 | 11 | 12 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 20 | 3 | 8.9 | osh-native | mut+alloc+free+gc+exit |
24 | 12 | 13 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 14 | 11 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |