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 | 9 | 12.0 | 18.0 | 476,689 | 1,282 | 6 | 408,756 | 5 | 204,378 | osh-native |
parse.configure-coreutils | 163 | 26 | 74 | 46.1 | 51.6 | 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 | 29 | 0 | 1 | 2.6 | 8.0 | 584,145 | 31,810 | 12 | 50,000 | 0 | 2,826 | osh-native |
ex.bashcomp-parse-help | 179 | 0 | 3 | 10.6 | 8.5 | 995,222 | 27,376 | 21 | 50,000 | 0 | 3,821 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.0 | 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 | - |
105 | 67 | 44 | 3.4 | zsh | - |
17 | 10 | 7 | 29.6 | bumpleak/osh | mut |
20 | 20 | 0 | 29.6 | _bin/cxx-opt+bumproot/osh | mut |
23 | 15 | 8 | 29.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 26 | 4 | 25.2 | osh-native | mut+alloc |
32 | 12 | 20 | 25.3 | osh-native | mut+alloc+free |
36 | 28 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 29 | 7 | 17.8 | osh-native | mut+alloc+free+gc+exit |
43 | 23 | 19 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 40 | 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 | 74 | 4 | 3.3 | bash | - |
374 | 191 | 204 | 3.5 | zsh | - |
48 | 36 | 12 | 85.6 | bumpleak/osh | mut |
62 | 54 | 8 | 85.9 | _bin/cxx-opt+bumproot/osh | mut |
70 | 54 | 16 | 85.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 78 | 21 | 73.6 | osh-native | mut+alloc |
106 | 82 | 23 | 75.3 | osh-native | mut+alloc+free |
163 | 123 | 40 | 51.6 | osh-native | mut+alloc+free+gc |
164 | 143 | 20 | 52.1 | osh-native | mut+alloc+free+gc+exit |
138 | 75 | 63 | 98.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
226 | 181 | 44 | 72.6 | _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 | 7 | 0 | 3.4 | zsh | - |
6 | 3 | 3 | 11.3 | bumpleak/osh | mut |
7 | 0 | 7 | 10.7 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 11.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 9 | 0 | 9.8 | osh-native | mut+alloc |
9 | 0 | 9 | 9.8 | osh-native | mut+alloc+free |
9 | 6 | 3 | 8.3 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 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 | - |
29 | 28 | 0 | 3.0 | bash | - |
24 | 8 | 16 | 3.3 | zsh | - |
19 | 15 | 4 | 32.6 | bumpleak/osh | mut |
26 | 19 | 7 | 32.2 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 33.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 24 | 12 | 26.3 | osh-native | mut+alloc |
38 | 19 | 19 | 26.6 | osh-native | mut+alloc+free |
29 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.7 | osh-native | mut+alloc+free+gc+exit |
54 | 46 | 8 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
39 | 39 | 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 | 100 | 68 | 54.2 | bumpleak/osh | mut |
181 | 101 | 80 | 55.9 | _bin/cxx-opt+bumproot/osh | mut |
194 | 134 | 61 | 56.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 128 | 84 | 47.1 | osh-native | mut+alloc |
217 | 136 | 80 | 49.0 | osh-native | mut+alloc+free |
179 | 136 | 44 | 8.5 | osh-native | mut+alloc+free+gc |
180 | 144 | 36 | 8.8 | osh-native | mut+alloc+free+gc+exit |
232 | 143 | 88 | 62.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 144 | 68 | 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 | 1 | 3.5 | dash | - |
19 | 15 | 5 | 4.3 | bash | - |
18 | 9 | 9 | 3.4 | zsh | - |
19 | 12 | 7 | 11.5 | bumpleak/osh | mut |
21 | 8 | 13 | 12.9 | _bin/cxx-opt+bumproot/osh | mut |
22 | 12 | 10 | 13.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 20 | 2 | 10.9 | osh-native | mut+alloc |
23 | 17 | 6 | 11.0 | osh-native | mut+alloc+free |
23 | 16 | 7 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 17 | 7 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 14 | 11 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 16 | 10 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |