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,689 | 1,282 | 6 | 408,756 | 5 | 204,378 | osh-native |
parse.configure-coreutils | 159 | 26 | 72 | 46.1 | 51.3 | 1,653,277 | 4,764 | 12 | 1,069,122 | 6 | 798,642 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,880 | 180 | 2 | 75,098 | 1 | 37,549 | osh-native |
ex.compute-fib | 29 | 0 | 1 | 2.6 | 7.9 | 584,145 | 31,810 | 12 | 50,000 | 0 | 2,826 | osh-native |
ex.bashcomp-parse-help | 180 | 0 | 4 | 10.6 | 8.7 | 995,222 | 27,376 | 21 | 50,000 | 0 | 3,821 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.9 | 116,289 | 478 | 3 | 85,334 | 1 | 42,667 | 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.1 | bash | - |
106 | 58 | 54 | 3.4 | zsh | - |
17 | 10 | 7 | 29.3 | bumpleak/osh | mut |
20 | 16 | 4 | 29.9 | _bin/cxx-opt+bumproot/osh | mut |
22 | 17 | 4 | 29.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 17 | 13 | 25.2 | osh-native | mut+alloc |
32 | 24 | 8 | 25.6 | osh-native | mut+alloc+free |
36 | 32 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 32 | 4 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 31 | 12 | 32.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 37 | 12 | 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 | - |
78 | 78 | 0 | 3.1 | bash | - |
379 | 197 | 204 | 3.5 | zsh | - |
49 | 41 | 7 | 84.3 | bumpleak/osh | mut |
61 | 48 | 12 | 84.6 | _bin/cxx-opt+bumproot/osh | mut |
71 | 58 | 12 | 84.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 65 | 33 | 73.4 | osh-native | mut+alloc |
106 | 75 | 31 | 75.4 | osh-native | mut+alloc+free |
159 | 135 | 24 | 51.3 | osh-native | mut+alloc+free+gc |
158 | 122 | 35 | 52.2 | osh-native | mut+alloc+free+gc+exit |
137 | 92 | 44 | 99.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
217 | 185 | 32 | 72.1 | _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 | 2.9 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 0 | 6 | 11.4 | bumpleak/osh | mut |
7 | 7 | 0 | 11.1 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 11.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 4 | 4 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 12 | 0 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.5 | _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 | - |
29 | 29 | 0 | 2.9 | bash | - |
24 | 16 | 8 | 3.4 | zsh | - |
18 | 14 | 5 | 31.2 | bumpleak/osh | mut |
26 | 26 | 0 | 32.7 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 31.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 20 | 16 | 26.5 | osh-native | mut+alloc |
40 | 27 | 12 | 26.6 | osh-native | mut+alloc+free |
29 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
29 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
53 | 37 | 16 | 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 |
73 | 64 | 8 | 3.1 | bash | - |
169 | 110 | 59 | 54.4 | bumpleak/osh | mut |
180 | 120 | 60 | 54.9 | _bin/cxx-opt+bumproot/osh | mut |
195 | 135 | 60 | 57.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 148 | 64 | 47.1 | osh-native | mut+alloc |
218 | 139 | 79 | 48.9 | osh-native | mut+alloc+free |
180 | 128 | 52 | 8.7 | osh-native | mut+alloc+free+gc |
182 | 126 | 55 | 8.7 | osh-native | mut+alloc+free+gc+exit |
231 | 126 | 105 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 142 | 67 | 10.2 | _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 | 15 | 6 | 4.5 | bash | - |
18 | 12 | 6 | 3.4 | zsh | - |
20 | 7 | 13 | 12.5 | bumpleak/osh | mut |
20 | 17 | 3 | 11.7 | _bin/cxx-opt+bumproot/osh | mut |
21 | 14 | 7 | 13.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 18 | 5 | 10.7 | osh-native | mut+alloc |
23 | 19 | 4 | 11.0 | osh-native | mut+alloc+free |
23 | 19 | 5 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 11 | 13 | 8.8 | osh-native | mut+alloc+free+gc+exit |
26 | 15 | 11 | 12.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
27 | 17 | 10 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |