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 | 34 | 3 | 9 | 12.1 | 18.1 | 476,737 | 1,282 | 6 | 409,280 | 5 | 204,640 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.4 | 476,737 | 1,282 | 6 | 408,780 | 5 | 204,390 | osh-native-souffle |
parse.configure-coreutils | 148 | 20 | 65 | 41.1 | 45.9 | 1,653,325 | 4,764 | 12 | 1,591,962 | 7 | 795,981 | osh-native |
parse.configure-coreutils | 132 | 22 | 56 | 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.1 | 101,928 | 180 | 2 | 75,122 | 1 | 37,561 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.4 | 7.9 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,903 | osh-native |
ex.compute-fib | 21 | 0 | 1 | 2.4 | 7.6 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,841 | osh-native-souffle |
ex.bashcomp-parse-help | 181 | 0 | 3 | 10.3 | 8.5 | 995,274 | 12,911 | 21 | 50,000 | 0 | 3,891 | osh-native |
ex.bashcomp-parse-help | 172 | 0 | 3 | 10.3 | 8.4 | 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 | 21 | 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.6 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
104 | 62 | 48 | 3.3 | zsh | - |
16 | 12 | 4 | 28.2 | bumpleak/osh | mut |
19 | 14 | 5 | 30.2 | _bin/cxx-opt+bumproot/osh | mut |
23 | 15 | 7 | 29.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 11 | 18 | 25.3 | osh-native | mut+alloc |
30 | 21 | 9 | 25.6 | osh-native | mut+alloc+free |
34 | 21 | 13 | 18.1 | osh-native | mut+alloc+free+gc |
35 | 27 | 8 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 32 | 12 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 35 | 12 | 21.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 9 | 17 | 24.8 | osh-native-souffle | mut+alloc |
27 | 14 | 14 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 20 | 12 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
32 | 32 | 0 | 17.8 | 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 | 22 | 0 | 1.6 | dash | - |
78 | 73 | 4 | 3.1 | bash | - |
378 | 224 | 176 | 3.5 | zsh | - |
49 | 44 | 4 | 84.4 | bumpleak/osh | mut |
60 | 55 | 4 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
71 | 67 | 4 | 86.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 60 | 36 | 73.6 | osh-native | mut+alloc |
104 | 68 | 36 | 75.3 | osh-native | mut+alloc+free |
148 | 132 | 16 | 45.9 | osh-native | mut+alloc+free+gc |
153 | 129 | 24 | 46.0 | osh-native | mut+alloc+free+gc+exit |
139 | 98 | 41 | 98.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
215 | 171 | 44 | 61.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
86 | 47 | 39 | 73.2 | osh-native-souffle | mut+alloc |
94 | 77 | 16 | 74.9 | osh-native-souffle | mut+alloc+free |
132 | 92 | 40 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
137 | 100 | 36 | 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 | 3.0 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 6 | 0 | 11.6 | bumpleak/osh | mut |
6 | 6 | 0 | 10.9 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 12.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 0 | 8 | 10.0 | osh-native | mut+alloc |
8 | 8 | 0 | 10.2 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.8 | osh-native | mut+alloc+free+gc+exit |
11 | 6 | 6 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 4 | 8 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 4 | 4 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
8 | 4 | 4 | 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 | 7 | 3 | 1.6 | dash | - |
29 | 28 | 0 | 3.0 | bash | - |
23 | 23 | 0 | 3.3 | zsh | - |
19 | 19 | 0 | 32.5 | bumpleak/osh | mut |
25 | 21 | 4 | 32.6 | _bin/cxx-opt+bumproot/osh | mut |
27 | 23 | 4 | 33.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 26.5 | osh-native | mut+alloc |
37 | 20 | 16 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
27 | 23 | 4 | 7.7 | osh-native | mut+alloc+free+gc+exit |
53 | 32 | 20 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
36 | 36 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
29 | 21 | 8 | 25.8 | osh-native-souffle | mut+alloc |
31 | 22 | 9 | 26.2 | osh-native-souffle | mut+alloc+free |
21 | 17 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 22 | 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 |
73 | 73 | 0 | 3.1 | bash | - |
168 | 100 | 68 | 54.8 | bumpleak/osh | mut |
180 | 124 | 56 | 54.5 | _bin/cxx-opt+bumproot/osh | mut |
194 | 154 | 40 | 55.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 112 | 100 | 47.1 | osh-native | mut+alloc |
215 | 151 | 64 | 48.6 | osh-native | mut+alloc+free |
181 | 133 | 47 | 8.5 | osh-native | mut+alloc+free+gc |
183 | 127 | 56 | 8.7 | osh-native | mut+alloc+free+gc+exit |
231 | 162 | 69 | 63.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 148 | 60 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
203 | 147 | 56 | 46.6 | osh-native-souffle | mut+alloc |
205 | 113 | 93 | 48.4 | osh-native-souffle | mut+alloc+free |
172 | 100 | 72 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
172 | 120 | 52 | 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 | 8 | 2 | 3.5 | dash | - |
19 | 13 | 7 | 4.3 | bash | - |
17 | 16 | 2 | 3.5 | zsh | - |
17 | 13 | 5 | 13.0 | bumpleak/osh | mut |
21 | 12 | 9 | 13.0 | _bin/cxx-opt+bumproot/osh | mut |
20 | 11 | 9 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
20 | 15 | 6 | 11.0 | osh-native | mut+alloc |
22 | 7 | 16 | 11.3 | osh-native | mut+alloc+free |
22 | 17 | 6 | 8.9 | osh-native | mut+alloc+free+gc |
22 | 16 | 6 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 16 | 8 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 15 | 10 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
21 | 9 | 12 | 10.6 | osh-native-souffle | mut+alloc |
21 | 16 | 6 | 10.6 | osh-native-souffle | mut+alloc+free |
21 | 12 | 9 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 19 | 3 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |