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 | 24 | 2 | 7 | 12.2 | 17.9 | 478,359 | 1,282 | 6 | 428,228 | 5 | 214,114 | osh-native |
parse.configure-coreutils | 92 | 15 | 33 | 46.2 | 51.8 | 1,660,610 | 4,764 | 10 | 1,189,390 | 7 | 594,695 | osh-native |
parse.abuild | 5 | 0 | 1 | 2.7 | 8.5 | 102,532 | 180 | 2 | 75,968 | 1 | 37,984 | osh-native |
ex.compute-fib | 20 | 0 | 1 | 3.0 | 7.8 | 651,800 | 31,810 | 13 | 50,000 | 0 | 2,829 | osh-native |
ex.bashcomp-parse-help | 112 | 0 | 2 | 12.3 | 8.6 | 1,077,990 | 27,375 | 23 | 50,000 | 0 | 3,938 | osh-native |
ex.abuild-print-help | 14 | 0 | 1 | 2.9 | 9.0 | 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 | 12 | 4 | 3.1 | bash | - |
77 | 41 | 40 | 3.5 | zsh | - |
12 | 0 | 12 | 28.3 | bumpleak/osh | mut |
13 | 13 | 0 | 28.5 | _bin/cxx-opt+bumproot/osh | mut |
15 | 15 | 0 | 30.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
19 | 5 | 14 | 25.1 | osh-native | mut+alloc |
20 | 20 | 0 | 25.5 | osh-native | mut+alloc+free |
24 | 16 | 8 | 17.9 | osh-native | mut+alloc+free+gc |
24 | 24 | 0 | 18.1 | osh-native | mut+alloc+free+gc+exit |
27 | 19 | 8 | 32.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
32 | 20 | 12 | 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.7 | dash | - |
55 | 51 | 4 | 3.4 | bash | - |
238 | 153 | 98 | 3.6 | zsh | - |
36 | 28 | 8 | 84.9 | bumpleak/osh | mut |
45 | 36 | 8 | 85.2 | _bin/cxx-opt+bumproot/osh | mut |
51 | 39 | 12 | 86.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
64 | 40 | 24 | 74.1 | osh-native | mut+alloc |
71 | 43 | 28 | 75.8 | osh-native | mut+alloc+free |
92 | 80 | 12 | 51.8 | osh-native | mut+alloc+free+gc |
98 | 93 | 4 | 52.5 | osh-native | mut+alloc+free+gc+exit |
91 | 67 | 24 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
124 | 108 | 16 | 68.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 |
1 | 0 | 1 | 1.6 | dash | - |
4 | 4 | 0 | 3.1 | bash | - |
4 | 4 | 0 | 3.5 | zsh | - |
4 | 4 | 0 | 11.8 | bumpleak/osh | mut |
4 | 0 | 4 | 11.0 | _bin/cxx-opt+bumproot/osh | mut |
4 | 0 | 4 | 11.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
5 | 5 | 0 | 10.2 | osh-native | mut+alloc |
5 | 5 | 0 | 10.1 | osh-native | mut+alloc+free |
5 | 5 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
5 | 5 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
7 | 7 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
7 | 7 | 0 | 9.5 | _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 | 2.9 | bash | - |
14 | 11 | 4 | 3.4 | zsh | - |
14 | 14 | 0 | 33.4 | bumpleak/osh | mut |
18 | 14 | 4 | 35.3 | _bin/cxx-opt+bumproot/osh | mut |
21 | 21 | 0 | 34.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
25 | 21 | 4 | 28.3 | osh-native | mut+alloc |
27 | 27 | 0 | 28.7 | osh-native | mut+alloc+free |
20 | 16 | 4 | 7.8 | osh-native | mut+alloc+free+gc |
20 | 17 | 3 | 7.9 | osh-native | mut+alloc+free+gc+exit |
37 | 33 | 4 | 38.9 | _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.1 | bash | - |
100 | 60 | 40 | 58.2 | bumpleak/osh | mut |
108 | 96 | 12 | 58.9 | _bin/cxx-opt+bumproot/osh | mut |
117 | 82 | 35 | 59.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
126 | 98 | 28 | 50.6 | osh-native | mut+alloc |
134 | 90 | 43 | 52.5 | osh-native | mut+alloc+free |
112 | 79 | 32 | 8.6 | osh-native | mut+alloc+free+gc |
109 | 89 | 20 | 8.7 | osh-native | mut+alloc+free+gc+exit |
140 | 108 | 32 | 67.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
128 | 100 | 28 | 9.8 | _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.7 | dash | - |
12 | 12 | 0 | 4.6 | bash | - |
10 | 10 | 0 | 3.6 | zsh | - |
11 | 10 | 1 | 11.4 | bumpleak/osh | mut |
13 | 11 | 2 | 13.3 | _bin/cxx-opt+bumproot/osh | mut |
13 | 5 | 8 | 13.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
13 | 12 | 1 | 11.0 | osh-native | mut+alloc |
13 | 9 | 4 | 11.1 | osh-native | mut+alloc+free |
14 | 14 | 0 | 9.0 | osh-native | mut+alloc+free+gc |
14 | 13 | 1 | 9.1 | osh-native | mut+alloc+free+gc+exit |
15 | 11 | 4 | 12.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
15 | 16 | 0 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |