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 | 17.8 | 476,742 | 1,282 | 6 | 409,294 | 5 | 204,647 | osh-native |
parse.configure-cpython | 32 | 4 | 10 | 12.0 | 17.6 | 476,742 | 1,282 | 6 | 408,794 | 5 | 204,397 | osh-native-souffle |
parse.configure-coreutils | 154 | 20 | 69 | 41.1 | 45.7 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 135 | 23 | 59 | 44.6 | 49.7 | 1,653,329 | 4,764 | 12 | 1,030,678 | 6 | 769,423 | osh-native-souffle |
parse.abuild | 9 | 1 | 2 | 2.6 | 8.5 | 101,933 | 180 | 2 | 75,266 | 1 | 37,633 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.3 | 101,933 | 180 | 2 | 75,136 | 1 | 37,568 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.4 | 8.0 | 584,198 | 22,608 | 12 | 50,000 | 0 | 2,910 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.4 | 7.6 | 584,198 | 22,608 | 12 | 50,000 | 0 | 2,848 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 4 | 10.3 | 8.8 | 995,279 | 12,911 | 21 | 50,000 | 0 | 3,898 | osh-native |
ex.bashcomp-parse-help | 174 | 0 | 4 | 10.3 | 8.4 | 995,278 | 12,911 | 21 | 50,000 | 0 | 3,838 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,348 | 270 | 3 | 85,502 | 1 | 42,751 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.5 | 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 | - |
105 | 51 | 60 | 3.3 | zsh | - |
16 | 12 | 4 | 28.7 | bumpleak/osh | mut |
22 | 21 | 0 | 28.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 19 | 4 | 29.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 21 | 8 | 25.2 | osh-native | mut+alloc |
31 | 26 | 4 | 25.6 | osh-native | mut+alloc+free |
36 | 32 | 4 | 17.8 | osh-native | mut+alloc+free+gc |
36 | 32 | 4 | 18.2 | osh-native | mut+alloc+free+gc+exit |
43 | 35 | 8 | 33.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 40 | 8 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 21 | 4 | 24.9 | osh-native-souffle | mut+alloc |
28 | 24 | 4 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 20 | 12 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 33 | 0 | 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 |
21 | 21 | 0 | 1.4 | dash | - |
77 | 77 | 0 | 3.1 | bash | - |
380 | 230 | 169 | 3.5 | zsh | - |
48 | 36 | 12 | 85.5 | bumpleak/osh | mut |
59 | 55 | 4 | 84.6 | _bin/cxx-opt+bumproot/osh | mut |
73 | 53 | 19 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 60 | 36 | 73.4 | osh-native | mut+alloc |
104 | 76 | 28 | 75.3 | osh-native | mut+alloc+free |
154 | 127 | 28 | 45.7 | osh-native | mut+alloc+free+gc |
156 | 140 | 16 | 46.1 | osh-native | mut+alloc+free+gc+exit |
138 | 86 | 51 | 98.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 179 | 32 | 60.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
86 | 43 | 43 | 73.1 | osh-native-souffle | mut+alloc |
97 | 54 | 43 | 75.0 | osh-native-souffle | mut+alloc+free |
135 | 123 | 12 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
141 | 121 | 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.4 | dash | - |
6 | 3 | 3 | 2.9 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 3 | 3 | 12.3 | bumpleak/osh | mut |
6 | 6 | 0 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
7 | 0 | 7 | 11.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.1 | osh-native | mut+alloc |
8 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
11 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 7 | 4 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
7 | 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 | 8 | 0 | 8.4 | 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 |
10 | 10 | 0 | 1.4 | dash | - |
29 | 28 | 0 | 3.0 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
18 | 9 | 9 | 32.0 | bumpleak/osh | mut |
26 | 21 | 4 | 33.1 | _bin/cxx-opt+bumproot/osh | mut |
28 | 20 | 8 | 31.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.3 | osh-native | mut+alloc |
37 | 29 | 8 | 26.7 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
53 | 37 | 16 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
36 | 36 | 0 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 21 | 8 | 26.0 | osh-native-souffle | mut+alloc |
31 | 27 | 4 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.6 | 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 | 65 | 8 | 3.1 | bash | - |
166 | 111 | 55 | 54.1 | bumpleak/osh | mut |
180 | 116 | 64 | 55.4 | _bin/cxx-opt+bumproot/osh | mut |
192 | 140 | 52 | 57.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 139 | 72 | 47.1 | osh-native | mut+alloc |
217 | 126 | 91 | 48.8 | osh-native | mut+alloc+free |
182 | 142 | 39 | 8.8 | osh-native | mut+alloc+free+gc |
180 | 120 | 60 | 8.9 | osh-native | mut+alloc+free+gc+exit |
232 | 148 | 84 | 63.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 136 | 72 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
202 | 123 | 79 | 46.6 | osh-native-souffle | mut+alloc |
209 | 121 | 89 | 48.4 | osh-native-souffle | mut+alloc+free |
174 | 111 | 63 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
176 | 116 | 60 | 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 | 5 | 6 | 3.5 | dash | - |
19 | 17 | 2 | 4.5 | bash | - |
18 | 10 | 8 | 3.4 | zsh | - |
18 | 7 | 12 | 11.8 | bumpleak/osh | mut |
19 | 16 | 4 | 11.9 | _bin/cxx-opt+bumproot/osh | mut |
22 | 13 | 9 | 13.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
20 | 6 | 15 | 10.9 | osh-native | mut+alloc |
22 | 13 | 9 | 11.1 | osh-native | mut+alloc+free |
22 | 14 | 9 | 9.0 | osh-native | mut+alloc+free+gc |
22 | 14 | 8 | 9.2 | osh-native | mut+alloc+free+gc+exit |
24 | 21 | 4 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 23 | 2 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 12 | 9 | 10.6 | osh-native-souffle | mut+alloc |
21 | 15 | 7 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 17 | 4 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
21 | 14 | 7 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |