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 | 40 | 6 | 14 | 12.7 | 18.5 | 476,742 | 1,282 | 6 | 409,294 | 5 | 204,647 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.6 | 18.1 | 476,742 | 1,282 | 6 | 408,794 | 5 | 204,397 | osh-native-souffle |
parse.configure-coreutils | 174 | 26 | 89 | 42.3 | 47.7 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 152 | 26 | 76 | 46.3 | 51.6 | 1,653,329 | 4,764 | 12 | 1,030,678 | 6 | 769,423 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.7 | 8.8 | 101,933 | 180 | 2 | 75,266 | 1 | 37,633 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.7 | 8.4 | 101,933 | 180 | 2 | 75,136 | 1 | 37,568 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 1.9 | 8.1 | 584,198 | 22,608 | 12 | 50,000 | 0 | 2,910 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 1.9 | 7.6 | 584,198 | 22,608 | 12 | 50,000 | 0 | 2,848 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 3 | 4.9 | 8.9 | 995,279 | 12,911 | 21 | 50,000 | 0 | 3,898 | osh-native |
ex.bashcomp-parse-help | 174 | 0 | 3 | 4.9 | 8.3 | 995,278 | 12,911 | 21 | 50,000 | 0 | 3,838 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.9 | 9.3 | 116,348 | 270 | 3 | 85,502 | 1 | 42,751 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.9 | 8.8 | 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 | - |
24 | 23 | 0 | 3.0 | bash | - |
104 | 65 | 45 | 3.4 | zsh | - |
16 | 16 | 0 | 29.3 | bumpleak/osh | mut |
20 | 20 | 0 | 30.5 | _bin/cxx-opt+bumproot/osh | mut |
22 | 17 | 4 | 29.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 13 | 17 | 26.0 | osh-native | mut+alloc |
31 | 19 | 12 | 25.8 | osh-native | mut+alloc+free |
40 | 36 | 4 | 18.5 | osh-native | mut+alloc+free+gc |
38 | 33 | 4 | 18.4 | osh-native | mut+alloc+free+gc+exit |
44 | 31 | 12 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
55 | 47 | 8 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 15 | 11 | 25.4 | osh-native-souffle | mut+alloc |
28 | 12 | 16 | 25.7 | osh-native-souffle | mut+alloc+free |
33 | 20 | 12 | 18.1 | osh-native-souffle | mut+alloc+free+gc |
33 | 29 | 4 | 18.2 | 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 | 18 | 4 | 1.6 | dash | - |
78 | 78 | 0 | 3.0 | bash | - |
378 | 187 | 213 | 3.5 | zsh | - |
48 | 40 | 8 | 85.8 | bumpleak/osh | mut |
61 | 48 | 12 | 85.0 | _bin/cxx-opt+bumproot/osh | mut |
72 | 64 | 8 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 63 | 36 | 75.9 | osh-native | mut+alloc |
101 | 73 | 28 | 76.3 | osh-native | mut+alloc+free |
174 | 157 | 16 | 47.7 | osh-native | mut+alloc+free+gc |
177 | 153 | 24 | 47.6 | osh-native | mut+alloc+free+gc+exit |
141 | 96 | 44 | 99.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
259 | 207 | 52 | 62.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
86 | 51 | 35 | 75.6 | osh-native-souffle | mut+alloc |
91 | 39 | 51 | 75.9 | osh-native-souffle | mut+alloc+free |
152 | 132 | 20 | 51.6 | osh-native-souffle | mut+alloc+free+gc |
150 | 125 | 24 | 51.4 | 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 | 0 | 2 | 1.4 | dash | - |
6 | 6 | 0 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 3 | 3 | 12.3 | bumpleak/osh | mut |
7 | 3 | 3 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 11.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc |
9 | 4 | 4 | 10.4 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.8 | 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 | 8 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 10.0 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 10.0 | osh-native-souffle | mut+alloc+free |
8 | 4 | 4 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
8 | 4 | 4 | 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 | - |
30 | 29 | 0 | 2.9 | bash | - |
24 | 8 | 16 | 3.3 | zsh | - |
18 | 14 | 4 | 31.3 | bumpleak/osh | mut |
25 | 21 | 4 | 32.0 | _bin/cxx-opt+bumproot/osh | mut |
29 | 29 | 0 | 31.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 26.7 | osh-native | mut+alloc |
38 | 26 | 11 | 26.6 | osh-native | mut+alloc+free |
28 | 20 | 8 | 8.1 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
55 | 46 | 8 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 30 | 7 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 19 | 11 | 26.2 | osh-native-souffle | mut+alloc |
31 | 18 | 13 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 18 | 4 | 7.5 | 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 | 60 | 12 | 3.1 | bash | - |
167 | 109 | 57 | 54.9 | bumpleak/osh | mut |
182 | 126 | 55 | 56.0 | _bin/cxx-opt+bumproot/osh | mut |
194 | 146 | 47 | 56.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
205 | 121 | 84 | 48.1 | osh-native | mut+alloc |
210 | 129 | 81 | 48.4 | osh-native | mut+alloc+free |
182 | 138 | 43 | 8.9 | osh-native | mut+alloc+free+gc |
182 | 121 | 61 | 8.8 | osh-native | mut+alloc+free+gc+exit |
233 | 165 | 68 | 62.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 132 | 76 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
198 | 121 | 77 | 47.8 | osh-native-souffle | mut+alloc |
200 | 116 | 84 | 48.1 | osh-native-souffle | mut+alloc+free |
174 | 130 | 43 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
175 | 115 | 59 | 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 | 4 | 6 | 3.5 | dash | - |
20 | 16 | 4 | 4.5 | bash | - |
17 | 10 | 8 | 3.5 | zsh | - |
18 | 15 | 4 | 11.3 | bumpleak/osh | mut |
19 | 12 | 8 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
20 | 12 | 9 | 13.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 20 | 1 | 11.3 | osh-native | mut+alloc |
23 | 16 | 7 | 11.1 | osh-native | mut+alloc+free |
22 | 17 | 5 | 9.3 | osh-native | mut+alloc+free+gc |
23 | 13 | 10 | 9.3 | osh-native | mut+alloc+free+gc+exit |
25 | 25 | 0 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 15 | 10 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 16 | 4 | 10.9 | osh-native-souffle | mut+alloc |
21 | 12 | 10 | 10.9 | osh-native-souffle | mut+alloc+free |
21 | 14 | 8 | 8.8 | osh-native-souffle | mut+alloc+free+gc |
21 | 10 | 12 | 8.8 | osh-native-souffle | mut+alloc+free+gc+exit |