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 | 50 | 8 | 18 | 12.1 | 18.1 | 476,737 | 1,282 | 6 | 409,280 | 5 | 204,640 | osh-native |
parse.configure-cpython | 47 | 8 | 18 | 12.0 | 17.6 | 476,737 | 1,282 | 6 | 408,780 | 5 | 204,390 | osh-native-souffle |
parse.configure-coreutils | 236 | 38 | 133 | 41.1 | 45.8 | 1,653,325 | 4,764 | 12 | 1,591,962 | 7 | 795,981 | osh-native |
parse.configure-coreutils | 215 | 37 | 120 | 44.6 | 49.4 | 1,653,324 | 4,764 | 12 | 1,030,664 | 6 | 769,416 | osh-native-souffle |
parse.abuild | 11 | 1 | 2 | 2.6 | 8.7 | 101,928 | 180 | 2 | 75,252 | 1 | 37,626 | osh-native |
parse.abuild | 10 | 1 | 2 | 2.6 | 8.0 | 101,928 | 180 | 2 | 75,122 | 1 | 37,561 | osh-native-souffle |
ex.compute-fib | 33 | 0 | 2 | 2.4 | 8.0 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,903 | osh-native |
ex.compute-fib | 26 | 0 | 2 | 2.4 | 7.5 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,841 | osh-native-souffle |
ex.bashcomp-parse-help | 210 | 0 | 6 | 10.3 | 8.8 | 995,274 | 12,911 | 21 | 50,000 | 0 | 3,891 | osh-native |
ex.bashcomp-parse-help | 203 | 0 | 6 | 10.3 | 8.4 | 995,273 | 12,911 | 21 | 50,000 | 0 | 3,831 | osh-native-souffle |
ex.abuild-print-help | 29 | 1 | 2 | 2.8 | 9.2 | 116,343 | 270 | 3 | 85,488 | 1 | 42,744 | osh-native |
ex.abuild-print-help | 28 | 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 |
8 | 8 | 0 | 1.6 | dash | - |
26 | 23 | 4 | 3.1 | bash | - |
131 | 72 | 67 | 3.4 | zsh | - |
19 | 19 | 0 | 28.3 | bumpleak/osh | mut |
22 | 15 | 7 | 29.2 | _bin/cxx-opt+bumproot/osh | mut |
26 | 21 | 4 | 28.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
35 | 21 | 13 | 25.0 | osh-native | mut+alloc |
38 | 25 | 12 | 25.4 | osh-native | mut+alloc+free |
50 | 35 | 15 | 18.1 | osh-native | mut+alloc+free+gc |
52 | 40 | 12 | 18.1 | osh-native | mut+alloc+free+gc+exit |
50 | 27 | 23 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
71 | 47 | 23 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
32 | 16 | 16 | 24.8 | osh-native-souffle | mut+alloc |
35 | 23 | 12 | 25.2 | osh-native-souffle | mut+alloc+free |
47 | 38 | 9 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
50 | 50 | 0 | 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 |
24 | 24 | 0 | 1.4 | dash | - |
89 | 81 | 8 | 3.1 | bash | - |
462 | 290 | 197 | 3.4 | zsh | - |
55 | 47 | 8 | 85.8 | bumpleak/osh | mut |
69 | 60 | 8 | 85.7 | _bin/cxx-opt+bumproot/osh | mut |
80 | 61 | 19 | 85.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
110 | 63 | 47 | 73.4 | osh-native | mut+alloc |
121 | 61 | 61 | 75.4 | osh-native | mut+alloc+free |
236 | 220 | 16 | 45.8 | osh-native | mut+alloc+free+gc |
241 | 213 | 28 | 46.0 | osh-native | mut+alloc+free+gc+exit |
160 | 116 | 44 | 97.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
357 | 316 | 40 | 61.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
101 | 58 | 43 | 73.0 | osh-native-souffle | mut+alloc |
113 | 68 | 44 | 75.0 | osh-native-souffle | mut+alloc+free |
215 | 203 | 12 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
220 | 184 | 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 | - |
8 | 7 | 0 | 2.9 | bash | - |
9 | 5 | 4 | 3.3 | zsh | - |
7 | 0 | 7 | 11.7 | bumpleak/osh | mut |
8 | 8 | 0 | 11.1 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 11.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
10 | 5 | 5 | 10.1 | osh-native | mut+alloc |
11 | 7 | 4 | 10.1 | osh-native | mut+alloc+free |
11 | 8 | 4 | 8.7 | osh-native | mut+alloc+free+gc |
11 | 11 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
14 | 11 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
15 | 7 | 7 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
10 | 3 | 6 | 9.7 | osh-native-souffle | mut+alloc |
10 | 7 | 3 | 9.7 | osh-native-souffle | mut+alloc+free |
10 | 10 | 0 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
10 | 3 | 7 | 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 |
12 | 12 | 0 | 1.3 | dash | - |
33 | 25 | 7 | 2.9 | bash | - |
27 | 20 | 8 | 3.1 | zsh | - |
21 | 14 | 7 | 31.7 | bumpleak/osh | mut |
29 | 21 | 8 | 31.7 | _bin/cxx-opt+bumproot/osh | mut |
33 | 33 | 0 | 31.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
42 | 19 | 23 | 26.2 | osh-native | mut+alloc |
45 | 28 | 16 | 26.7 | osh-native | mut+alloc+free |
33 | 32 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
32 | 28 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
63 | 43 | 19 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
43 | 43 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
35 | 27 | 8 | 25.8 | osh-native-souffle | mut+alloc |
38 | 23 | 15 | 26.3 | osh-native-souffle | mut+alloc+free |
26 | 22 | 4 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
25 | 21 | 4 | 7.7 | 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 |
83 | 83 | 0 | 3.3 | bash | - |
196 | 128 | 68 | 55.0 | bumpleak/osh | mut |
209 | 160 | 48 | 56.3 | _bin/cxx-opt+bumproot/osh | mut |
264 | 159 | 104 | 55.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
240 | 156 | 84 | 46.9 | osh-native | mut+alloc |
253 | 184 | 68 | 48.7 | osh-native | mut+alloc+free |
210 | 147 | 63 | 8.8 | osh-native | mut+alloc+free+gc |
214 | 146 | 67 | 8.7 | osh-native | mut+alloc+free+gc+exit |
268 | 203 | 64 | 63.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
262 | 198 | 65 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
237 | 156 | 80 | 46.7 | osh-native-souffle | mut+alloc |
246 | 182 | 63 | 48.4 | osh-native-souffle | mut+alloc+free |
203 | 143 | 60 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
202 | 158 | 44 | 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 |
12 | 6 | 7 | 3.7 | dash | - |
26 | 15 | 11 | 4.3 | bash | - |
22 | 18 | 5 | 3.4 | zsh | - |
23 | 16 | 8 | 11.4 | bumpleak/osh | mut |
25 | 12 | 13 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
25 | 18 | 8 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
27 | 19 | 9 | 11.0 | osh-native | mut+alloc |
29 | 19 | 11 | 11.1 | osh-native | mut+alloc+free |
29 | 20 | 9 | 9.2 | osh-native | mut+alloc+free+gc |
30 | 23 | 6 | 8.9 | osh-native | mut+alloc+free+gc+exit |
31 | 15 | 16 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
32 | 20 | 12 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 10 | 17 | 10.5 | osh-native-souffle | mut+alloc |
27 | 14 | 13 | 10.6 | osh-native-souffle | mut+alloc+free |
28 | 24 | 5 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
29 | 15 | 14 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |