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 | 39 | 5 | 12 | 12.0 | 18.0 | 476,711 | 1,282 | 6 | 408,792 | 5 | 204,396 | osh-native |
parse.configure-coreutils | 183 | 29 | 91 | 44.6 | 49.8 | 1,653,299 | 4,764 | 12 | 1,030,676 | 6 | 769,422 | osh-native |
parse.abuild | 10 | 1 | 2 | 2.6 | 8.5 | 101,902 | 180 | 2 | 75,134 | 1 | 37,567 | osh-native |
ex.compute-fib | 30 | 0 | 2 | 2.4 | 8.0 | 584,167 | 31,810 | 12 | 50,000 | 0 | 2,842 | osh-native |
ex.bashcomp-parse-help | 186 | 0 | 5 | 10.3 | 8.8 | 995,244 | 27,376 | 21 | 50,000 | 0 | 3,824 | osh-native |
ex.abuild-print-help | 24 | 1 | 2 | 2.8 | 8.9 | 116,311 | 478 | 3 | 85,370 | 1 | 42,685 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
7 | 7 | 0 | 1.6 | dash | - |
23 | 23 | 0 | 2.9 | bash | - |
109 | 63 | 54 | 3.4 | zsh | - |
18 | 17 | 0 | 28.0 | bumpleak/osh | mut |
20 | 16 | 4 | 28.9 | _bin/cxx-opt+bumproot/osh | mut |
23 | 23 | 0 | 30.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
31 | 12 | 19 | 25.2 | osh-native | mut+alloc |
34 | 21 | 13 | 25.6 | osh-native | mut+alloc+free |
39 | 27 | 12 | 18.0 | osh-native | mut+alloc+free+gc |
41 | 33 | 8 | 18.0 | osh-native | mut+alloc+free+gc+exit |
45 | 33 | 12 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
62 | 54 | 8 | 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 |
22 | 22 | 0 | 1.6 | dash | - |
78 | 78 | 0 | 3.3 | bash | - |
386 | 242 | 166 | 3.5 | zsh | - |
50 | 42 | 8 | 84.1 | bumpleak/osh | mut |
61 | 48 | 12 | 85.2 | _bin/cxx-opt+bumproot/osh | mut |
73 | 53 | 19 | 86.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
101 | 69 | 32 | 73.5 | osh-native | mut+alloc |
111 | 70 | 41 | 75.3 | osh-native | mut+alloc+free |
183 | 159 | 24 | 49.8 | osh-native | mut+alloc+free+gc |
190 | 158 | 32 | 50.7 | osh-native | mut+alloc+free+gc+exit |
139 | 94 | 45 | 97.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
268 | 228 | 40 | 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 | 2.9 | bash | - |
8 | 0 | 8 | 3.1 | zsh | - |
6 | 6 | 0 | 11.8 | bumpleak/osh | mut |
7 | 7 | 0 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
7 | 0 | 7 | 10.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 3 | 6 | 10.1 | osh-native | mut+alloc |
10 | 10 | 0 | 10.0 | osh-native | mut+alloc+free |
10 | 5 | 5 | 8.5 | osh-native | mut+alloc+free+gc |
10 | 7 | 3 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
13 | 13 | 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 |
10 | 10 | 0 | 1.4 | dash | - |
29 | 28 | 0 | 2.9 | bash | - |
25 | 21 | 4 | 3.3 | zsh | - |
19 | 0 | 19 | 31.0 | bumpleak/osh | mut |
28 | 23 | 4 | 32.4 | _bin/cxx-opt+bumproot/osh | mut |
29 | 24 | 4 | 31.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 26 | 11 | 26.3 | osh-native | mut+alloc |
39 | 31 | 8 | 26.5 | osh-native | mut+alloc+free |
30 | 25 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 21 | 7 | 8.0 | osh-native | mut+alloc+free+gc+exit |
55 | 35 | 19 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
39 | 35 | 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 | 61 | 12 | 3.1 | bash | - |
172 | 84 | 88 | 55.5 | bumpleak/osh | mut |
183 | 110 | 73 | 54.8 | _bin/cxx-opt+bumproot/osh | mut |
199 | 147 | 52 | 55.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 124 | 88 | 47.0 | osh-native | mut+alloc |
224 | 120 | 104 | 48.7 | osh-native | mut+alloc+free |
186 | 138 | 47 | 8.8 | osh-native | mut+alloc+free+gc |
186 | 126 | 59 | 8.7 | osh-native | mut+alloc+free+gc+exit |
237 | 156 | 80 | 62.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
226 | 158 | 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 | 5 | 6 | 3.5 | dash | - |
20 | 12 | 9 | 4.2 | bash | - |
19 | 11 | 8 | 3.5 | zsh | - |
19 | 13 | 7 | 11.9 | bumpleak/osh | mut |
20 | 15 | 5 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
21 | 6 | 16 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 13 | 9 | 11.0 | osh-native | mut+alloc |
23 | 7 | 17 | 11.1 | osh-native | mut+alloc+free |
24 | 19 | 5 | 8.9 | osh-native | mut+alloc+free+gc |
25 | 11 | 15 | 8.9 | osh-native | mut+alloc+free+gc+exit |
27 | 15 | 12 | 12.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
27 | 24 | 3 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |