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 | 26 | 2 | 6 | 12.0 | 17.9 | 476,721 | 1,282 | 6 | 408,808 | 5 | 204,404 | osh-native |
parse.configure-coreutils | 138 | 34 | 68 | 44.6 | 49.7 | 1,653,309 | 4,764 | 12 | 1,030,692 | 6 | 769,430 | osh-native |
parse.abuild | 7 | 0 | 1 | 2.6 | 8.6 | 101,912 | 180 | 2 | 75,150 | 1 | 37,575 | osh-native |
ex.compute-fib | 21 | 0 | 1 | 2.4 | 8.0 | 584,177 | 22,608 | 12 | 50,000 | 0 | 2,852 | osh-native |
ex.bashcomp-parse-help | 131 | 0 | 2 | 10.3 | 8.8 | 995,254 | 12,911 | 21 | 50,000 | 0 | 3,842 | osh-native |
ex.abuild-print-help | 20 | 0 | 2 | 2.8 | 9.1 | 116,321 | 270 | 3 | 85,386 | 1 | 42,693 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
5 | 4 | 0 | 1.6 | dash | - |
16 | 16 | 0 | 3.1 | bash | - |
81 | 55 | 31 | 3.5 | zsh | - |
12 | 12 | 0 | 27.9 | bumpleak/osh | mut |
15 | 7 | 7 | 29.7 | _bin/cxx-opt+bumproot/osh | mut |
17 | 9 | 9 | 29.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
23 | 11 | 11 | 25.2 | osh-native | mut+alloc |
24 | 20 | 4 | 25.6 | osh-native | mut+alloc+free |
26 | 19 | 7 | 17.9 | osh-native | mut+alloc+free+gc |
27 | 27 | 0 | 18.0 | osh-native | mut+alloc+free+gc+exit |
33 | 25 | 8 | 32.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
35 | 26 | 9 | 22.4 | _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 |
18 | 18 | 0 | 1.7 | dash | - |
55 | 51 | 4 | 3.5 | bash | - |
308 | 183 | 142 | 3.6 | zsh | - |
55 | 23 | 31 | 83.9 | bumpleak/osh | mut |
62 | 46 | 17 | 84.4 | _bin/cxx-opt+bumproot/osh | mut |
66 | 31 | 35 | 85.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
75 | 55 | 20 | 73.5 | osh-native | mut+alloc |
83 | 58 | 25 | 75.0 | osh-native | mut+alloc+free |
138 | 109 | 29 | 49.7 | osh-native | mut+alloc+free+gc |
124 | 113 | 12 | 50.7 | osh-native | mut+alloc+free+gc+exit |
108 | 72 | 36 | 99.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
175 | 143 | 32 | 68.2 | _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 |
1 | 0 | 1 | 1.6 | dash | - |
4 | 0 | 4 | 3.1 | bash | - |
5 | 0 | 5 | 3.5 | zsh | - |
4 | 2 | 2 | 10.3 | bumpleak/osh | mut |
5 | 0 | 5 | 11.8 | _bin/cxx-opt+bumproot/osh | mut |
5 | 5 | 0 | 11.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
6 | 6 | 0 | 9.9 | osh-native | mut+alloc |
6 | 0 | 6 | 10.1 | osh-native | mut+alloc+free |
7 | 3 | 3 | 8.6 | osh-native | mut+alloc+free+gc |
7 | 7 | 0 | 8.6 | osh-native | mut+alloc+free+gc+exit |
9 | 4 | 4 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
8 | 4 | 4 | 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 |
7 | 7 | 0 | 1.7 | dash | - |
21 | 21 | 0 | 3.0 | bash | - |
17 | 17 | 0 | 3.5 | zsh | - |
14 | 14 | 0 | 30.9 | bumpleak/osh | mut |
20 | 16 | 4 | 32.6 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 31.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
28 | 20 | 8 | 26.4 | osh-native | mut+alloc |
29 | 21 | 8 | 26.6 | osh-native | mut+alloc+free |
21 | 16 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
21 | 16 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
41 | 24 | 16 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
27 | 23 | 4 | 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 |
52 | 48 | 4 | 3.2 | bash | - |
122 | 73 | 49 | 53.7 | bumpleak/osh | mut |
132 | 88 | 44 | 54.3 | _bin/cxx-opt+bumproot/osh | mut |
138 | 81 | 57 | 54.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
154 | 109 | 45 | 46.9 | osh-native | mut+alloc |
160 | 108 | 52 | 48.8 | osh-native | mut+alloc+free |
131 | 107 | 24 | 8.8 | osh-native | mut+alloc+free+gc |
127 | 91 | 36 | 8.8 | osh-native | mut+alloc+free+gc+exit |
168 | 140 | 28 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
194 | 143 | 52 | 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 |
9 | 8 | 1 | 3.6 | dash | - |
18 | 9 | 10 | 4.5 | bash | - |
15 | 14 | 1 | 3.6 | zsh | - |
19 | 12 | 8 | 12.4 | bumpleak/osh | mut |
18 | 10 | 8 | 13.6 | _bin/cxx-opt+bumproot/osh | mut |
20 | 13 | 7 | 13.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
20 | 15 | 5 | 11.1 | osh-native | mut+alloc |
21 | 19 | 2 | 11.2 | osh-native | mut+alloc+free |
20 | 13 | 8 | 9.1 | osh-native | mut+alloc+free+gc |
21 | 13 | 9 | 9.1 | osh-native | mut+alloc+free+gc+exit |
22 | 8 | 14 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
23 | 18 | 5 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |