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 | 17.8 | 476,711 | 1,282 | 6 | 408,792 | 5 | 204,396 | osh-native |
parse.configure-coreutils | 153 | 25 | 67 | 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 | 181 | 0 | 3 | 10.3 | 8.7 | 995,244 | 27,376 | 21 | 50,000 | 0 | 3,824 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.2 | 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 | - |
23 | 19 | 4 | 3.0 | bash | - |
105 | 49 | 63 | 3.4 | zsh | - |
16 | 16 | 0 | 28.4 | bumpleak/osh | mut |
19 | 15 | 4 | 29.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 30.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 21 | 8 | 25.0 | osh-native | mut+alloc |
31 | 19 | 12 | 25.6 | osh-native | mut+alloc+free |
35 | 23 | 12 | 17.8 | osh-native | mut+alloc+free+gc |
36 | 32 | 4 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 24 | 20 | 31.9 | _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.6 | dash | - |
78 | 78 | 0 | 3.1 | bash | - |
378 | 248 | 153 | 3.5 | zsh | - |
48 | 44 | 4 | 85.7 | bumpleak/osh | mut |
59 | 55 | 4 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
70 | 70 | 0 | 84.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 51 | 47 | 73.4 | osh-native | mut+alloc |
105 | 81 | 24 | 75.4 | osh-native | mut+alloc+free |
153 | 125 | 28 | 49.8 | osh-native | mut+alloc+free+gc |
156 | 136 | 20 | 50.4 | osh-native | mut+alloc+free+gc+exit |
139 | 95 | 44 | 98.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
222 | 190 | 32 | 68.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.3 | dash | - |
6 | 6 | 0 | 3.0 | bash | - |
8 | 0 | 7 | 3.4 | zsh | - |
6 | 0 | 6 | 10.9 | bumpleak/osh | mut |
6 | 6 | 0 | 10.6 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.1 | osh-native | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.8 | osh-native | mut+alloc+free+gc+exit |
12 | 12 | 0 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 8 | 4 | 9.3 | _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 | 10 | 0 | 1.4 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
24 | 23 | 0 | 3.3 | zsh | - |
20 | 16 | 4 | 32.1 | bumpleak/osh | mut |
26 | 21 | 4 | 32.1 | _bin/cxx-opt+bumproot/osh | mut |
28 | 20 | 8 | 32.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 29 | 8 | 26.1 | osh-native | mut+alloc |
38 | 23 | 15 | 26.3 | osh-native | mut+alloc+free |
28 | 17 | 10 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.7 | osh-native | mut+alloc+free+gc+exit |
54 | 42 | 11 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 29 | 7 | 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 |
74 | 74 | 0 | 3.1 | bash | - |
168 | 88 | 80 | 54.9 | bumpleak/osh | mut |
181 | 133 | 48 | 56.1 | _bin/cxx-opt+bumproot/osh | mut |
192 | 124 | 68 | 55.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 125 | 84 | 47.1 | osh-native | mut+alloc |
216 | 164 | 52 | 48.7 | osh-native | mut+alloc+free |
181 | 126 | 55 | 8.7 | osh-native | mut+alloc+free+gc |
180 | 144 | 36 | 8.8 | osh-native | mut+alloc+free+gc+exit |
232 | 161 | 71 | 62.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 176 | 32 | 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 | 10 | 1 | 3.4 | dash | - |
20 | 18 | 2 | 4.5 | bash | - |
18 | 11 | 8 | 3.4 | zsh | - |
19 | 11 | 8 | 12.2 | bumpleak/osh | mut |
19 | 11 | 9 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
20 | 15 | 6 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 16 | 6 | 11.0 | osh-native | mut+alloc |
22 | 10 | 12 | 11.1 | osh-native | mut+alloc+free |
23 | 13 | 10 | 9.2 | osh-native | mut+alloc+free+gc |
23 | 20 | 3 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 20 | 5 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 18 | 8 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |