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 | 38 | 5 | 11 | 12.1 | 18.0 | 476,750 | 1,282 | 6 | 409,306 | 5 | 204,653 | osh-native |
parse.configure-cpython | 33 | 3 | 9 | 12.0 | 17.4 | 476,750 | 1,282 | 6 | 408,806 | 5 | 204,403 | osh-native-souffle |
parse.configure-coreutils | 182 | 28 | 94 | 41.1 | 45.9 | 1,653,338 | 4,764 | 12 | 1,591,988 | 7 | 795,994 | osh-native |
parse.configure-coreutils | 148 | 27 | 71 | 44.6 | 49.5 | 1,653,337 | 4,764 | 12 | 1,030,690 | 6 | 769,429 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,941 | 180 | 2 | 75,278 | 1 | 37,639 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.1 | 101,941 | 180 | 2 | 75,148 | 1 | 37,574 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 2 | 2.4 | 8.0 | 584,206 | 22,608 | 12 | 50,000 | 0 | 2,916 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.4 | 7.6 | 584,206 | 22,608 | 12 | 50,000 | 0 | 2,854 | osh-native-souffle |
ex.bashcomp-parse-help | 183 | 0 | 4 | 10.3 | 8.7 | 995,287 | 12,911 | 21 | 50,000 | 0 | 3,904 | osh-native |
ex.bashcomp-parse-help | 177 | 0 | 4 | 10.3 | 8.0 | 995,286 | 12,911 | 21 | 50,000 | 0 | 3,845 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.9 | 116,356 | 270 | 3 | 85,514 | 1 | 42,757 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 116,356 | 270 | 3 | 85,390 | 1 | 42,695 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
7 | 6 | 0 | 1.6 | dash | - |
24 | 20 | 4 | 3.0 | bash | - |
105 | 73 | 39 | 3.4 | zsh | - |
16 | 8 | 8 | 29.5 | bumpleak/osh | mut |
19 | 15 | 4 | 29.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 29.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 22 | 7 | 25.0 | osh-native | mut+alloc |
32 | 16 | 16 | 25.6 | osh-native | mut+alloc+free |
38 | 30 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
41 | 30 | 11 | 18.1 | osh-native | mut+alloc+free+gc+exit |
44 | 24 | 20 | 33.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
51 | 39 | 12 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 15 | 12 | 24.8 | osh-native-souffle | mut+alloc |
29 | 25 | 4 | 25.2 | osh-native-souffle | mut+alloc+free |
33 | 22 | 11 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
35 | 23 | 11 | 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 | 22 | 0 | 1.6 | dash | - |
78 | 78 | 0 | 3.1 | bash | - |
381 | 212 | 191 | 3.7 | zsh | - |
48 | 37 | 11 | 84.3 | bumpleak/osh | mut |
60 | 47 | 12 | 84.4 | _bin/cxx-opt+bumproot/osh | mut |
71 | 51 | 20 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 55 | 43 | 73.4 | osh-native | mut+alloc |
105 | 76 | 28 | 75.3 | osh-native | mut+alloc+free |
182 | 161 | 20 | 45.9 | osh-native | mut+alloc+free+gc |
178 | 162 | 16 | 46.1 | osh-native | mut+alloc+free+gc+exit |
140 | 96 | 44 | 97.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
251 | 215 | 36 | 60.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
89 | 46 | 42 | 73.0 | osh-native-souffle | mut+alloc |
98 | 51 | 47 | 74.9 | osh-native-souffle | mut+alloc+free |
148 | 124 | 24 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
154 | 130 | 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.3 | dash | - |
6 | 6 | 0 | 2.9 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 3 | 3 | 12.0 | bumpleak/osh | mut |
8 | 4 | 4 | 11.3 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 9 | 0 | 10.1 | 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.5 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.6 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 9 | 0 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
8 | 8 | 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.6 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
19 | 15 | 4 | 32.6 | bumpleak/osh | mut |
26 | 26 | 0 | 32.7 | _bin/cxx-opt+bumproot/osh | mut |
28 | 23 | 5 | 33.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 32 | 4 | 26.2 | osh-native | mut+alloc |
38 | 19 | 19 | 26.7 | osh-native | mut+alloc+free |
29 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 34 | 19 | 36.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 29 | 7 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 13 | 17 | 25.8 | osh-native-souffle | mut+alloc |
32 | 28 | 4 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 22 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
21 | 21 | 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 | 69 | 4 | 3.0 | bash | - |
169 | 113 | 56 | 55.2 | bumpleak/osh | mut |
181 | 124 | 56 | 55.3 | _bin/cxx-opt+bumproot/osh | mut |
194 | 153 | 40 | 56.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
214 | 133 | 81 | 47.1 | osh-native | mut+alloc |
216 | 140 | 76 | 48.8 | osh-native | mut+alloc+free |
183 | 154 | 28 | 8.7 | osh-native | mut+alloc+free+gc |
181 | 133 | 48 | 8.8 | osh-native | mut+alloc+free+gc+exit |
237 | 160 | 76 | 64.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
221 | 164 | 56 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
205 | 136 | 68 | 46.5 | osh-native-souffle | mut+alloc |
210 | 151 | 59 | 48.2 | osh-native-souffle | mut+alloc+free |
177 | 104 | 72 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
175 | 115 | 60 | 8.1 | 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 | 12 | 9 | 4.3 | bash | - |
18 | 13 | 5 | 3.3 | zsh | - |
19 | 11 | 9 | 12.3 | bumpleak/osh | mut |
20 | 13 | 7 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
20 | 12 | 9 | 12.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 16 | 6 | 11.0 | osh-native | mut+alloc |
23 | 16 | 7 | 10.9 | osh-native | mut+alloc+free |
23 | 18 | 5 | 8.9 | osh-native | mut+alloc+free+gc |
24 | 16 | 7 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 12 | 14 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 26 | 0 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 17 | 4 | 10.4 | osh-native-souffle | mut+alloc |
22 | 18 | 4 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 17 | 5 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 15 | 7 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |