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 | 3 | 9 | 12.0 | 17.8 | 476,711 | 1,282 | 6 | 408,792 | 5 | 204,396 | osh-native |
parse.configure-coreutils | 159 | 27 | 71 | 44.6 | 49.9 | 1,653,299 | 4,764 | 12 | 1,030,676 | 6 | 769,422 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.6 | 8.4 | 101,902 | 180 | 2 | 75,134 | 1 | 37,567 | osh-native |
ex.compute-fib | 29 | 0 | 1 | 2.4 | 7.9 | 584,167 | 31,810 | 12 | 50,000 | 0 | 2,842 | osh-native |
ex.bashcomp-parse-help | 181 | 0 | 4 | 10.3 | 8.7 | 995,244 | 27,376 | 21 | 50,000 | 0 | 3,824 | osh-native |
ex.abuild-print-help | 22 | 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 |
6 | 6 | 0 | 1.4 | dash | - |
24 | 19 | 4 | 3.0 | bash | - |
104 | 55 | 55 | 3.3 | zsh | - |
17 | 16 | 0 | 28.0 | bumpleak/osh | mut |
20 | 20 | 0 | 28.2 | _bin/cxx-opt+bumproot/osh | mut |
22 | 22 | 0 | 29.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
34 | 26 | 7 | 24.9 | osh-native | mut+alloc |
31 | 19 | 12 | 25.7 | osh-native | mut+alloc+free |
36 | 31 | 4 | 17.8 | osh-native | mut+alloc+free+gc |
37 | 25 | 12 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 28 | 16 | 32.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
51 | 31 | 19 | 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 | 21 | 0 | 1.6 | dash | - |
77 | 77 | 0 | 3.3 | bash | - |
379 | 183 | 217 | 3.5 | zsh | - |
50 | 42 | 8 | 85.0 | bumpleak/osh | mut |
61 | 49 | 11 | 85.5 | _bin/cxx-opt+bumproot/osh | mut |
70 | 62 | 8 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 55 | 43 | 73.4 | osh-native | mut+alloc |
107 | 74 | 33 | 75.3 | osh-native | mut+alloc+free |
159 | 115 | 44 | 49.9 | osh-native | mut+alloc+free+gc |
157 | 144 | 12 | 50.6 | osh-native | mut+alloc+free+gc+exit |
140 | 104 | 36 | 99.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
225 | 197 | 28 | 68.5 | _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 | 0 | 7 | 3.3 | zsh | - |
15 | 0 | 15 | 10.4 | bumpleak/osh | mut |
12 | 8 | 4 | 11.5 | _bin/cxx-opt+bumproot/osh | mut |
13 | 14 | 0 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc |
9 | 6 | 3 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
10 | 3 | 6 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 4 | 8 | 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 | - |
29 | 25 | 4 | 2.9 | bash | - |
24 | 12 | 12 | 3.4 | zsh | - |
19 | 12 | 8 | 32.2 | bumpleak/osh | mut |
26 | 22 | 4 | 32.0 | _bin/cxx-opt+bumproot/osh | mut |
28 | 16 | 12 | 32.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 24 | 12 | 26.1 | osh-native | mut+alloc |
39 | 23 | 16 | 26.5 | osh-native | mut+alloc+free |
29 | 25 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
29 | 18 | 11 | 7.9 | osh-native | mut+alloc+free+gc+exit |
55 | 31 | 23 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 38 | 0 | 9.5 | _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 | 65 | 8 | 3.1 | bash | - |
169 | 125 | 43 | 55.0 | bumpleak/osh | mut |
180 | 112 | 68 | 54.5 | _bin/cxx-opt+bumproot/osh | mut |
195 | 127 | 68 | 56.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 144 | 68 | 47.0 | osh-native | mut+alloc |
218 | 111 | 107 | 48.8 | osh-native | mut+alloc+free |
181 | 133 | 47 | 8.7 | osh-native | mut+alloc+free+gc |
181 | 144 | 36 | 8.7 | osh-native | mut+alloc+free+gc+exit |
232 | 164 | 68 | 64.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 148 | 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 | 10 | 0 | 3.5 | dash | - |
20 | 13 | 7 | 4.3 | bash | - |
18 | 15 | 4 | 3.5 | zsh | - |
20 | 8 | 13 | 12.8 | bumpleak/osh | mut |
19 | 18 | 2 | 13.6 | _bin/cxx-opt+bumproot/osh | mut |
22 | 12 | 10 | 13.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 16 | 6 | 10.9 | osh-native | mut+alloc |
23 | 11 | 12 | 11.0 | osh-native | mut+alloc+free |
22 | 20 | 3 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 14 | 9 | 9.0 | osh-native | mut+alloc+free+gc+exit |
26 | 14 | 11 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 21 | 5 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |