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 | 3 | 8 | 12.2 | 18.0 | 478,359 | 1,282 | 6 | 428,228 | 5 | 214,114 | osh-native |
parse.configure-coreutils | 103 | 18 | 40 | 46.2 | 51.7 | 1,660,610 | 4,764 | 10 | 1,189,390 | 7 | 594,695 | osh-native |
parse.abuild | 6 | 1 | 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 | 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.1 | bash | - |
61 | 35 | 30 | 3.5 | zsh | - |
12 | 8 | 4 | 28.6 | bumpleak/osh | mut |
15 | 14 | 0 | 28.4 | _bin/cxx-opt+bumproot/osh | mut |
16 | 16 | 0 | 29.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
20 | 12 | 8 | 25.0 | osh-native | mut+alloc |
22 | 17 | 4 | 25.6 | osh-native | mut+alloc+free |
26 | 25 | 0 | 18.0 | osh-native | mut+alloc+free+gc |
27 | 19 | 8 | 18.1 | osh-native | mut+alloc+free+gc+exit |
29 | 20 | 8 | 33.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 37 | 0 | 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.6 | dash | - |
55 | 51 | 4 | 3.3 | bash | - |
214 | 132 | 96 | 3.6 | zsh | - |
37 | 29 | 8 | 85.3 | bumpleak/osh | mut |
45 | 41 | 4 | 85.3 | _bin/cxx-opt+bumproot/osh | mut |
53 | 45 | 8 | 86.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
65 | 45 | 20 | 74.0 | osh-native | mut+alloc |
74 | 51 | 23 | 75.9 | osh-native | mut+alloc+free |
103 | 90 | 12 | 51.7 | osh-native | mut+alloc+free+gc |
108 | 100 | 8 | 52.5 | osh-native | mut+alloc+free+gc+exit |
93 | 69 | 24 | 100.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
149 | 116 | 32 | 68.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 | 1 | 0 | 1.6 | dash | - |
4 | 4 | 0 | 3.1 | bash | - |
4 | 0 | 4 | 3.4 | zsh | - |
5 | 4 | 0 | 11.1 | bumpleak/osh | mut |
5 | 2 | 2 | 10.7 | _bin/cxx-opt+bumproot/osh | mut |
5 | 5 | 0 | 10.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
5 | 5 | 0 | 9.8 | osh-native | mut+alloc |
6 | 0 | 6 | 10.0 | osh-native | mut+alloc+free |
6 | 6 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
6 | 6 | 0 | 8.6 | osh-native | mut+alloc+free+gc+exit |
8 | 8 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
9 | 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 | 19 | 0 | 3.0 | bash | - |
15 | 14 | 0 | 3.5 | zsh | - |
15 | 15 | 0 | 34.4 | bumpleak/osh | mut |
20 | 15 | 4 | 35.1 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 34.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
27 | 15 | 11 | 28.2 | osh-native | mut+alloc |
29 | 22 | 7 | 28.7 | osh-native | mut+alloc+free |
21 | 18 | 4 | 7.8 | osh-native | mut+alloc+free+gc |
21 | 21 | 0 | 7.8 | osh-native | mut+alloc+free+gc+exit |
39 | 31 | 8 | 38.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
29 | 29 | 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 | 47 | 4 | 3.1 | bash | - |
103 | 91 | 12 | 59.9 | bumpleak/osh | mut |
111 | 79 | 32 | 58.7 | _bin/cxx-opt+bumproot/osh | mut |
120 | 88 | 32 | 60.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
129 | 100 | 28 | 50.6 | osh-native | mut+alloc |
135 | 103 | 32 | 52.5 | osh-native | mut+alloc+free |
112 | 80 | 32 | 8.7 | osh-native | mut+alloc+free+gc |
111 | 82 | 29 | 8.7 | osh-native | mut+alloc+free+gc+exit |
144 | 116 | 28 | 67.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
130 | 110 | 20 | 9.9 | _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 |
5 | 5 | 0 | 3.6 | dash | - |
12 | 11 | 1 | 4.5 | bash | - |
9 | 4 | 6 | 3.7 | zsh | - |
11 | 8 | 4 | 12.4 | bumpleak/osh | mut |
11 | 10 | 1 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
11 | 8 | 4 | 12.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
12 | 10 | 3 | 11.1 | osh-native | mut+alloc |
13 | 10 | 3 | 11.1 | osh-native | mut+alloc+free |
13 | 9 | 5 | 9.1 | osh-native | mut+alloc+free+gc |
13 | 13 | 0 | 9.1 | osh-native | mut+alloc+free+gc+exit |
15 | 14 | 1 | 12.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
15 | 12 | 4 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |