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.7 | 476,676 | 1,282 | 6 | 408,744 | 5 | 204,372 | osh-native |
parse.configure-coreutils | 145 | 22 | 59 | 46.1 | 51.3 | 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 | 180 | 0 | 3 | 12.3 | 8.7 | 1,006,409 | 27,376 | 21 | 50,000 | 0 | 3,812 | 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.6 | dash | - |
25 | 21 | 3 | 3.1 | bash | - |
103 | 50 | 58 | 3.5 | zsh | - |
17 | 13 | 3 | 28.5 | bumpleak/osh | mut |
20 | 15 | 4 | 28.5 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 28.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 25 | 4 | 25.0 | osh-native | mut+alloc |
31 | 15 | 15 | 25.4 | osh-native | mut+alloc+free |
35 | 30 | 4 | 17.7 | osh-native | mut+alloc+free+gc |
35 | 26 | 9 | 18.1 | osh-native | mut+alloc+free+gc+exit |
42 | 19 | 23 | 31.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
46 | 37 | 8 | 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.6 | dash | - |
76 | 76 | 0 | 3.1 | bash | - |
366 | 188 | 197 | 3.7 | zsh | - |
49 | 34 | 15 | 84.7 | bumpleak/osh | mut |
59 | 47 | 12 | 85.4 | _bin/cxx-opt+bumproot/osh | mut |
70 | 54 | 15 | 85.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 56 | 40 | 73.5 | osh-native | mut+alloc |
104 | 68 | 36 | 75.1 | osh-native | mut+alloc+free |
145 | 121 | 24 | 51.3 | osh-native | mut+alloc+free+gc |
149 | 116 | 32 | 52.0 | osh-native | mut+alloc+free+gc+exit |
139 | 99 | 40 | 98.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
202 | 174 | 28 | 71.8 | _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 | 2.9 | bash | - |
8 | 4 | 4 | 3.1 | zsh | - |
6 | 6 | 0 | 11.2 | bumpleak/osh | mut |
6 | 3 | 3 | 11.1 | _bin/cxx-opt+bumproot/osh | mut |
7 | 0 | 7 | 11.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 9.8 | osh-native | mut+alloc |
9 | 9 | 0 | 9.8 | osh-native | mut+alloc+free |
9 | 0 | 9 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
11 | 8 | 4 | 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 | 11 | 0 | 1.6 | dash | - |
28 | 28 | 0 | 3.0 | bash | - |
23 | 19 | 4 | 3.4 | zsh | - |
18 | 9 | 9 | 31.9 | bumpleak/osh | mut |
25 | 17 | 8 | 31.3 | _bin/cxx-opt+bumproot/osh | mut |
28 | 20 | 8 | 31.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.3 | osh-native | mut+alloc |
38 | 30 | 7 | 26.6 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 20 | 8 | 7.9 | osh-native | mut+alloc+free+gc+exit |
53 | 41 | 12 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
36 | 32 | 4 | 9.2 | _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 | - |
167 | 103 | 64 | 56.7 | bumpleak/osh | mut |
177 | 112 | 64 | 56.5 | _bin/cxx-opt+bumproot/osh | mut |
188 | 112 | 76 | 58.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 120 | 92 | 49.0 | osh-native | mut+alloc |
216 | 116 | 100 | 50.8 | osh-native | mut+alloc+free |
180 | 143 | 37 | 8.7 | osh-native | mut+alloc+free+gc |
185 | 120 | 64 | 8.7 | osh-native | mut+alloc+free+gc+exit |
228 | 112 | 116 | 66.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 132 | 76 | 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 | 4 | 5 | 3.4 | dash | - |
19 | 17 | 2 | 4.5 | bash | - |
18 | 9 | 10 | 3.5 | zsh | - |
18 | 11 | 7 | 11.3 | bumpleak/osh | mut |
21 | 16 | 6 | 13.1 | _bin/cxx-opt+bumproot/osh | mut |
22 | 13 | 9 | 13.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 15 | 6 | 10.7 | osh-native | mut+alloc |
22 | 18 | 5 | 11.0 | osh-native | mut+alloc+free |
22 | 20 | 2 | 8.7 | osh-native | mut+alloc+free+gc |
21 | 12 | 10 | 8.8 | osh-native | mut+alloc+free+gc+exit |
24 | 6 | 19 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 18 | 7 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |