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.0 | 476,742 | 1,282 | 6 | 409,294 | 5 | 204,647 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.7 | 476,742 | 1,282 | 6 | 408,794 | 5 | 204,397 | osh-native-souffle |
parse.configure-coreutils | 154 | 20 | 68 | 41.1 | 45.8 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 135 | 23 | 58 | 44.6 | 49.8 | 1,653,329 | 4,764 | 12 | 1,030,678 | 6 | 769,423 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.7 | 101,933 | 180 | 2 | 75,266 | 1 | 37,633 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.1 | 101,933 | 180 | 2 | 75,136 | 1 | 37,568 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.4 | 8.0 | 584,198 | 22,608 | 12 | 50,000 | 0 | 2,910 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.4 | 7.5 | 584,198 | 22,608 | 12 | 50,000 | 0 | 2,848 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 3 | 10.3 | 8.8 | 995,279 | 12,911 | 21 | 50,000 | 0 | 3,898 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 3 | 10.3 | 8.4 | 995,278 | 12,911 | 21 | 50,000 | 0 | 3,838 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.9 | 116,348 | 270 | 3 | 85,502 | 1 | 42,751 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 116,348 | 270 | 3 | 85,378 | 1 | 42,689 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 3 | 3 | 1.6 | dash | - |
23 | 19 | 4 | 3.1 | bash | - |
104 | 67 | 44 | 3.4 | zsh | - |
16 | 4 | 12 | 29.4 | bumpleak/osh | mut |
20 | 12 | 8 | 28.6 | _bin/cxx-opt+bumproot/osh | mut |
23 | 15 | 8 | 28.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 26 | 4 | 25.3 | osh-native | mut+alloc |
31 | 16 | 16 | 25.6 | osh-native | mut+alloc+free |
36 | 31 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 32 | 4 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 12 | 31 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 31 | 16 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 22 | 4 | 24.6 | osh-native-souffle | mut+alloc |
28 | 24 | 4 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 24 | 8 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
33 | 28 | 4 | 17.8 | 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 | 13 | 9 | 1.6 | dash | - |
77 | 77 | 0 | 3.3 | bash | - |
379 | 218 | 181 | 3.3 | zsh | - |
47 | 35 | 12 | 85.7 | bumpleak/osh | mut |
59 | 51 | 8 | 85.3 | _bin/cxx-opt+bumproot/osh | mut |
70 | 57 | 12 | 85.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 89 | 8 | 73.4 | osh-native | mut+alloc |
105 | 61 | 44 | 75.4 | osh-native | mut+alloc+free |
154 | 133 | 20 | 45.8 | osh-native | mut+alloc+free+gc |
156 | 136 | 20 | 46.1 | osh-native | mut+alloc+free+gc+exit |
138 | 105 | 32 | 99.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
224 | 203 | 20 | 61.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 50 | 37 | 73.0 | osh-native-souffle | mut+alloc |
95 | 55 | 40 | 75.0 | osh-native-souffle | mut+alloc+free |
135 | 110 | 24 | 49.8 | osh-native-souffle | mut+alloc+free+gc |
139 | 95 | 44 | 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.4 | dash | - |
6 | 6 | 0 | 3.0 | bash | - |
8 | 0 | 8 | 3.3 | zsh | - |
6 | 6 | 0 | 11.7 | bumpleak/osh | mut |
6 | 6 | 0 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 11.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.2 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 4 | 4 | 8.7 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 8 | 0 | 9.8 | 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 |
8 | 3 | 5 | 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 | 28 | 0 | 3.0 | bash | - |
26 | 22 | 4 | 3.3 | zsh | - |
19 | 14 | 5 | 31.6 | bumpleak/osh | mut |
26 | 17 | 9 | 32.9 | _bin/cxx-opt+bumproot/osh | mut |
29 | 28 | 0 | 31.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 26 | 11 | 26.3 | osh-native | mut+alloc |
37 | 33 | 4 | 26.7 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 46 | 8 | 36.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 22 | 7 | 26.0 | osh-native-souffle | mut+alloc |
31 | 23 | 8 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 14 | 7 | 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 |
72 | 64 | 8 | 3.3 | bash | - |
168 | 104 | 64 | 54.1 | bumpleak/osh | mut |
180 | 104 | 76 | 56.3 | _bin/cxx-opt+bumproot/osh | mut |
194 | 129 | 65 | 56.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 141 | 69 | 47.0 | osh-native | mut+alloc |
217 | 160 | 56 | 48.8 | osh-native | mut+alloc+free |
182 | 127 | 55 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 150 | 32 | 8.8 | osh-native | mut+alloc+free+gc+exit |
235 | 143 | 91 | 64.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 146 | 63 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
203 | 142 | 61 | 46.6 | osh-native-souffle | mut+alloc |
211 | 108 | 104 | 48.4 | osh-native-souffle | mut+alloc+free |
175 | 111 | 64 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
175 | 120 | 56 | 8.3 | 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 | 4 | 6 | 3.4 | dash | - |
19 | 13 | 6 | 4.3 | bash | - |
18 | 17 | 1 | 3.5 | zsh | - |
20 | 20 | 0 | 12.9 | bumpleak/osh | mut |
19 | 18 | 2 | 12.2 | _bin/cxx-opt+bumproot/osh | mut |
21 | 7 | 15 | 13.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 13 | 9 | 11.1 | osh-native | mut+alloc |
22 | 16 | 6 | 11.1 | osh-native | mut+alloc+free |
23 | 13 | 10 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 14 | 9 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 11 | 14 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 15 | 10 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 15 | 6 | 10.6 | osh-native-souffle | mut+alloc |
21 | 13 | 9 | 10.6 | osh-native-souffle | mut+alloc+free |
21 | 19 | 3 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 14 | 7 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |