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 | 18.0 | 476,690 | 1,282 | 6 | 408,762 | 5 | 204,381 | osh-native |
parse.configure-coreutils | 156 | 25 | 69 | 46.1 | 51.5 | 1,653,278 | 4,764 | 12 | 1,069,128 | 6 | 798,645 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.3 | 101,881 | 180 | 2 | 75,104 | 1 | 37,552 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.6 | 7.9 | 584,146 | 31,810 | 12 | 50,000 | 0 | 2,828 | osh-native |
ex.bashcomp-parse-help | 181 | 0 | 4 | 10.6 | 8.4 | 995,223 | 27,376 | 21 | 50,000 | 0 | 3,824 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.8 | 116,290 | 478 | 3 | 85,340 | 1 | 42,670 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.4 | dash | - |
24 | 20 | 4 | 3.1 | bash | - |
104 | 63 | 49 | 3.3 | zsh | - |
17 | 12 | 4 | 29.7 | bumpleak/osh | mut |
20 | 20 | 0 | 28.9 | _bin/cxx-opt+bumproot/osh | mut |
23 | 11 | 11 | 29.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 22 | 7 | 24.9 | osh-native | mut+alloc |
32 | 20 | 12 | 25.4 | osh-native | mut+alloc+free |
35 | 27 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 22 | 15 | 17.8 | osh-native | mut+alloc+free+gc+exit |
43 | 20 | 23 | 32.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
50 | 50 | 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 |
22 | 21 | 0 | 1.6 | dash | - |
78 | 78 | 0 | 3.3 | bash | - |
377 | 201 | 196 | 3.5 | zsh | - |
49 | 49 | 0 | 85.3 | bumpleak/osh | mut |
64 | 52 | 12 | 85.3 | _bin/cxx-opt+bumproot/osh | mut |
71 | 55 | 16 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 78 | 20 | 73.4 | osh-native | mut+alloc |
107 | 66 | 41 | 75.3 | osh-native | mut+alloc+free |
156 | 132 | 24 | 51.5 | osh-native | mut+alloc+free+gc |
159 | 130 | 28 | 50.4 | osh-native | mut+alloc+free+gc+exit |
138 | 81 | 57 | 98.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
228 | 179 | 48 | 72.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 | 2 | 0 | 1.4 | dash | - |
6 | 3 | 3 | 3.0 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 6 | 0 | 12.2 | bumpleak/osh | mut |
6 | 7 | 0 | 11.0 | _bin/cxx-opt+bumproot/osh | mut |
7 | 0 | 7 | 11.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.0 | osh-native | mut+alloc |
8 | 4 | 4 | 10.0 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.3 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.3 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 0 | 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 |
10 | 10 | 0 | 1.4 | dash | - |
28 | 28 | 0 | 3.0 | bash | - |
24 | 20 | 4 | 3.4 | zsh | - |
19 | 11 | 8 | 32.1 | bumpleak/osh | mut |
26 | 22 | 4 | 31.9 | _bin/cxx-opt+bumproot/osh | mut |
29 | 22 | 7 | 32.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 28 | 8 | 26.5 | osh-native | mut+alloc |
38 | 38 | 0 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 27 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 37 | 17 | 36.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 38 | 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 |
72 | 64 | 8 | 3.1 | bash | - |
169 | 98 | 71 | 54.0 | bumpleak/osh | mut |
180 | 115 | 64 | 54.4 | _bin/cxx-opt+bumproot/osh | mut |
194 | 141 | 52 | 56.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 112 | 100 | 46.9 | osh-native | mut+alloc |
216 | 140 | 76 | 48.8 | osh-native | mut+alloc+free |
181 | 101 | 80 | 8.4 | osh-native | mut+alloc+free+gc |
183 | 84 | 99 | 8.5 | osh-native | mut+alloc+free+gc+exit |
232 | 148 | 84 | 62.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
207 | 146 | 61 | 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 | 9 | 2 | 3.5 | dash | - |
19 | 18 | 2 | 4.5 | bash | - |
18 | 12 | 7 | 3.4 | zsh | - |
18 | 16 | 3 | 13.1 | bumpleak/osh | mut |
21 | 17 | 4 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
22 | 16 | 6 | 13.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 15 | 7 | 10.9 | osh-native | mut+alloc |
23 | 8 | 15 | 11.1 | osh-native | mut+alloc+free |
22 | 13 | 10 | 8.8 | osh-native | mut+alloc+free+gc |
23 | 21 | 3 | 8.8 | osh-native | mut+alloc+free+gc+exit |
25 | 12 | 14 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 23 | 2 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |