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,676 | 1,282 | 6 | 408,744 | 5 | 204,372 | osh-native |
parse.configure-coreutils | 147 | 23 | 61 | 46.1 | 51.5 | 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 | 179 | 0 | 3 | 10.6 | 8.7 | 995,209 | 27,376 | 21 | 50,000 | 0 | 3,815 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 116,276 | 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 | 19 | 4 | 3.0 | bash | - |
104 | 57 | 53 | 3.3 | zsh | - |
17 | 12 | 4 | 28.5 | bumpleak/osh | mut |
19 | 11 | 8 | 29.3 | _bin/cxx-opt+bumproot/osh | mut |
23 | 19 | 4 | 30.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
31 | 26 | 4 | 25.0 | osh-native | mut+alloc |
31 | 8 | 23 | 25.6 | osh-native | mut+alloc+free |
35 | 31 | 4 | 17.8 | osh-native | mut+alloc+free+gc |
36 | 28 | 8 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 28 | 16 | 32.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 31 | 16 | 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 | 18 | 4 | 1.4 | dash | - |
79 | 75 | 4 | 3.1 | bash | - |
373 | 214 | 179 | 3.5 | zsh | - |
49 | 41 | 8 | 84.1 | bumpleak/osh | mut |
61 | 52 | 8 | 86.1 | _bin/cxx-opt+bumproot/osh | mut |
70 | 54 | 16 | 85.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 72 | 24 | 73.4 | osh-native | mut+alloc |
106 | 69 | 36 | 75.3 | osh-native | mut+alloc+free |
147 | 115 | 32 | 51.5 | osh-native | mut+alloc+free+gc |
156 | 132 | 24 | 52.1 | osh-native | mut+alloc+free+gc+exit |
139 | 95 | 44 | 97.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 174 | 36 | 73.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.3 | dash | - |
6 | 3 | 3 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
5 | 5 | 0 | 11.9 | bumpleak/osh | mut |
7 | 3 | 3 | 11.1 | _bin/cxx-opt+bumproot/osh | mut |
8 | 0 | 8 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.0 | osh-native | mut+alloc |
8 | 0 | 8 | 10.0 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 4 | 4 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 7 | 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 |
10 | 7 | 3 | 1.6 | dash | - |
28 | 24 | 4 | 2.9 | bash | - |
24 | 12 | 12 | 3.3 | zsh | - |
18 | 18 | 0 | 32.7 | bumpleak/osh | mut |
25 | 17 | 8 | 32.1 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 31.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 31 | 4 | 26.5 | osh-native | mut+alloc |
37 | 26 | 11 | 26.6 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 27 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
53 | 33 | 20 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 36 | 0 | 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 | 73 | 0 | 3.1 | bash | - |
169 | 108 | 60 | 54.1 | bumpleak/osh | mut |
179 | 115 | 64 | 55.1 | _bin/cxx-opt+bumproot/osh | mut |
200 | 131 | 67 | 55.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 149 | 60 | 47.1 | osh-native | mut+alloc |
217 | 140 | 76 | 48.8 | osh-native | mut+alloc+free |
179 | 115 | 64 | 8.7 | osh-native | mut+alloc+free+gc |
179 | 119 | 60 | 8.7 | osh-native | mut+alloc+free+gc+exit |
233 | 152 | 80 | 63.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
205 | 157 | 48 | 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 | 2 | 3.4 | dash | - |
20 | 11 | 9 | 4.5 | bash | - |
18 | 10 | 8 | 3.5 | zsh | - |
20 | 11 | 10 | 12.8 | bumpleak/osh | mut |
19 | 18 | 2 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
21 | 15 | 6 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 19 | 2 | 10.7 | osh-native | mut+alloc |
22 | 13 | 10 | 10.9 | osh-native | mut+alloc+free |
22 | 18 | 5 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 16 | 7 | 8.8 | osh-native | mut+alloc+free+gc+exit |
24 | 17 | 8 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 23 | 2 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |