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 | 35 | 3 | 9 | 12.0 | 18.0 | 476,685 | 1,282 | 6 | 408,756 | 5 | 204,378 | osh-native |
parse.configure-coreutils | 147 | 24 | 61 | 46.1 | 51.6 | 1,653,273 | 4,764 | 12 | 1,069,122 | 6 | 798,642 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.3 | 101,876 | 180 | 2 | 75,098 | 1 | 37,549 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.6 | 7.7 | 584,141 | 31,810 | 12 | 50,000 | 0 | 2,826 | osh-native |
ex.bashcomp-parse-help | 180 | 0 | 3 | 10.6 | 8.5 | 995,218 | 27,376 | 21 | 50,000 | 0 | 3,821 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,285 | 478 | 3 | 85,334 | 1 | 42,667 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 3 | 3 | 1.6 | dash | - |
23 | 19 | 4 | 3.0 | bash | - |
103 | 67 | 42 | 3.4 | zsh | - |
16 | 16 | 0 | 28.8 | bumpleak/osh | mut |
19 | 11 | 8 | 29.7 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 29.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 18 | 11 | 25.0 | osh-native | mut+alloc |
30 | 15 | 15 | 25.6 | osh-native | mut+alloc+free |
35 | 27 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
35 | 27 | 8 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 27 | 16 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 39 | 8 | 22.3 | _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.6 | dash | - |
77 | 77 | 0 | 3.3 | bash | - |
375 | 207 | 189 | 3.7 | zsh | - |
49 | 32 | 16 | 85.3 | bumpleak/osh | mut |
60 | 44 | 16 | 85.3 | _bin/cxx-opt+bumproot/osh | mut |
71 | 62 | 8 | 86.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 64 | 32 | 73.4 | osh-native | mut+alloc |
106 | 63 | 43 | 75.3 | osh-native | mut+alloc+free |
147 | 119 | 28 | 51.6 | osh-native | mut+alloc+free+gc |
151 | 131 | 20 | 52.2 | osh-native | mut+alloc+free+gc+exit |
141 | 76 | 64 | 98.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
207 | 175 | 32 | 72.4 | _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 | 0 | 2 | 1.4 | dash | - |
6 | 6 | 0 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 0 | 6 | 10.5 | bumpleak/osh | mut |
7 | 0 | 7 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
7 | 0 | 7 | 11.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.0 | osh-native | mut+alloc |
8 | 0 | 8 | 9.8 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.3 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
11 | 4 | 8 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 11 | 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.6 | dash | - |
29 | 28 | 0 | 2.9 | bash | - |
23 | 16 | 8 | 3.3 | zsh | - |
19 | 9 | 9 | 31.8 | bumpleak/osh | mut |
25 | 25 | 0 | 32.9 | _bin/cxx-opt+bumproot/osh | mut |
28 | 28 | 0 | 31.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 31 | 4 | 26.5 | osh-native | mut+alloc |
38 | 25 | 12 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 4 | 7.7 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 33 | 21 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
36 | 36 | 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 |
73 | 68 | 4 | 3.1 | bash | - |
165 | 98 | 67 | 54.6 | bumpleak/osh | mut |
178 | 127 | 52 | 54.9 | _bin/cxx-opt+bumproot/osh | mut |
194 | 137 | 56 | 56.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
221 | 129 | 92 | 47.1 | osh-native | mut+alloc |
231 | 135 | 96 | 48.9 | osh-native | mut+alloc+free |
180 | 120 | 60 | 8.5 | osh-native | mut+alloc+free+gc |
179 | 114 | 65 | 8.7 | osh-native | mut+alloc+free+gc+exit |
232 | 116 | 116 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
206 | 150 | 55 | 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 | 4 | 5 | 3.4 | dash | - |
20 | 7 | 13 | 4.5 | bash | - |
18 | 8 | 10 | 3.5 | zsh | - |
20 | 6 | 15 | 12.7 | bumpleak/osh | mut |
21 | 14 | 7 | 12.6 | _bin/cxx-opt+bumproot/osh | mut |
21 | 13 | 8 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 7 | 15 | 10.9 | osh-native | mut+alloc |
22 | 14 | 8 | 11.0 | osh-native | mut+alloc+free |
22 | 17 | 5 | 9.0 | osh-native | mut+alloc+free+gc |
22 | 13 | 10 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 22 | 3 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 12 | 13 | 9.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |