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 | 8 | 12.2 | 17.9 | 478,359 | 1,282 | 6 | 428,228 | 5 | 214,114 | osh-native |
parse.configure-coreutils | 93 | 14 | 33 | 46.2 | 51.7 | 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 | 110 | 0 | 3 | 12.3 | 8.6 | 1,077,990 | 27,375 | 23 | 50,000 | 0 | 3,938 | osh-native |
ex.abuild-print-help | 14 | 0 | 2 | 2.9 | 9.1 | 117,524 | 477 | 3 | 85,988 | 1 | 42,994 | osh-native |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
4 | 4 | 0 | 1.5 | dash | - |
16 | 16 | 0 | 3.1 | bash | - |
65 | 38 | 31 | 3.5 | zsh | - |
12 | 12 | 0 | 28.2 | bumpleak/osh | mut |
14 | 14 | 0 | 29.3 | _bin/cxx-opt+bumproot/osh | mut |
16 | 12 | 4 | 29.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
20 | 16 | 4 | 25.1 | osh-native | mut+alloc |
22 | 21 | 0 | 25.6 | osh-native | mut+alloc+free |
25 | 17 | 8 | 17.9 | osh-native | mut+alloc+free+gc |
25 | 13 | 13 | 18.1 | osh-native | mut+alloc+free+gc+exit |
28 | 16 | 12 | 33.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
34 | 34 | 0 | 22.7 | _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.6 | dash | - |
55 | 55 | 0 | 3.4 | bash | - |
220 | 132 | 100 | 3.5 | zsh | - |
37 | 20 | 16 | 85.9 | bumpleak/osh | mut |
45 | 40 | 4 | 85.0 | _bin/cxx-opt+bumproot/osh | mut |
51 | 27 | 23 | 86.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
65 | 57 | 8 | 74.0 | osh-native | mut+alloc |
72 | 64 | 8 | 76.0 | osh-native | mut+alloc+free |
93 | 76 | 16 | 51.7 | osh-native | mut+alloc+free+gc |
100 | 84 | 16 | 52.4 | osh-native | mut+alloc+free+gc+exit |
97 | 77 | 20 | 99.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
138 | 117 | 20 | 69.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 |
1 | 0 | 1 | 1.7 | dash | - |
4 | 4 | 0 | 3.0 | bash | - |
4 | 4 | 0 | 3.4 | zsh | - |
4 | 4 | 0 | 11.5 | bumpleak/osh | mut |
5 | 4 | 0 | 11.7 | _bin/cxx-opt+bumproot/osh | mut |
5 | 5 | 0 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
5 | 5 | 0 | 10.0 | osh-native | mut+alloc |
6 | 6 | 0 | 10.0 | osh-native | mut+alloc+free |
6 | 6 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
6 | 3 | 3 | 8.6 | osh-native | mut+alloc+free+gc+exit |
7 | 7 | 0 | 11.4 | _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 | 4 | 4 | 1.5 | dash | - |
20 | 20 | 0 | 3.0 | bash | - |
14 | 14 | 0 | 3.5 | zsh | - |
15 | 14 | 0 | 35.0 | bumpleak/osh | mut |
19 | 15 | 4 | 35.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 14 | 7 | 34.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
26 | 21 | 4 | 28.2 | osh-native | mut+alloc |
28 | 24 | 4 | 28.7 | osh-native | mut+alloc+free |
21 | 21 | 0 | 7.8 | osh-native | mut+alloc+free+gc |
21 | 21 | 0 | 7.8 | osh-native | mut+alloc+free+gc+exit |
38 | 33 | 4 | 38.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
28 | 28 | 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 |
51 | 51 | 0 | 3.2 | bash | - |
101 | 57 | 44 | 59.4 | bumpleak/osh | mut |
111 | 79 | 32 | 59.3 | _bin/cxx-opt+bumproot/osh | mut |
123 | 98 | 25 | 59.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
129 | 105 | 24 | 50.6 | osh-native | mut+alloc |
137 | 106 | 31 | 52.4 | osh-native | mut+alloc+free |
110 | 90 | 20 | 8.6 | osh-native | mut+alloc+free+gc |
110 | 93 | 16 | 8.7 | osh-native | mut+alloc+free+gc+exit |
144 | 108 | 36 | 67.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
131 | 98 | 33 | 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 | 6 | 0 | 3.7 | dash | - |
13 | 8 | 5 | 4.5 | bash | - |
10 | 7 | 3 | 3.5 | zsh | - |
11 | 11 | 1 | 11.8 | bumpleak/osh | mut |
13 | 12 | 1 | 13.0 | _bin/cxx-opt+bumproot/osh | mut |
13 | 10 | 3 | 12.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
13 | 9 | 5 | 11.0 | osh-native | mut+alloc |
14 | 14 | 0 | 11.2 | osh-native | mut+alloc+free |
14 | 14 | 0 | 9.1 | osh-native | mut+alloc+free+gc |
14 | 11 | 3 | 9.0 | osh-native | mut+alloc+free+gc+exit |
16 | 10 | 6 | 12.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
16 | 9 | 7 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |