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 | 3 | 9 | 12.0 | 18.0 | 476,711 | 1,282 | 6 | 408,792 | 5 | 204,396 | osh-native |
parse.configure-coreutils | 150 | 24 | 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 | 595 | 0 | 2 | 2.4 | 8.1 | 908,191 | 22,608 | 19 | 50,000 | 0 | 2,844 | osh-native |
ex.bashcomp-parse-help | 182 | 0 | 3 | 10.3 | 8.8 | 995,628 | 12,911 | 21 | 50,000 | 0 | 3,835 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,311 | 270 | 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 | 20 | 4 | 3.0 | bash | - |
104 | 65 | 47 | 3.4 | zsh | - |
16 | 12 | 4 | 29.3 | bumpleak/osh | mut |
19 | 11 | 7 | 29.3 | _bin/cxx-opt+bumproot/osh | mut |
23 | 8 | 15 | 29.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 21 | 8 | 25.0 | osh-native | mut+alloc |
32 | 20 | 12 | 25.4 | osh-native | mut+alloc+free |
36 | 27 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 29 | 8 | 18.1 | osh-native | mut+alloc+free+gc+exit |
44 | 24 | 20 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 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 | 77 | 0 | 3.3 | bash | - |
372 | 211 | 181 | 3.7 | zsh | - |
48 | 44 | 4 | 85.4 | bumpleak/osh | mut |
58 | 54 | 4 | 85.9 | _bin/cxx-opt+bumproot/osh | mut |
70 | 53 | 16 | 86.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 65 | 32 | 73.5 | osh-native | mut+alloc |
106 | 85 | 20 | 75.1 | osh-native | mut+alloc+free |
150 | 115 | 36 | 49.9 | osh-native | mut+alloc+free+gc |
154 | 134 | 20 | 50.6 | osh-native | mut+alloc+free+gc+exit |
140 | 87 | 52 | 98.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 172 | 40 | 67.4 | _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 | 8 | 0 | 3.3 | zsh | - |
7 | 3 | 3 | 11.6 | bumpleak/osh | mut |
7 | 0 | 6 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 14.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 3 | 6 | 10.2 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 3 | 6 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.4 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.4 | _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 | - |
29 | 29 | 0 | 3.0 | bash | - |
24 | 16 | 8 | 3.4 | zsh | - |
713 | 708 | 4 | 47.5 | bumpleak/osh | mut |
700 | 696 | 4 | 47.8 | _bin/cxx-opt+bumproot/osh | mut |
614 | 610 | 4 | 48.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
662 | 634 | 28 | 37.7 | osh-native | mut+alloc |
666 | 642 | 24 | 38.0 | osh-native | mut+alloc+free |
595 | 595 | 0 | 8.1 | osh-native | mut+alloc+free+gc |
596 | 595 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
717 | 689 | 28 | 55.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
631 | 627 | 4 | 9.8 | _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 | 57 | 15 | 3.0 | bash | - |
168 | 128 | 40 | 54.4 | bumpleak/osh | mut |
179 | 123 | 56 | 56.3 | _bin/cxx-opt+bumproot/osh | mut |
194 | 134 | 59 | 55.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 155 | 56 | 47.0 | osh-native | mut+alloc |
219 | 155 | 64 | 48.9 | osh-native | mut+alloc+free |
182 | 137 | 44 | 8.8 | osh-native | mut+alloc+free+gc |
185 | 144 | 40 | 8.8 | osh-native | mut+alloc+free+gc+exit |
230 | 155 | 75 | 64.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 144 | 64 | 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.4 | dash | - |
20 | 10 | 10 | 4.5 | bash | - |
18 | 13 | 5 | 3.4 | zsh | - |
18 | 13 | 5 | 11.7 | bumpleak/osh | mut |
19 | 16 | 3 | 13.5 | _bin/cxx-opt+bumproot/osh | mut |
20 | 12 | 9 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 19 | 3 | 10.9 | osh-native | mut+alloc |
22 | 19 | 4 | 11.0 | osh-native | mut+alloc+free |
22 | 15 | 7 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 16 | 7 | 8.9 | osh-native | mut+alloc+free+gc+exit |
24 | 16 | 9 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 14 | 11 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |