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 | 18.0 | 476,690 | 1,282 | 6 | 408,758 | 5 | 204,379 | osh-native |
parse.configure-coreutils | 156 | 25 | 68 | 46.1 | 51.7 | 1,653,278 | 4,764 | 12 | 1,069,124 | 6 | 798,643 | osh-native |
parse.abuild | 12 | 1 | 2 | 2.6 | 8.4 | 101,881 | 180 | 2 | 75,100 | 1 | 37,550 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.4 | 7.9 | 584,146 | 31,810 | 12 | 50,000 | 0 | 2,826 | osh-native |
ex.bashcomp-parse-help | 182 | 0 | 3 | 10.3 | 8.8 | 995,223 | 27,376 | 21 | 50,000 | 0 | 3,822 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 116,290 | 478 | 3 | 85,336 | 1 | 42,668 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 23 | 0 | 2.9 | bash | - |
104 | 66 | 44 | 3.4 | zsh | - |
17 | 7 | 10 | 29.4 | bumpleak/osh | mut |
20 | 16 | 4 | 30.1 | _bin/cxx-opt+bumproot/osh | mut |
22 | 13 | 9 | 30.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 17 | 13 | 24.9 | osh-native | mut+alloc |
32 | 16 | 16 | 25.4 | osh-native | mut+alloc+free |
36 | 32 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 35 | 0 | 17.7 | osh-native | mut+alloc+free+gc+exit |
43 | 39 | 4 | 33.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 32 | 16 | 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.4 | dash | - |
78 | 70 | 8 | 3.1 | bash | - |
380 | 213 | 187 | 3.4 | zsh | - |
51 | 39 | 12 | 85.3 | bumpleak/osh | mut |
61 | 52 | 8 | 84.7 | _bin/cxx-opt+bumproot/osh | mut |
70 | 57 | 12 | 85.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 67 | 32 | 73.4 | osh-native | mut+alloc |
106 | 85 | 20 | 75.3 | osh-native | mut+alloc+free |
156 | 136 | 20 | 51.7 | osh-native | mut+alloc+free+gc |
154 | 138 | 16 | 50.6 | osh-native | mut+alloc+free+gc+exit |
138 | 105 | 32 | 97.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
219 | 182 | 36 | 74.0 | _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.3 | dash | - |
6 | 6 | 0 | 2.9 | bash | - |
8 | 8 | 0 | 3.4 | zsh | - |
6 | 6 | 0 | 11.8 | bumpleak/osh | mut |
7 | 7 | 0 | 10.9 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
12 | 4 | 8 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 11 | 0 | 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 |
11 | 10 | 0 | 1.4 | dash | - |
29 | 25 | 4 | 2.9 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
19 | 15 | 4 | 32.6 | bumpleak/osh | mut |
26 | 18 | 7 | 31.9 | _bin/cxx-opt+bumproot/osh | mut |
28 | 20 | 8 | 31.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 36 | 0 | 26.2 | osh-native | mut+alloc |
38 | 25 | 13 | 26.5 | osh-native | mut+alloc+free |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.7 | osh-native | mut+alloc+free+gc+exit |
55 | 43 | 12 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 37 | 0 | 9.3 | _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 | 72 | 0 | 3.0 | bash | - |
168 | 108 | 60 | 54.4 | bumpleak/osh | mut |
178 | 130 | 49 | 54.7 | _bin/cxx-opt+bumproot/osh | mut |
194 | 129 | 65 | 56.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 136 | 76 | 47.0 | osh-native | mut+alloc |
220 | 144 | 76 | 48.6 | osh-native | mut+alloc+free |
182 | 134 | 47 | 8.8 | osh-native | mut+alloc+free+gc |
183 | 111 | 72 | 8.8 | osh-native | mut+alloc+free+gc+exit |
233 | 150 | 83 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 138 | 71 | 10.1 | _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 | 6 | 4 | 3.5 | dash | - |
20 | 13 | 7 | 4.3 | bash | - |
18 | 10 | 8 | 3.4 | zsh | - |
20 | 17 | 3 | 12.3 | bumpleak/osh | mut |
19 | 14 | 5 | 13.6 | _bin/cxx-opt+bumproot/osh | mut |
21 | 11 | 11 | 13.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 8 | 14 | 11.0 | osh-native | mut+alloc |
22 | 12 | 11 | 10.9 | osh-native | mut+alloc+free |
22 | 13 | 10 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 11 | 12 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 13 | 11 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 17 | 8 | 9.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |