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 | 39 | 6 | 12 | 12.1 | 18.0 | 476,737 | 1,282 | 6 | 409,280 | 5 | 204,640 | osh-native |
parse.configure-cpython | 35 | 5 | 11 | 12.0 | 17.4 | 476,737 | 1,282 | 6 | 408,780 | 5 | 204,390 | osh-native-souffle |
parse.configure-coreutils | 189 | 29 | 100 | 41.1 | 45.8 | 1,653,325 | 4,764 | 12 | 1,591,962 | 7 | 795,981 | osh-native |
parse.configure-coreutils | 164 | 29 | 84 | 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.7 | 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 | 29 | 0 | 2 | 2.4 | 8.0 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,903 | osh-native |
ex.compute-fib | 23 | 0 | 2 | 2.4 | 7.5 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,841 | osh-native-souffle |
ex.bashcomp-parse-help | 184 | 0 | 4 | 10.3 | 8.7 | 995,274 | 12,911 | 21 | 50,000 | 0 | 3,891 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 4 | 10.3 | 8.3 | 995,273 | 12,911 | 21 | 50,000 | 0 | 3,831 | osh-native-souffle |
ex.abuild-print-help | 23 | 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.4 | 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 | - |
24 | 20 | 4 | 3.1 | bash | - |
107 | 68 | 46 | 3.4 | zsh | - |
16 | 16 | 0 | 28.9 | bumpleak/osh | mut |
21 | 12 | 8 | 30.4 | _bin/cxx-opt+bumproot/osh | mut |
23 | 23 | 0 | 30.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 11 | 18 | 25.0 | osh-native | mut+alloc |
33 | 16 | 16 | 25.7 | osh-native | mut+alloc+free |
39 | 34 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
39 | 35 | 4 | 18.1 | osh-native | mut+alloc+free+gc+exit |
45 | 24 | 20 | 33.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
55 | 43 | 12 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 14 | 14 | 24.9 | osh-native-souffle | mut+alloc |
30 | 21 | 8 | 25.3 | osh-native-souffle | mut+alloc+free |
35 | 27 | 8 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
36 | 32 | 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 | - |
78 | 70 | 8 | 3.3 | bash | - |
399 | 225 | 192 | 3.7 | zsh | - |
50 | 41 | 8 | 85.4 | bumpleak/osh | mut |
60 | 56 | 4 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
72 | 36 | 36 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 77 | 20 | 73.3 | osh-native | mut+alloc |
108 | 92 | 16 | 75.4 | osh-native | mut+alloc+free |
189 | 173 | 16 | 45.8 | osh-native | mut+alloc+free+gc |
197 | 169 | 28 | 46.1 | osh-native | mut+alloc+free+gc+exit |
141 | 76 | 64 | 97.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
274 | 234 | 40 | 61.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
90 | 55 | 35 | 73.2 | osh-native-souffle | mut+alloc |
99 | 67 | 31 | 75.0 | osh-native-souffle | mut+alloc+free |
164 | 140 | 24 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
172 | 148 | 24 | 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 | 4 | 4 | 3.3 | zsh | - |
6 | 6 | 0 | 12.2 | bumpleak/osh | mut |
7 | 3 | 3 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
8 | 8 | 0 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc |
9 | 0 | 9 | 10.1 | osh-native | mut+alloc+free |
9 | 5 | 5 | 8.7 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
13 | 13 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.7 | osh-native-souffle | mut+alloc+free |
8 | 0 | 8 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
9 | 9 | 0 | 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 |
11 | 11 | 0 | 1.4 | dash | - |
29 | 25 | 4 | 2.9 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
19 | 7 | 11 | 31.1 | bumpleak/osh | mut |
26 | 22 | 4 | 32.2 | _bin/cxx-opt+bumproot/osh | mut |
29 | 29 | 0 | 33.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 33 | 4 | 26.3 | osh-native | mut+alloc |
39 | 23 | 16 | 26.7 | osh-native | mut+alloc+free |
29 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 29 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 27 | 27 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
41 | 37 | 4 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 16 | 16 | 26.0 | osh-native-souffle | mut+alloc |
33 | 7 | 25 | 26.2 | osh-native-souffle | mut+alloc+free |
23 | 23 | 0 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 18 | 4 | 7.3 | 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 | 69 | 4 | 3.1 | bash | - |
170 | 109 | 61 | 53.9 | bumpleak/osh | mut |
181 | 92 | 88 | 56.1 | _bin/cxx-opt+bumproot/osh | mut |
199 | 99 | 99 | 56.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
215 | 147 | 67 | 47.0 | osh-native | mut+alloc |
224 | 144 | 80 | 48.7 | osh-native | mut+alloc+free |
184 | 128 | 56 | 8.7 | osh-native | mut+alloc+free+gc |
185 | 130 | 55 | 8.8 | osh-native | mut+alloc+free+gc+exit |
235 | 143 | 92 | 62.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
215 | 159 | 56 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
206 | 121 | 85 | 46.7 | osh-native-souffle | mut+alloc |
216 | 156 | 60 | 48.3 | osh-native-souffle | mut+alloc+free |
175 | 103 | 72 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
177 | 148 | 28 | 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 | - |
20 | 14 | 7 | 4.3 | bash | - |
18 | 18 | 1 | 3.4 | zsh | - |
21 | 18 | 3 | 12.5 | bumpleak/osh | mut |
21 | 14 | 7 | 13.9 | _bin/cxx-opt+bumproot/osh | mut |
23 | 19 | 4 | 13.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
23 | 11 | 12 | 11.0 | osh-native | mut+alloc |
23 | 16 | 7 | 11.3 | osh-native | mut+alloc+free |
23 | 14 | 9 | 8.9 | osh-native | mut+alloc+free+gc |
24 | 19 | 5 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 14 | 11 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 19 | 7 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
21 | 13 | 8 | 10.6 | osh-native-souffle | mut+alloc |
22 | 20 | 3 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 20 | 2 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
22 | 11 | 12 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |