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 | 37 | 4 | 10 | 12.1 | 18.0 | 476,720 | 1,282 | 6 | 409,234 | 5 | 204,617 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.6 | 476,720 | 1,282 | 6 | 408,734 | 5 | 204,367 | osh-native-souffle |
parse.configure-coreutils | 162 | 28 | 73 | 44.7 | 49.9 | 1,653,308 | 4,764 | 12 | 1,030,990 | 6 | 769,632 | osh-native |
parse.configure-coreutils | 144 | 25 | 67 | 44.6 | 49.7 | 1,653,307 | 4,764 | 12 | 1,030,618 | 6 | 769,393 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,911 | 180 | 2 | 75,206 | 1 | 37,603 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.3 | 101,911 | 180 | 2 | 75,076 | 1 | 37,538 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.4 | 8.1 | 584,179 | 22,608 | 12 | 50,000 | 0 | 2,880 | osh-native |
ex.compute-fib | 21 | 0 | 1 | 2.4 | 7.6 | 584,179 | 22,608 | 12 | 50,000 | 0 | 2,818 | osh-native-souffle |
ex.bashcomp-parse-help | 184 | 0 | 4 | 10.3 | 8.8 | 995,257 | 12,911 | 21 | 50,000 | 0 | 3,868 | osh-native |
ex.bashcomp-parse-help | 177 | 0 | 3 | 10.3 | 8.3 | 995,256 | 12,911 | 21 | 50,000 | 0 | 3,815 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,326 | 270 | 3 | 85,442 | 1 | 42,721 | osh-native |
ex.abuild-print-help | 28 | 1 | 3 | 2.8 | 8.7 | 116,326 | 270 | 3 | 85,318 | 1 | 42,659 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
7 | 3 | 3 | 1.6 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
104 | 56 | 55 | 3.4 | zsh | - |
16 | 8 | 8 | 29.4 | bumpleak/osh | mut |
20 | 12 | 8 | 30.2 | _bin/cxx-opt+bumproot/osh | mut |
23 | 19 | 4 | 30.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
35 | 12 | 24 | 25.2 | osh-native | mut+alloc |
31 | 16 | 16 | 25.6 | osh-native | mut+alloc+free |
37 | 28 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
40 | 28 | 12 | 18.2 | osh-native | mut+alloc+free+gc+exit |
43 | 19 | 23 | 32.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 44 | 4 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 26 | 0 | 24.6 | osh-native-souffle | mut+alloc |
30 | 21 | 8 | 25.2 | osh-native-souffle | mut+alloc+free |
32 | 24 | 8 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
34 | 30 | 4 | 17.7 | osh-native-souffle | mut+alloc+free+gc+exit |
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 |
22 | 21 | 0 | 1.6 | dash | - |
77 | 77 | 0 | 3.1 | bash | - |
380 | 204 | 200 | 3.7 | zsh | - |
49 | 49 | 0 | 84.6 | bumpleak/osh | mut |
61 | 56 | 4 | 84.7 | _bin/cxx-opt+bumproot/osh | mut |
71 | 71 | 0 | 85.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 65 | 33 | 73.6 | osh-native | mut+alloc |
110 | 83 | 28 | 75.4 | osh-native | mut+alloc+free |
162 | 137 | 24 | 49.9 | osh-native | mut+alloc+free+gc |
160 | 135 | 24 | 50.7 | osh-native | mut+alloc+free+gc+exit |
140 | 104 | 36 | 98.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
204 | 172 | 32 | 66.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
97 | 39 | 58 | 73.0 | osh-native-souffle | mut+alloc |
97 | 72 | 24 | 74.9 | osh-native-souffle | mut+alloc+free |
144 | 112 | 32 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
150 | 133 | 16 | 50.3 | osh-native-souffle | mut+alloc+free+gc+exit |
Parsing abuild
from Alpine Linux.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
2 | 2 | 0 | 1.4 | dash | - |
6 | 6 | 0 | 2.9 | bash | - |
8 | 0 | 7 | 3.3 | zsh | - |
6 | 6 | 0 | 11.1 | bumpleak/osh | mut |
7 | 7 | 0 | 11.4 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 10.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
10 | 5 | 5 | 10.1 | osh-native | mut+alloc |
12 | 8 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.4 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 8 | 0 | 9.8 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.7 | osh-native-souffle | mut+alloc+free |
8 | 8 | 0 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
8 | 4 | 4 | 8.3 | osh-native-souffle | mut+alloc+free+gc+exit |
A synthetic benchmark for POSIX shell arithmetic.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
10 | 10 | 0 | 1.4 | dash | - |
29 | 29 | 0 | 2.9 | bash | - |
24 | 24 | 0 | 3.3 | zsh | - |
19 | 15 | 4 | 32.1 | bumpleak/osh | mut |
26 | 21 | 4 | 32.1 | _bin/cxx-opt+bumproot/osh | mut |
28 | 23 | 4 | 33.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.2 | osh-native | mut+alloc |
37 | 30 | 7 | 26.6 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.1 | osh-native | mut+alloc+free+gc |
28 | 23 | 5 | 8.0 | osh-native | mut+alloc+free+gc+exit |
53 | 32 | 20 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
36 | 32 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 18 | 11 | 26.0 | osh-native-souffle | mut+alloc |
31 | 16 | 16 | 26.2 | osh-native-souffle | mut+alloc+free |
21 | 21 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
21 | 21 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc+exit |
A realistic bash-completion
workload.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
74 | 66 | 8 | 3.0 | bash | - |
167 | 103 | 64 | 55.2 | bumpleak/osh | mut |
181 | 117 | 64 | 54.4 | _bin/cxx-opt+bumproot/osh | mut |
193 | 129 | 64 | 56.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 136 | 76 | 46.9 | osh-native | mut+alloc |
218 | 131 | 87 | 48.8 | osh-native | mut+alloc+free |
184 | 128 | 56 | 8.8 | osh-native | mut+alloc+free+gc |
183 | 139 | 44 | 8.8 | osh-native | mut+alloc+free+gc+exit |
235 | 121 | 113 | 62.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 148 | 60 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
206 | 129 | 77 | 46.6 | osh-native-souffle | mut+alloc |
211 | 143 | 68 | 48.2 | osh-native-souffle | mut+alloc+free |
177 | 140 | 36 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
178 | 121 | 56 | 8.4 | osh-native-souffle | mut+alloc+free+gc+exit |
Running abuild -h
from Alpine Linux.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
10 | 7 | 3 | 3.4 | dash | - |
20 | 19 | 2 | 4.5 | bash | - |
18 | 7 | 12 | 3.5 | zsh | - |
18 | 16 | 2 | 11.8 | bumpleak/osh | mut |
19 | 11 | 9 | 13.7 | _bin/cxx-opt+bumproot/osh | mut |
20 | 17 | 4 | 12.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 15 | 7 | 10.9 | osh-native | mut+alloc |
22 | 14 | 8 | 11.1 | osh-native | mut+alloc+free |
22 | 14 | 8 | 9.0 | osh-native | mut+alloc+free+gc |
22 | 12 | 11 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 19 | 6 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 19 | 6 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 14 | 6 | 10.6 | osh-native-souffle | mut+alloc |
21 | 16 | 5 | 10.7 | osh-native-souffle | mut+alloc+free |
28 | 20 | 9 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 13 | 10 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |