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 | 18.1 | 476,676 | 1,282 | 6 | 408,744 | 5 | 204,372 | osh-native |
parse.configure-coreutils | 148 | 23 | 60 | 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.5 | 101,867 | 180 | 2 | 75,086 | 1 | 37,543 | osh-native |
ex.compute-fib | 27 | 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.2 | 8.5 | 982,889 | 27,376 | 21 | 50,000 | 0 | 3,805 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.8 | 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 | - |
23 | 23 | 0 | 3.0 | bash | - |
104 | 52 | 58 | 3.4 | zsh | - |
16 | 8 | 8 | 29.6 | bumpleak/osh | mut |
22 | 18 | 4 | 30.1 | _bin/cxx-opt+bumproot/osh | mut |
22 | 22 | 0 | 30.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 11 | 18 | 25.2 | osh-native | mut+alloc |
32 | 28 | 4 | 25.6 | osh-native | mut+alloc+free |
36 | 28 | 8 | 18.1 | osh-native | mut+alloc+free+gc |
36 | 28 | 8 | 17.8 | osh-native | mut+alloc+free+gc+exit |
43 | 27 | 16 | 32.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 32 | 16 | 21.8 | _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 | 21 | 0 | 1.4 | dash | - |
79 | 75 | 4 | 3.3 | bash | - |
376 | 224 | 175 | 3.4 | zsh | - |
48 | 40 | 8 | 84.2 | bumpleak/osh | mut |
60 | 56 | 4 | 85.4 | _bin/cxx-opt+bumproot/osh | mut |
69 | 57 | 11 | 85.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 73 | 24 | 73.4 | osh-native | mut+alloc |
106 | 83 | 24 | 75.3 | osh-native | mut+alloc+free |
148 | 128 | 20 | 51.4 | osh-native | mut+alloc+free+gc |
160 | 143 | 16 | 52.2 | osh-native | mut+alloc+free+gc+exit |
138 | 83 | 55 | 98.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 178 | 32 | 73.0 | _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 | 2.9 | bash | - |
8 | 8 | 0 | 3.1 | zsh | - |
6 | 0 | 6 | 11.6 | bumpleak/osh | mut |
6 | 6 | 0 | 10.9 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 0 | 8 | 10.0 | osh-native | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 3 | 6 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 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 | - |
28 | 28 | 0 | 3.0 | bash | - |
24 | 12 | 12 | 3.4 | zsh | - |
19 | 18 | 0 | 31.0 | bumpleak/osh | mut |
25 | 21 | 4 | 31.8 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 33.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.3 | osh-native | mut+alloc |
38 | 38 | 0 | 26.6 | osh-native | mut+alloc+free |
27 | 27 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
53 | 45 | 8 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 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 |
75 | 71 | 4 | 3.1 | bash | - |
168 | 100 | 68 | 53.4 | bumpleak/osh | mut |
179 | 103 | 76 | 55.2 | _bin/cxx-opt+bumproot/osh | mut |
192 | 108 | 84 | 54.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
207 | 123 | 83 | 46.3 | osh-native | mut+alloc |
216 | 152 | 64 | 48.1 | osh-native | mut+alloc+free |
179 | 130 | 49 | 8.5 | osh-native | mut+alloc+free+gc |
178 | 107 | 71 | 8.4 | osh-native | mut+alloc+free+gc+exit |
230 | 161 | 68 | 63.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 149 | 60 | 9.9 | _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.5 | dash | - |
19 | 6 | 14 | 4.5 | bash | - |
17 | 9 | 9 | 3.5 | zsh | - |
20 | 12 | 8 | 12.9 | bumpleak/osh | mut |
19 | 18 | 2 | 11.5 | _bin/cxx-opt+bumproot/osh | mut |
22 | 14 | 9 | 13.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 11 | 11 | 11.0 | osh-native | mut+alloc |
22 | 15 | 8 | 10.9 | osh-native | mut+alloc+free |
22 | 10 | 13 | 8.8 | osh-native | mut+alloc+free+gc |
23 | 22 | 1 | 8.8 | osh-native | mut+alloc+free+gc+exit |
25 | 17 | 8 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 18 | 7 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |