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.1 | 476,737 | 1,282 | 6 | 409,280 | 5 | 204,640 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.7 | 476,737 | 1,282 | 6 | 408,780 | 5 | 204,390 | osh-native-souffle |
parse.configure-coreutils | 168 | 25 | 82 | 41.1 | 45.8 | 1,653,325 | 4,764 | 12 | 1,591,962 | 7 | 795,981 | osh-native |
parse.configure-coreutils | 145 | 25 | 69 | 44.6 | 49.8 | 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 | 1 | 2.4 | 8.0 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,903 | osh-native |
ex.compute-fib | 23 | 0 | 1 | 2.4 | 7.5 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,841 | osh-native-souffle |
ex.bashcomp-parse-help | 181 | 0 | 3 | 10.3 | 8.8 | 995,274 | 12,911 | 21 | 50,000 | 0 | 3,891 | osh-native |
ex.bashcomp-parse-help | 177 | 0 | 3 | 10.3 | 8.4 | 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 | 3 | 3 | 1.6 | dash | - |
23 | 23 | 0 | 3.1 | bash | - |
105 | 59 | 52 | 3.4 | zsh | - |
16 | 12 | 4 | 29.6 | bumpleak/osh | mut |
20 | 8 | 12 | 28.5 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 29.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 22 | 7 | 25.2 | osh-native | mut+alloc |
31 | 19 | 12 | 25.6 | osh-native | mut+alloc+free |
36 | 24 | 12 | 18.1 | osh-native | mut+alloc+free+gc |
40 | 28 | 12 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 28 | 16 | 33.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
50 | 31 | 19 | 22.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 15 | 11 | 24.8 | osh-native-souffle | mut+alloc |
29 | 14 | 14 | 25.2 | osh-native-souffle | mut+alloc+free |
33 | 21 | 11 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
34 | 30 | 4 | 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 |
22 | 21 | 0 | 1.4 | dash | - |
78 | 78 | 0 | 3.1 | bash | - |
386 | 194 | 213 | 3.5 | zsh | - |
49 | 45 | 4 | 84.9 | bumpleak/osh | mut |
59 | 43 | 16 | 85.3 | _bin/cxx-opt+bumproot/osh | mut |
71 | 66 | 4 | 85.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 68 | 28 | 73.4 | osh-native | mut+alloc |
105 | 65 | 40 | 75.3 | osh-native | mut+alloc+free |
168 | 155 | 12 | 45.8 | osh-native | mut+alloc+free+gc |
171 | 151 | 20 | 46.0 | osh-native | mut+alloc+free+gc+exit |
136 | 88 | 48 | 99.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
239 | 207 | 32 | 61.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 59 | 27 | 73.2 | osh-native-souffle | mut+alloc |
94 | 51 | 43 | 74.9 | osh-native-souffle | mut+alloc+free |
145 | 120 | 24 | 49.8 | osh-native-souffle | mut+alloc+free+gc |
152 | 124 | 28 | 50.5 | 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 | 3 | 3 | 2.9 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 3 | 3 | 11.7 | bumpleak/osh | mut |
7 | 4 | 4 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.0 | osh-native | mut+alloc |
9 | 6 | 3 | 10.2 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
10 | 10 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
11 | 8 | 4 | 11.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 8 | 0 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
9 | 6 | 3 | 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 | 7 | 4 | 1.6 | dash | - |
29 | 28 | 0 | 3.0 | bash | - |
24 | 16 | 8 | 3.1 | zsh | - |
18 | 15 | 4 | 31.7 | bumpleak/osh | mut |
26 | 22 | 4 | 31.7 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 20 | 16 | 26.3 | osh-native | mut+alloc |
38 | 33 | 4 | 26.7 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 29 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 46 | 8 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 26 | 11 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 7 | 22 | 26.0 | osh-native-souffle | mut+alloc |
32 | 20 | 12 | 26.3 | osh-native-souffle | mut+alloc+free |
23 | 23 | 0 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 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 |
73 | 69 | 4 | 3.1 | bash | - |
168 | 112 | 56 | 54.6 | bumpleak/osh | mut |
180 | 100 | 80 | 56.3 | _bin/cxx-opt+bumproot/osh | mut |
194 | 117 | 77 | 56.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 132 | 80 | 47.0 | osh-native | mut+alloc |
218 | 161 | 56 | 48.7 | osh-native | mut+alloc+free |
181 | 102 | 78 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 134 | 47 | 8.8 | osh-native | mut+alloc+free+gc+exit |
236 | 144 | 92 | 62.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 160 | 48 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 116 | 88 | 46.6 | osh-native-souffle | mut+alloc |
213 | 148 | 64 | 48.5 | osh-native-souffle | mut+alloc+free |
177 | 114 | 63 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
175 | 127 | 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 | 7 | 3 | 3.4 | dash | - |
20 | 19 | 2 | 4.5 | bash | - |
18 | 9 | 10 | 3.4 | zsh | - |
20 | 7 | 14 | 12.9 | bumpleak/osh | mut |
19 | 15 | 5 | 13.8 | _bin/cxx-opt+bumproot/osh | mut |
23 | 14 | 10 | 13.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 19 | 3 | 10.9 | osh-native | mut+alloc |
23 | 18 | 6 | 11.3 | osh-native | mut+alloc+free |
23 | 11 | 12 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 20 | 4 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 14 | 11 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 23 | 3 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 13 | 7 | 10.6 | osh-native-souffle | mut+alloc |
21 | 11 | 11 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 13 | 9 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
22 | 11 | 12 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |