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 | 9 | 12.0 | 17.8 | 476,676 | 1,282 | 6 | 408,744 | 5 | 204,372 | osh-native |
parse.configure-coreutils | 152 | 25 | 65 | 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 | 1 | 2.6 | 7.9 | 584,132 | 31,810 | 12 | 50,000 | 0 | 2,819 | osh-native |
ex.bashcomp-parse-help | 182 | 0 | 3 | 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 |
7 | 7 | 0 | 1.4 | dash | - |
23 | 23 | 0 | 3.1 | bash | - |
105 | 62 | 51 | 3.4 | zsh | - |
16 | 8 | 8 | 29.2 | bumpleak/osh | mut |
20 | 20 | 0 | 30.2 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 29.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 22 | 7 | 25.0 | osh-native | mut+alloc |
31 | 20 | 12 | 25.6 | osh-native | mut+alloc+free |
36 | 28 | 8 | 17.8 | osh-native | mut+alloc+free+gc |
39 | 31 | 8 | 17.8 | osh-native | mut+alloc+free+gc+exit |
43 | 23 | 19 | 32.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 45 | 4 | 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 |
22 | 17 | 4 | 1.4 | dash | - |
79 | 78 | 0 | 3.1 | bash | - |
374 | 187 | 209 | 3.5 | zsh | - |
48 | 36 | 12 | 84.8 | bumpleak/osh | mut |
60 | 44 | 16 | 85.1 | _bin/cxx-opt+bumproot/osh | mut |
72 | 44 | 28 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 66 | 33 | 73.5 | osh-native | mut+alloc |
107 | 55 | 51 | 75.1 | osh-native | mut+alloc+free |
152 | 128 | 24 | 51.4 | osh-native | mut+alloc+free+gc |
158 | 126 | 32 | 52.2 | osh-native | mut+alloc+free+gc+exit |
140 | 96 | 44 | 98.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
217 | 192 | 24 | 72.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.4 | dash | - |
6 | 6 | 0 | 3.0 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 6 | 0 | 10.5 | bumpleak/osh | mut |
6 | 6 | 0 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 6 | 3 | 9.8 | osh-native | mut+alloc |
9 | 4 | 4 | 10.0 | osh-native | mut+alloc+free |
9 | 0 | 9 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.4 | osh-native | mut+alloc+free+gc+exit |
12 | 12 | 0 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 11 | 0 | 9.2 | _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 | - |
29 | 29 | 0 | 3.0 | bash | - |
23 | 15 | 8 | 3.1 | zsh | - |
19 | 15 | 4 | 32.0 | bumpleak/osh | mut |
25 | 21 | 4 | 32.3 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 33.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 20 | 16 | 26.3 | osh-native | mut+alloc |
38 | 21 | 17 | 26.6 | osh-native | mut+alloc+free |
28 | 20 | 8 | 7.9 | osh-native | mut+alloc+free+gc |
29 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
52 | 36 | 16 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 37 | 0 | 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.0 | bash | - |
170 | 93 | 77 | 57.1 | bumpleak/osh | mut |
181 | 116 | 64 | 57.4 | _bin/cxx-opt+bumproot/osh | mut |
194 | 131 | 63 | 58.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 153 | 60 | 48.8 | osh-native | mut+alloc |
219 | 163 | 56 | 50.6 | osh-native | mut+alloc+free |
182 | 109 | 73 | 8.7 | osh-native | mut+alloc+free+gc |
183 | 123 | 60 | 8.7 | osh-native | mut+alloc+free+gc+exit |
233 | 148 | 84 | 65.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 145 | 65 | 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 | 9 | 1 | 3.5 | dash | - |
19 | 16 | 4 | 4.3 | bash | - |
17 | 6 | 12 | 3.5 | zsh | - |
20 | 15 | 5 | 12.4 | bumpleak/osh | mut |
20 | 13 | 7 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
20 | 19 | 2 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 16 | 6 | 10.7 | osh-native | mut+alloc |
23 | 18 | 5 | 11.0 | osh-native | mut+alloc+free |
22 | 19 | 4 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 11 | 12 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 24 | 2 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 18 | 7 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |