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,711 | 1,282 | 6 | 408,792 | 5 | 204,396 | osh-native |
parse.configure-coreutils | 158 | 24 | 69 | 44.6 | 50.0 | 1,653,299 | 4,764 | 12 | 1,030,676 | 6 | 769,422 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.3 | 101,902 | 180 | 2 | 75,134 | 1 | 37,567 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.4 | 8.0 | 584,167 | 22,608 | 12 | 50,000 | 0 | 2,844 | osh-native |
ex.bashcomp-parse-help | 181 | 0 | 4 | 10.3 | 8.8 | 995,244 | 12,911 | 21 | 50,000 | 0 | 3,834 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 116,311 | 270 | 3 | 85,370 | 1 | 42,685 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.4 | dash | - |
24 | 19 | 4 | 3.0 | bash | - |
105 | 67 | 45 | 3.4 | zsh | - |
16 | 16 | 0 | 29.4 | bumpleak/osh | mut |
21 | 21 | 0 | 29.2 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 30.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 19 | 11 | 25.0 | osh-native | mut+alloc |
32 | 20 | 12 | 25.7 | osh-native | mut+alloc+free |
36 | 32 | 4 | 18.1 | osh-native | mut+alloc+free+gc |
38 | 33 | 4 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 31 | 12 | 32.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
51 | 42 | 8 | 22.2 | _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 | - |
78 | 78 | 0 | 3.1 | bash | - |
380 | 236 | 168 | 3.4 | zsh | - |
49 | 40 | 8 | 84.9 | bumpleak/osh | mut |
61 | 49 | 12 | 85.3 | _bin/cxx-opt+bumproot/osh | mut |
70 | 61 | 8 | 86.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 70 | 29 | 73.6 | osh-native | mut+alloc |
106 | 71 | 35 | 75.3 | osh-native | mut+alloc+free |
158 | 138 | 20 | 50.0 | osh-native | mut+alloc+free+gc |
168 | 140 | 28 | 50.6 | osh-native | mut+alloc+free+gc+exit |
140 | 109 | 31 | 98.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
230 | 210 | 20 | 67.9 | _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 | 4 | 4 | 3.1 | zsh | - |
6 | 6 | 0 | 11.9 | bumpleak/osh | mut |
7 | 7 | 0 | 11.6 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.2 | osh-native | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.3 | osh-native | mut+alloc+free+gc |
9 | 3 | 6 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 0 | 9.6 | _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 | - |
29 | 25 | 4 | 3.0 | bash | - |
24 | 12 | 12 | 3.3 | zsh | - |
19 | 19 | 0 | 32.1 | bumpleak/osh | mut |
26 | 23 | 4 | 32.1 | _bin/cxx-opt+bumproot/osh | mut |
29 | 16 | 12 | 32.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 29 | 8 | 26.3 | osh-native | mut+alloc |
39 | 31 | 8 | 26.3 | osh-native | mut+alloc+free |
28 | 20 | 8 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
55 | 42 | 13 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 30 | 8 | 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 |
74 | 66 | 8 | 3.1 | bash | - |
169 | 98 | 71 | 54.7 | bumpleak/osh | mut |
178 | 115 | 63 | 54.9 | _bin/cxx-opt+bumproot/osh | mut |
196 | 144 | 52 | 55.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 120 | 92 | 47.0 | osh-native | mut+alloc |
217 | 148 | 68 | 48.7 | osh-native | mut+alloc+free |
181 | 109 | 72 | 8.8 | osh-native | mut+alloc+free+gc |
180 | 120 | 60 | 8.7 | osh-native | mut+alloc+free+gc+exit |
233 | 136 | 96 | 64.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 152 | 60 | 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.5 | dash | - |
20 | 14 | 6 | 4.5 | bash | - |
18 | 13 | 5 | 3.5 | zsh | - |
18 | 16 | 2 | 11.0 | bumpleak/osh | mut |
20 | 6 | 14 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
21 | 6 | 15 | 12.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 11 | 11 | 11.0 | osh-native | mut+alloc |
23 | 11 | 12 | 11.0 | osh-native | mut+alloc+free |
22 | 18 | 5 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 16 | 8 | 9.2 | osh-native | mut+alloc+free+gc+exit |
25 | 19 | 7 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 19 | 7 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |