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.0 | 476,689 | 1,282 | 6 | 408,756 | 5 | 204,378 | osh-native |
parse.configure-coreutils | 160 | 27 | 70 | 46.1 | 51.4 | 1,653,277 | 4,764 | 12 | 1,069,122 | 6 | 798,642 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,880 | 180 | 2 | 75,098 | 1 | 37,549 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.6 | 7.9 | 584,145 | 31,810 | 12 | 50,000 | 0 | 2,826 | osh-native |
ex.bashcomp-parse-help | 180 | 0 | 3 | 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 |
7 | 7 | 0 | 1.6 | dash | - |
23 | 19 | 4 | 3.1 | bash | - |
106 | 51 | 61 | 3.4 | zsh | - |
16 | 12 | 4 | 28.8 | bumpleak/osh | mut |
20 | 12 | 8 | 28.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 22 | 0 | 30.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 26 | 4 | 24.9 | osh-native | mut+alloc |
31 | 27 | 4 | 25.6 | osh-native | mut+alloc+free |
36 | 28 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 26 | 11 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 28 | 16 | 32.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
50 | 46 | 4 | 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 |
21 | 21 | 0 | 1.6 | dash | - |
79 | 79 | 0 | 3.1 | bash | - |
379 | 223 | 177 | 3.7 | zsh | - |
49 | 38 | 11 | 84.6 | bumpleak/osh | mut |
60 | 60 | 0 | 84.9 | _bin/cxx-opt+bumproot/osh | mut |
70 | 45 | 24 | 85.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 50 | 46 | 73.4 | osh-native | mut+alloc |
105 | 70 | 35 | 75.3 | osh-native | mut+alloc+free |
160 | 136 | 24 | 51.4 | osh-native | mut+alloc+free+gc |
167 | 139 | 28 | 52.1 | osh-native | mut+alloc+free+gc+exit |
140 | 107 | 32 | 98.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
217 | 176 | 40 | 73.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 | 6 | 0 | 3.0 | bash | - |
8 | 4 | 4 | 3.1 | zsh | - |
6 | 3 | 3 | 11.3 | bumpleak/osh | mut |
6 | 3 | 3 | 12.2 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 0 | 8 | 10.1 | osh-native | mut+alloc |
8 | 0 | 8 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
10 | 10 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.4 | _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 |
10 | 10 | 0 | 1.4 | dash | - |
28 | 28 | 0 | 2.9 | bash | - |
24 | 12 | 12 | 3.3 | zsh | - |
19 | 15 | 4 | 32.9 | bumpleak/osh | mut |
26 | 22 | 4 | 31.8 | _bin/cxx-opt+bumproot/osh | mut |
27 | 27 | 0 | 32.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 26.5 | osh-native | mut+alloc |
38 | 38 | 0 | 26.6 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
53 | 41 | 12 | 36.3 | _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 | 73 | 0 | 3.1 | bash | - |
167 | 127 | 40 | 54.4 | bumpleak/osh | mut |
180 | 112 | 68 | 56.0 | _bin/cxx-opt+bumproot/osh | mut |
195 | 117 | 77 | 56.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 154 | 57 | 47.1 | osh-native | mut+alloc |
219 | 135 | 84 | 48.9 | osh-native | mut+alloc+free |
180 | 120 | 60 | 8.7 | osh-native | mut+alloc+free+gc |
179 | 131 | 48 | 8.7 | osh-native | mut+alloc+free+gc+exit |
233 | 157 | 76 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
207 | 143 | 64 | 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 | 7 | 3 | 3.4 | dash | - |
19 | 15 | 5 | 4.3 | bash | - |
18 | 10 | 9 | 3.5 | zsh | - |
18 | 7 | 12 | 11.4 | bumpleak/osh | mut |
21 | 19 | 2 | 12.6 | _bin/cxx-opt+bumproot/osh | mut |
21 | 11 | 10 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 15 | 8 | 10.9 | osh-native | mut+alloc |
23 | 12 | 11 | 10.9 | osh-native | mut+alloc+free |
23 | 15 | 8 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 17 | 6 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 16 | 10 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 23 | 3 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |