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,676 | 1,282 | 6 | 408,744 | 5 | 204,372 | osh-native |
parse.configure-coreutils | 153 | 23 | 66 | 46.1 | 51.4 | 1,653,264 | 4,764 | 12 | 1,069,110 | 6 | 798,636 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,867 | 180 | 2 | 75,086 | 1 | 37,543 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.6 | 7.7 | 584,132 | 31,810 | 12 | 50,000 | 0 | 2,819 | osh-native |
ex.bashcomp-parse-help | 179 | 0 | 3 | 10.2 | 8.5 | 982,889 | 27,376 | 21 | 50,000 | 0 | 3,805 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.7 | 116,248 | 478 | 3 | 85,322 | 1 | 42,661 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.4 | dash | - |
23 | 23 | 0 | 3.1 | bash | - |
104 | 57 | 53 | 3.4 | zsh | - |
16 | 15 | 0 | 28.7 | bumpleak/osh | mut |
19 | 14 | 5 | 30.1 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 29.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 25 | 4 | 25.2 | osh-native | mut+alloc |
31 | 23 | 8 | 25.6 | osh-native | mut+alloc+free |
35 | 27 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 27 | 8 | 18.0 | osh-native | mut+alloc+free+gc+exit |
45 | 32 | 12 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 36 | 12 | 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 | 18 | 4 | 1.4 | dash | - |
78 | 78 | 0 | 3.3 | bash | - |
375 | 218 | 180 | 3.4 | zsh | - |
48 | 48 | 0 | 85.7 | bumpleak/osh | mut |
59 | 51 | 8 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
69 | 53 | 16 | 86.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 56 | 40 | 73.4 | osh-native | mut+alloc |
104 | 60 | 44 | 75.1 | osh-native | mut+alloc+free |
153 | 129 | 23 | 51.4 | osh-native | mut+alloc+free+gc |
156 | 120 | 36 | 52.2 | osh-native | mut+alloc+free+gc+exit |
138 | 103 | 36 | 97.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
219 | 174 | 44 | 72.3 | _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 | 3 | 3 | 3.0 | bash | - |
8 | 7 | 0 | 3.3 | zsh | - |
6 | 0 | 6 | 10.9 | bumpleak/osh | mut |
7 | 7 | 0 | 11.8 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native | mut+alloc |
9 | 0 | 9 | 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.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 11 | 0 | 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 | 11 | 0 | 1.4 | dash | - |
28 | 28 | 0 | 2.9 | bash | - |
24 | 24 | 0 | 3.3 | zsh | - |
19 | 11 | 8 | 31.2 | bumpleak/osh | mut |
27 | 19 | 8 | 32.9 | _bin/cxx-opt+bumproot/osh | mut |
28 | 20 | 8 | 32.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 16 | 20 | 26.3 | osh-native | mut+alloc |
38 | 22 | 15 | 26.6 | osh-native | mut+alloc+free |
28 | 20 | 8 | 7.7 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 30 | 23 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 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 | 69 | 4 | 3.1 | bash | - |
167 | 99 | 68 | 54.9 | bumpleak/osh | mut |
177 | 94 | 82 | 55.3 | _bin/cxx-opt+bumproot/osh | mut |
191 | 143 | 48 | 55.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
208 | 124 | 84 | 46.4 | osh-native | mut+alloc |
216 | 120 | 96 | 48.2 | osh-native | mut+alloc+free |
179 | 102 | 77 | 8.5 | osh-native | mut+alloc+free+gc |
180 | 116 | 64 | 8.5 | osh-native | mut+alloc+free+gc+exit |
228 | 176 | 52 | 63.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
206 | 131 | 75 | 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.7 | dash | - |
19 | 17 | 3 | 4.3 | bash | - |
18 | 5 | 13 | 3.5 | zsh | - |
20 | 11 | 10 | 12.8 | bumpleak/osh | mut |
20 | 16 | 4 | 13.6 | _bin/cxx-opt+bumproot/osh | mut |
21 | 9 | 13 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 16 | 5 | 10.9 | osh-native | mut+alloc |
22 | 20 | 3 | 10.9 | osh-native | mut+alloc+free |
22 | 13 | 9 | 8.7 | osh-native | mut+alloc+free+gc |
23 | 12 | 12 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 17 | 8 | 12.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 20 | 6 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |