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 | 25 | 3 | 7 | 12.2 | 17.9 | 478,359 | 1,282 | 6 | 428,228 | 5 | 214,114 | osh-native |
parse.configure-coreutils | 101 | 18 | 40 | 46.2 | 51.6 | 1,660,610 | 4,764 | 10 | 1,189,390 | 7 | 594,695 | osh-native |
parse.abuild | 6 | 0 | 1 | 2.7 | 8.5 | 102,532 | 180 | 2 | 75,968 | 1 | 37,984 | osh-native |
ex.compute-fib | 21 | 0 | 1 | 3.0 | 7.8 | 651,800 | 31,810 | 13 | 50,000 | 0 | 2,829 | osh-native |
ex.bashcomp-parse-help | 112 | 0 | 3 | 12.3 | 8.7 | 1,077,990 | 27,375 | 23 | 50,000 | 0 | 3,938 | osh-native |
ex.abuild-print-help | 15 | 0 | 2 | 2.9 | 9.1 | 117,530 | 477 | 3 | 86,148 | 1 | 43,074 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
4 | 4 | 0 | 1.5 | dash | - |
20 | 20 | 0 | 3.1 | bash | - |
62 | 43 | 23 | 3.4 | zsh | - |
12 | 8 | 4 | 28.6 | bumpleak/osh | mut |
14 | 14 | 0 | 29.2 | _bin/cxx-opt+bumproot/osh | mut |
16 | 12 | 4 | 29.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
20 | 8 | 12 | 25.1 | osh-native | mut+alloc |
22 | 17 | 4 | 25.4 | osh-native | mut+alloc+free |
25 | 24 | 0 | 17.9 | osh-native | mut+alloc+free+gc |
25 | 25 | 0 | 18.1 | osh-native | mut+alloc+free+gc+exit |
28 | 24 | 4 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
33 | 25 | 8 | 22.6 | _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 |
15 | 15 | 0 | 1.7 | dash | - |
55 | 55 | 0 | 3.4 | bash | - |
221 | 155 | 79 | 3.6 | zsh | - |
36 | 32 | 4 | 85.5 | bumpleak/osh | mut |
45 | 45 | 0 | 85.0 | _bin/cxx-opt+bumproot/osh | mut |
52 | 40 | 12 | 85.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
64 | 40 | 24 | 73.9 | osh-native | mut+alloc |
71 | 47 | 24 | 76.0 | osh-native | mut+alloc+free |
101 | 78 | 23 | 51.6 | osh-native | mut+alloc+free+gc |
109 | 97 | 12 | 52.4 | osh-native | mut+alloc+free+gc+exit |
92 | 64 | 28 | 99.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
142 | 134 | 8 | 68.9 | _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 | 1 | 0 | 1.5 | dash | - |
4 | 4 | 0 | 3.1 | bash | - |
4 | 4 | 0 | 3.4 | zsh | - |
4 | 4 | 0 | 10.5 | bumpleak/osh | mut |
4 | 4 | 0 | 11.0 | _bin/cxx-opt+bumproot/osh | mut |
4 | 4 | 0 | 10.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
6 | 6 | 0 | 9.9 | osh-native | mut+alloc |
6 | 3 | 3 | 10.0 | osh-native | mut+alloc+free |
6 | 6 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
6 | 6 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
7 | 7 | 0 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
8 | 8 | 0 | 9.4 | _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.6 | dash | - |
20 | 20 | 0 | 3.0 | bash | - |
15 | 14 | 0 | 3.5 | zsh | - |
15 | 10 | 5 | 34.4 | bumpleak/osh | mut |
19 | 15 | 4 | 34.1 | _bin/cxx-opt+bumproot/osh | mut |
22 | 13 | 9 | 34.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
27 | 15 | 11 | 28.3 | osh-native | mut+alloc |
29 | 21 | 8 | 28.7 | osh-native | mut+alloc+free |
21 | 21 | 0 | 7.8 | osh-native | mut+alloc+free+gc |
21 | 21 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
38 | 23 | 15 | 38.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
29 | 25 | 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 |
51 | 47 | 4 | 3.3 | bash | - |
102 | 82 | 20 | 59.7 | bumpleak/osh | mut |
108 | 76 | 32 | 58.7 | _bin/cxx-opt+bumproot/osh | mut |
121 | 96 | 24 | 60.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
135 | 86 | 49 | 50.6 | osh-native | mut+alloc |
139 | 119 | 20 | 52.4 | osh-native | mut+alloc+free |
112 | 80 | 32 | 8.7 | osh-native | mut+alloc+free+gc |
112 | 87 | 24 | 8.7 | osh-native | mut+alloc+free+gc+exit |
143 | 103 | 40 | 67.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
130 | 114 | 16 | 10.0 | _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 |
6 | 5 | 0 | 3.6 | dash | - |
12 | 11 | 1 | 4.6 | bash | - |
10 | 7 | 3 | 3.5 | zsh | - |
12 | 8 | 4 | 13.1 | bumpleak/osh | mut |
12 | 12 | 1 | 11.8 | _bin/cxx-opt+bumproot/osh | mut |
14 | 5 | 9 | 13.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
13 | 9 | 5 | 11.1 | osh-native | mut+alloc |
14 | 12 | 3 | 11.2 | osh-native | mut+alloc+free |
15 | 15 | 0 | 9.1 | osh-native | mut+alloc+free+gc |
15 | 9 | 6 | 9.1 | osh-native | mut+alloc+free+gc+exit |
16 | 10 | 6 | 12.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
16 | 14 | 3 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |