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 | 18.0 | 478,359 | 1,282 | 6 | 428,228 | 5 | 214,114 | osh-native |
parse.configure-coreutils | 87 | 11 | 27 | 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.6 | 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 | 113 | 0 | 2 | 12.3 | 8.7 | 1,077,990 | 27,375 | 23 | 50,000 | 0 | 3,938 | osh-native |
ex.abuild-print-help | 13 | 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.6 | dash | - |
16 | 16 | 0 | 3.2 | bash | - |
50 | 35 | 19 | 3.5 | zsh | - |
12 | 8 | 4 | 28.0 | bumpleak/osh | mut |
13 | 7 | 7 | 29.4 | _bin/cxx-opt+bumproot/osh | mut |
16 | 12 | 4 | 29.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
20 | 19 | 0 | 25.2 | osh-native | mut+alloc |
21 | 13 | 8 | 25.6 | osh-native | mut+alloc+free |
25 | 21 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
25 | 21 | 4 | 18.1 | osh-native | mut+alloc+free+gc+exit |
28 | 28 | 0 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
33 | 29 | 4 | 22.8 | _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 | - |
54 | 50 | 4 | 3.5 | bash | - |
221 | 128 | 106 | 3.6 | zsh | - |
37 | 33 | 4 | 86.2 | bumpleak/osh | mut |
45 | 37 | 7 | 84.9 | _bin/cxx-opt+bumproot/osh | mut |
51 | 47 | 4 | 87.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
65 | 56 | 8 | 74.1 | osh-native | mut+alloc |
73 | 64 | 8 | 75.9 | osh-native | mut+alloc+free |
87 | 79 | 8 | 51.7 | osh-native | mut+alloc+free+gc |
94 | 77 | 16 | 52.5 | osh-native | mut+alloc+free+gc+exit |
92 | 72 | 20 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
146 | 122 | 24 | 69.3 | _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.6 | dash | - |
4 | 4 | 0 | 3.0 | bash | - |
4 | 4 | 0 | 3.3 | zsh | - |
4 | 4 | 0 | 10.8 | bumpleak/osh | mut |
4 | 0 | 4 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
5 | 5 | 0 | 11.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
5 | 0 | 5 | 10.0 | osh-native | mut+alloc |
5 | 5 | 0 | 10.1 | osh-native | mut+alloc+free |
6 | 6 | 0 | 8.6 | osh-native | mut+alloc+free+gc |
6 | 6 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
8 | 8 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
7 | 7 | 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 | - |
21 | 20 | 0 | 3.4 | zsh | - |
15 | 11 | 4 | 34.2 | bumpleak/osh | mut |
19 | 19 | 0 | 34.2 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 34.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
26 | 26 | 0 | 28.2 | osh-native | mut+alloc |
29 | 29 | 0 | 28.7 | osh-native | mut+alloc+free |
21 | 21 | 0 | 7.8 | osh-native | mut+alloc+free+gc |
21 | 17 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
39 | 30 | 9 | 38.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
29 | 29 | 0 | 9.3 | _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 | 64 | 8 | 3.3 | bash | - |
102 | 98 | 4 | 59.5 | bumpleak/osh | mut |
109 | 89 | 20 | 59.2 | _bin/cxx-opt+bumproot/osh | mut |
120 | 100 | 20 | 60.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
131 | 103 | 28 | 50.5 | osh-native | mut+alloc |
139 | 87 | 52 | 52.5 | osh-native | mut+alloc+free |
113 | 92 | 20 | 8.7 | osh-native | mut+alloc+free+gc |
112 | 76 | 36 | 8.7 | osh-native | mut+alloc+free+gc+exit |
145 | 84 | 60 | 67.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
130 | 93 | 36 | 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 | 1 | 3.7 | dash | - |
12 | 8 | 5 | 4.6 | bash | - |
10 | 9 | 1 | 3.6 | zsh | - |
11 | 11 | 0 | 11.5 | bumpleak/osh | mut |
13 | 8 | 5 | 13.0 | _bin/cxx-opt+bumproot/osh | mut |
13 | 12 | 1 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
12 | 10 | 3 | 11.0 | osh-native | mut+alloc |
13 | 7 | 6 | 11.2 | osh-native | mut+alloc+free |
13 | 13 | 1 | 9.1 | osh-native | mut+alloc+free+gc |
13 | 4 | 9 | 9.2 | osh-native | mut+alloc+free+gc+exit |
16 | 15 | 0 | 12.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
16 | 15 | 1 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |