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 | 36 | 4 | 10 | 12.1 | 18.0 | 476,737 | 1,282 | 6 | 409,280 | 5 | 204,640 | osh-native |
parse.configure-cpython | 32 | 3 | 10 | 12.0 | 17.6 | 476,737 | 1,282 | 6 | 408,780 | 5 | 204,390 | osh-native-souffle |
parse.configure-coreutils | 155 | 20 | 70 | 41.1 | 45.8 | 1,653,325 | 4,764 | 12 | 1,591,962 | 7 | 795,981 | osh-native |
parse.configure-coreutils | 137 | 23 | 61 | 44.6 | 49.7 | 1,653,324 | 4,764 | 12 | 1,030,664 | 6 | 769,416 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,928 | 180 | 2 | 75,252 | 1 | 37,626 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.3 | 101,928 | 180 | 2 | 75,122 | 1 | 37,561 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.4 | 8.0 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,903 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.4 | 7.5 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,841 | osh-native-souffle |
ex.bashcomp-parse-help | 180 | 0 | 4 | 10.3 | 8.8 | 995,274 | 12,911 | 21 | 50,000 | 0 | 3,891 | osh-native |
ex.bashcomp-parse-help | 174 | 0 | 4 | 10.3 | 8.3 | 995,273 | 12,911 | 21 | 50,000 | 0 | 3,831 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 116,343 | 270 | 3 | 85,488 | 1 | 42,744 | osh-native |
ex.abuild-print-help | 20 | 1 | 2 | 2.8 | 8.7 | 116,343 | 270 | 3 | 85,364 | 1 | 42,682 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.4 | dash | - |
23 | 23 | 0 | 2.9 | bash | - |
103 | 65 | 44 | 3.4 | zsh | - |
15 | 12 | 4 | 28.8 | bumpleak/osh | mut |
19 | 15 | 4 | 30.0 | _bin/cxx-opt+bumproot/osh | mut |
22 | 22 | 0 | 29.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 29 | 0 | 25.3 | osh-native | mut+alloc |
31 | 15 | 15 | 25.6 | osh-native | mut+alloc+free |
36 | 28 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 32 | 4 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 31 | 12 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 38 | 8 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 15 | 11 | 24.8 | osh-native-souffle | mut+alloc |
28 | 16 | 12 | 25.2 | osh-native-souffle | mut+alloc+free |
32 | 24 | 8 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 25 | 7 | 17.6 | 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 |
21 | 18 | 4 | 1.6 | dash | - |
78 | 78 | 0 | 3.1 | bash | - |
375 | 234 | 161 | 3.4 | zsh | - |
47 | 43 | 4 | 85.5 | bumpleak/osh | mut |
58 | 49 | 8 | 84.6 | _bin/cxx-opt+bumproot/osh | mut |
69 | 64 | 4 | 85.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 54 | 45 | 73.6 | osh-native | mut+alloc |
105 | 65 | 40 | 75.3 | osh-native | mut+alloc+free |
155 | 107 | 48 | 45.8 | osh-native | mut+alloc+free+gc |
158 | 146 | 12 | 46.0 | osh-native | mut+alloc+free+gc+exit |
135 | 115 | 20 | 99.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
216 | 180 | 36 | 61.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 52 | 36 | 73.2 | osh-native-souffle | mut+alloc |
93 | 62 | 31 | 75.0 | osh-native-souffle | mut+alloc+free |
137 | 117 | 20 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
142 | 110 | 32 | 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.3 | dash | - |
6 | 6 | 0 | 3.0 | bash | - |
8 | 4 | 4 | 3.1 | zsh | - |
6 | 3 | 3 | 11.0 | bumpleak/osh | mut |
7 | 3 | 3 | 11.3 | _bin/cxx-opt+bumproot/osh | mut |
7 | 3 | 3 | 11.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.0 | osh-native | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.7 | 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 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc+free |
8 | 0 | 8 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
8 | 9 | 0 | 8.4 | 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.3 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
23 | 19 | 4 | 3.3 | zsh | - |
18 | 13 | 4 | 32.2 | bumpleak/osh | mut |
26 | 22 | 4 | 32.9 | _bin/cxx-opt+bumproot/osh | mut |
27 | 15 | 12 | 32.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.5 | osh-native | mut+alloc |
37 | 26 | 11 | 26.6 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
53 | 33 | 20 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 30 | 7 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 21 | 8 | 25.8 | osh-native-souffle | mut+alloc |
31 | 30 | 0 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
21 | 17 | 4 | 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 |
76 | 68 | 8 | 3.0 | bash | - |
167 | 119 | 48 | 54.5 | bumpleak/osh | mut |
180 | 128 | 52 | 55.9 | _bin/cxx-opt+bumproot/osh | mut |
194 | 149 | 44 | 56.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
209 | 169 | 39 | 47.1 | osh-native | mut+alloc |
216 | 144 | 72 | 49.0 | osh-native | mut+alloc+free |
180 | 104 | 76 | 8.8 | osh-native | mut+alloc+free+gc |
181 | 132 | 48 | 8.7 | osh-native | mut+alloc+free+gc+exit |
231 | 151 | 79 | 64.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 161 | 48 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
202 | 133 | 69 | 46.6 | osh-native-souffle | mut+alloc |
208 | 140 | 68 | 48.5 | osh-native-souffle | mut+alloc+free |
174 | 117 | 57 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
173 | 125 | 48 | 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 | 9 | 1 | 3.5 | dash | - |
19 | 10 | 10 | 4.5 | bash | - |
17 | 7 | 11 | 3.4 | zsh | - |
20 | 11 | 9 | 12.5 | bumpleak/osh | mut |
19 | 12 | 8 | 12.2 | _bin/cxx-opt+bumproot/osh | mut |
21 | 11 | 11 | 13.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 17 | 4 | 11.0 | osh-native | mut+alloc |
21 | 6 | 16 | 11.0 | osh-native | mut+alloc+free |
22 | 20 | 2 | 8.9 | osh-native | mut+alloc+free+gc |
22 | 15 | 8 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 18 | 6 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 18 | 7 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
19 | 18 | 2 | 10.6 | osh-native-souffle | mut+alloc |
20 | 13 | 8 | 10.6 | osh-native-souffle | mut+alloc+free |
20 | 20 | 1 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 17 | 5 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |