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 | 35 | 3 | 9 | 12.1 | 18.0 | 476,737 | 1,282 | 6 | 409,280 | 5 | 204,640 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.6 | 476,737 | 1,282 | 6 | 408,780 | 5 | 204,390 | osh-native-souffle |
parse.configure-coreutils | 163 | 23 | 77 | 41.1 | 45.8 | 1,653,325 | 4,764 | 12 | 1,591,962 | 7 | 795,981 | osh-native |
parse.configure-coreutils | 146 | 23 | 67 | 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 | 29 | 0 | 2 | 2.4 | 8.1 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,903 | osh-native |
ex.compute-fib | 24 | 0 | 2 | 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 | 175 | 0 | 3 | 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 | 9.0 | 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 |
7 | 7 | 0 | 1.4 | dash | - |
23 | 23 | 0 | 3.1 | bash | - |
105 | 57 | 53 | 3.4 | zsh | - |
17 | 9 | 9 | 29.6 | bumpleak/osh | mut |
19 | 15 | 4 | 29.0 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 28.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 21 | 8 | 25.2 | osh-native | mut+alloc |
32 | 27 | 4 | 25.6 | osh-native | mut+alloc+free |
35 | 23 | 12 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 32 | 4 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 20 | 23 | 32.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
50 | 34 | 15 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 15 | 11 | 24.6 | osh-native-souffle | mut+alloc |
29 | 24 | 4 | 25.2 | osh-native-souffle | mut+alloc+free |
32 | 28 | 4 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
34 | 29 | 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 | 78 | 0 | 3.1 | bash | - |
374 | 215 | 180 | 3.5 | zsh | - |
49 | 41 | 8 | 85.6 | bumpleak/osh | mut |
58 | 43 | 16 | 84.6 | _bin/cxx-opt+bumproot/osh | mut |
70 | 54 | 15 | 85.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 65 | 32 | 73.6 | osh-native | mut+alloc |
107 | 79 | 28 | 75.3 | osh-native | mut+alloc+free |
163 | 143 | 20 | 45.8 | osh-native | mut+alloc+free+gc |
165 | 145 | 20 | 46.1 | osh-native | mut+alloc+free+gc+exit |
138 | 79 | 59 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
229 | 185 | 44 | 60.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
89 | 64 | 24 | 73.2 | osh-native-souffle | mut+alloc |
97 | 56 | 40 | 75.0 | osh-native-souffle | mut+alloc+free |
146 | 133 | 12 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
147 | 127 | 20 | 50.2 | 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 | 2.8 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 0 | 6 | 12.2 | bumpleak/osh | mut |
7 | 0 | 7 | 11.5 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 10.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.0 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 5 | 5 | 8.5 | 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 |
12 | 4 | 8 | 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.6 | osh-native-souffle | mut+alloc+free |
8 | 8 | 0 | 8.1 | 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 | 10 | 0 | 1.4 | dash | - |
28 | 28 | 0 | 2.9 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
19 | 11 | 8 | 32.5 | bumpleak/osh | mut |
26 | 22 | 4 | 33.0 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 31.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.5 | osh-native | mut+alloc |
38 | 25 | 13 | 26.6 | osh-native | mut+alloc+free |
29 | 24 | 4 | 8.1 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 8.1 | osh-native | mut+alloc+free+gc+exit |
53 | 24 | 29 | 36.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 29 | 7 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 11 | 19 | 26.0 | osh-native-souffle | mut+alloc |
32 | 16 | 16 | 26.3 | osh-native-souffle | mut+alloc+free |
24 | 20 | 4 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 18 | 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 |
74 | 70 | 4 | 3.1 | bash | - |
168 | 104 | 64 | 55.5 | bumpleak/osh | mut |
182 | 118 | 63 | 56.0 | _bin/cxx-opt+bumproot/osh | mut |
195 | 151 | 44 | 56.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 143 | 68 | 47.0 | osh-native | mut+alloc |
220 | 112 | 108 | 48.7 | osh-native | mut+alloc+free |
181 | 132 | 48 | 8.8 | osh-native | mut+alloc+free+gc |
185 | 120 | 64 | 8.7 | osh-native | mut+alloc+free+gc+exit |
233 | 128 | 104 | 63.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 145 | 64 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 147 | 56 | 46.5 | osh-native-souffle | mut+alloc |
212 | 156 | 56 | 48.3 | osh-native-souffle | mut+alloc+free |
175 | 126 | 49 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
175 | 131 | 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 |
10 | 9 | 1 | 3.4 | dash | - |
20 | 14 | 6 | 4.5 | bash | - |
18 | 13 | 5 | 3.5 | zsh | - |
20 | 10 | 10 | 12.7 | bumpleak/osh | mut |
20 | 12 | 9 | 11.6 | _bin/cxx-opt+bumproot/osh | mut |
20 | 13 | 7 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 12 | 11 | 10.9 | osh-native | mut+alloc |
23 | 17 | 6 | 11.1 | osh-native | mut+alloc+free |
22 | 19 | 4 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 18 | 5 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 22 | 3 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 17 | 8 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 17 | 3 | 10.6 | osh-native-souffle | mut+alloc |
22 | 12 | 11 | 10.5 | osh-native-souffle | mut+alloc+free |
21 | 14 | 8 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 11 | 11 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |