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,676 | 1,282 | 6 | 408,744 | 5 | 204,372 | osh-native |
parse.configure-coreutils | 190 | 54 | 99 | 46.1 | 51.2 | 1,653,264 | 4,764 | 12 | 1,069,110 | 6 | 798,636 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,867 | 180 | 2 | 75,086 | 1 | 37,543 | osh-native |
ex.compute-fib | 28 | 0 | 1 | 2.6 | 7.9 | 584,128 | 31,810 | 12 | 50,000 | 0 | 2,818 | osh-native |
ex.bashcomp-parse-help | 180 | 0 | 3 | 12.3 | 8.7 | 1,002,882 | 27,376 | 21 | 50,000 | 0 | 3,802 | osh-native |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.8 | 116,069 | 478 | 3 | 85,320 | 1 | 42,660 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
7 | 7 | 0 | 1.4 | dash | - |
24 | 19 | 4 | 3.1 | bash | - |
108 | 55 | 60 | 3.4 | zsh | - |
17 | 9 | 9 | 28.2 | bumpleak/osh | mut |
20 | 20 | 0 | 28.3 | _bin/cxx-opt+bumproot/osh | mut |
23 | 23 | 0 | 29.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 26 | 4 | 25.0 | osh-native | mut+alloc |
32 | 20 | 12 | 25.4 | osh-native | mut+alloc+free |
35 | 35 | 0 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 33 | 4 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 31 | 12 | 31.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 40 | 8 | 21.9 | _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 | 18 | 4 | 1.6 | dash | - |
79 | 75 | 4 | 3.3 | bash | - |
390 | 215 | 198 | 3.5 | zsh | - |
52 | 40 | 12 | 84.9 | bumpleak/osh | mut |
62 | 62 | 0 | 86.2 | _bin/cxx-opt+bumproot/osh | mut |
73 | 64 | 8 | 85.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
100 | 60 | 40 | 73.4 | osh-native | mut+alloc |
108 | 60 | 48 | 75.3 | osh-native | mut+alloc+free |
190 | 178 | 12 | 51.2 | osh-native | mut+alloc+free+gc |
217 | 201 | 16 | 52.1 | osh-native | mut+alloc+free+gc+exit |
142 | 89 | 53 | 98.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
273 | 240 | 32 | 73.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 |
2 | 0 | 2 | 1.4 | dash | - |
6 | 3 | 3 | 2.9 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 0 | 6 | 10.8 | bumpleak/osh | mut |
7 | 3 | 3 | 11.3 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 0 | 8 | 9.8 | osh-native | mut+alloc |
9 | 3 | 6 | 10.1 | osh-native | mut+alloc+free |
9 | 4 | 4 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.5 | osh-native | mut+alloc+free+gc+exit |
11 | 8 | 4 | 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 |
11 | 7 | 3 | 1.4 | dash | - |
29 | 29 | 0 | 2.9 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
20 | 15 | 4 | 31.4 | bumpleak/osh | mut |
27 | 22 | 4 | 33.2 | _bin/cxx-opt+bumproot/osh | mut |
30 | 30 | 0 | 32.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 20 | 16 | 26.3 | osh-native | mut+alloc |
39 | 27 | 12 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 18 | 11 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 29 | 25 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 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 | 73 | 0 | 3.0 | bash | - |
170 | 119 | 51 | 56.1 | bumpleak/osh | mut |
182 | 141 | 40 | 57.2 | _bin/cxx-opt+bumproot/osh | mut |
199 | 116 | 84 | 58.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
215 | 143 | 72 | 48.8 | osh-native | mut+alloc |
222 | 161 | 60 | 50.6 | osh-native | mut+alloc+free |
180 | 128 | 52 | 8.7 | osh-native | mut+alloc+free+gc |
182 | 121 | 61 | 8.7 | osh-native | mut+alloc+free+gc+exit |
236 | 168 | 68 | 65.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
212 | 172 | 40 | 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 | 7 | 3 | 3.4 | dash | - |
20 | 18 | 3 | 4.5 | bash | - |
18 | 10 | 8 | 3.5 | zsh | - |
19 | 10 | 9 | 11.6 | bumpleak/osh | mut |
20 | 12 | 8 | 11.5 | _bin/cxx-opt+bumproot/osh | mut |
21 | 11 | 11 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 20 | 2 | 11.0 | osh-native | mut+alloc |
23 | 10 | 13 | 10.9 | osh-native | mut+alloc+free |
23 | 11 | 12 | 8.8 | osh-native | mut+alloc+free+gc |
23 | 20 | 4 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 23 | 2 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 14 | 11 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |