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 | 37 | 4 | 10 | 12.0 | 17.8 | 476,689 | 1,282 | 6 | 408,756 | 5 | 204,378 | osh-native |
parse.configure-coreutils | 158 | 25 | 71 | 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.3 | 101,880 | 180 | 2 | 75,098 | 1 | 37,549 | osh-native |
ex.compute-fib | 28 | 0 | 2 | 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 | 19 | 4 | 3.1 | bash | - |
104 | 61 | 49 | 3.5 | zsh | - |
16 | 12 | 4 | 28.8 | bumpleak/osh | mut |
19 | 15 | 4 | 30.1 | _bin/cxx-opt+bumproot/osh | mut |
22 | 22 | 0 | 29.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
31 | 16 | 16 | 25.0 | osh-native | mut+alloc |
31 | 16 | 16 | 25.6 | osh-native | mut+alloc+free |
37 | 36 | 0 | 17.8 | osh-native | mut+alloc+free+gc |
37 | 29 | 8 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 19 | 23 | 31.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 44 | 4 | 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 | 14 | 7 | 1.6 | dash | - |
78 | 74 | 4 | 3.1 | bash | - |
375 | 204 | 191 | 3.5 | zsh | - |
49 | 32 | 16 | 85.3 | bumpleak/osh | mut |
59 | 47 | 12 | 85.7 | _bin/cxx-opt+bumproot/osh | mut |
70 | 66 | 4 | 85.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 73 | 24 | 73.3 | osh-native | mut+alloc |
106 | 85 | 20 | 75.1 | osh-native | mut+alloc+free |
158 | 134 | 24 | 51.4 | osh-native | mut+alloc+free+gc |
170 | 134 | 36 | 52.1 | osh-native | mut+alloc+free+gc+exit |
144 | 104 | 40 | 99.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
225 | 197 | 28 | 72.7 | _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 | 2.9 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 3 | 3 | 11.5 | bumpleak/osh | mut |
7 | 7 | 0 | 11.7 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 10.0 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.3 | osh-native | mut+alloc+free+gc |
9 | 4 | 4 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 0 | 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 | 24 | 4 | 2.8 | bash | - |
24 | 24 | 0 | 3.3 | zsh | - |
19 | 15 | 4 | 30.8 | bumpleak/osh | mut |
25 | 17 | 8 | 33.2 | _bin/cxx-opt+bumproot/osh | mut |
28 | 23 | 4 | 32.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
35 | 24 | 12 | 26.5 | osh-native | mut+alloc |
38 | 26 | 11 | 26.7 | osh-native | mut+alloc+free |
28 | 23 | 5 | 7.9 | osh-native | mut+alloc+free+gc |
29 | 25 | 4 | 7.7 | osh-native | mut+alloc+free+gc+exit |
53 | 34 | 19 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 29 | 7 | 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 | 68 | 4 | 3.0 | bash | - |
168 | 96 | 72 | 54.4 | bumpleak/osh | mut |
184 | 128 | 56 | 55.4 | _bin/cxx-opt+bumproot/osh | mut |
195 | 99 | 95 | 56.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 140 | 72 | 46.9 | osh-native | mut+alloc |
218 | 129 | 89 | 48.8 | osh-native | mut+alloc+free |
180 | 120 | 60 | 8.7 | osh-native | mut+alloc+free+gc |
182 | 145 | 36 | 8.7 | osh-native | mut+alloc+free+gc+exit |
233 | 150 | 83 | 62.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
207 | 127 | 80 | 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 | 5 | 5 | 3.5 | dash | - |
20 | 14 | 6 | 4.3 | bash | - |
18 | 12 | 7 | 3.5 | zsh | - |
20 | 7 | 13 | 12.7 | bumpleak/osh | mut |
22 | 13 | 10 | 13.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 14 | 9 | 13.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 12 | 11 | 10.7 | osh-native | mut+alloc |
23 | 16 | 7 | 10.7 | osh-native | mut+alloc+free |
23 | 17 | 7 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 21 | 2 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 24 | 2 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 18 | 8 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |