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 | 17.7 | 476,676 | 1,282 | 6 | 408,744 | 5 | 204,372 | osh-native |
parse.configure-coreutils | 159 | 24 | 71 | 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.4 | 101,867 | 180 | 2 | 75,086 | 1 | 37,543 | osh-native |
ex.compute-fib | 28 | 0 | 2 | 2.6 | 7.9 | 584,132 | 31,810 | 12 | 50,000 | 0 | 2,819 | osh-native |
ex.bashcomp-parse-help | 186 | 0 | 4 | 12.3 | 8.7 | 1,002,889 | 27,376 | 21 | 50,000 | 0 | 3,803 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,240 | 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.6 | dash | - |
23 | 23 | 0 | 2.9 | bash | - |
104 | 60 | 51 | 3.4 | zsh | - |
16 | 8 | 8 | 27.9 | bumpleak/osh | mut |
20 | 12 | 8 | 30.0 | _bin/cxx-opt+bumproot/osh | mut |
23 | 19 | 4 | 28.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 22 | 7 | 25.0 | osh-native | mut+alloc |
31 | 27 | 4 | 25.6 | osh-native | mut+alloc+free |
36 | 32 | 4 | 17.7 | osh-native | mut+alloc+free+gc |
38 | 34 | 4 | 18.0 | osh-native | mut+alloc+free+gc+exit |
42 | 38 | 4 | 32.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 35 | 12 | 22.2 | _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.6 | dash | - |
77 | 77 | 0 | 3.3 | bash | - |
418 | 237 | 204 | 3.7 | zsh | - |
48 | 36 | 12 | 84.4 | bumpleak/osh | mut |
60 | 40 | 20 | 85.1 | _bin/cxx-opt+bumproot/osh | mut |
70 | 65 | 4 | 86.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 64 | 32 | 73.3 | osh-native | mut+alloc |
104 | 80 | 24 | 75.1 | osh-native | mut+alloc+free |
159 | 135 | 24 | 51.4 | osh-native | mut+alloc+free+gc |
156 | 124 | 32 | 52.2 | osh-native | mut+alloc+free+gc+exit |
138 | 97 | 40 | 97.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 168 | 40 | 71.6 | _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 | 2.9 | bash | - |
8 | 0 | 7 | 3.3 | zsh | - |
6 | 6 | 0 | 10.6 | bumpleak/osh | mut |
7 | 0 | 7 | 10.7 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 11.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 9.8 | osh-native | mut+alloc |
9 | 3 | 6 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 3 | 6 | 8.4 | osh-native | mut+alloc+free+gc+exit |
11 | 11 | 0 | 11.4 | _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 | 26 | 4 | 2.9 | bash | - |
24 | 16 | 8 | 3.3 | zsh | - |
20 | 12 | 8 | 31.2 | bumpleak/osh | mut |
25 | 24 | 0 | 31.2 | _bin/cxx-opt+bumproot/osh | mut |
29 | 29 | 0 | 32.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 26.3 | osh-native | mut+alloc |
38 | 19 | 19 | 26.7 | osh-native | mut+alloc+free |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 50 | 4 | 35.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
36 | 28 | 8 | 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 | 73 | 0 | 3.1 | bash | - |
168 | 92 | 76 | 56.6 | bumpleak/osh | mut |
181 | 112 | 68 | 56.6 | _bin/cxx-opt+bumproot/osh | mut |
196 | 128 | 68 | 58.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 124 | 88 | 48.9 | osh-native | mut+alloc |
220 | 156 | 64 | 50.6 | osh-native | mut+alloc+free |
186 | 126 | 59 | 8.7 | osh-native | mut+alloc+free+gc |
184 | 136 | 48 | 8.7 | osh-native | mut+alloc+free+gc+exit |
234 | 129 | 105 | 65.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 157 | 52 | 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 |
10 | 6 | 4 | 3.4 | dash | - |
20 | 15 | 5 | 4.5 | bash | - |
18 | 10 | 8 | 3.4 | zsh | - |
19 | 14 | 5 | 13.0 | bumpleak/osh | mut |
21 | 13 | 8 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
21 | 20 | 1 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 15 | 7 | 10.9 | osh-native | mut+alloc |
23 | 20 | 4 | 10.9 | osh-native | mut+alloc+free |
22 | 10 | 13 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 20 | 4 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 11 | 14 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 17 | 9 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |