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 | 10 | 12.1 | 18.1 | 476,742 | 1,282 | 6 | 409,294 | 5 | 204,647 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.6 | 476,742 | 1,282 | 6 | 408,794 | 5 | 204,397 | osh-native-souffle |
parse.configure-coreutils | 160 | 21 | 76 | 41.1 | 45.7 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 144 | 24 | 67 | 44.6 | 49.5 | 1,653,329 | 4,764 | 12 | 1,030,678 | 6 | 769,423 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.3 | 101,933 | 180 | 2 | 75,266 | 1 | 37,633 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.0 | 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 | 184 | 0 | 4 | 10.3 | 8.8 | 995,279 | 12,911 | 21 | 50,000 | 0 | 3,898 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 4 | 10.3 | 8.3 | 995,278 | 12,911 | 21 | 50,000 | 0 | 3,838 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.2 | 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 | 23 | 0 | 3.0 | bash | - |
104 | 63 | 48 | 3.3 | zsh | - |
16 | 12 | 4 | 27.9 | bumpleak/osh | mut |
20 | 16 | 4 | 30.2 | _bin/cxx-opt+bumproot/osh | mut |
23 | 15 | 8 | 28.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 14 | 14 | 25.0 | osh-native | mut+alloc |
31 | 23 | 8 | 25.6 | osh-native | mut+alloc+free |
35 | 27 | 8 | 18.1 | osh-native | mut+alloc+free+gc |
36 | 24 | 12 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 21 | 21 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 32 | 16 | 22.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 11 | 15 | 24.8 | osh-native-souffle | mut+alloc |
28 | 8 | 20 | 25.4 | osh-native-souffle | mut+alloc+free |
33 | 22 | 11 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 29 | 4 | 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 | - |
78 | 78 | 0 | 3.1 | bash | - |
373 | 220 | 174 | 3.5 | zsh | - |
50 | 29 | 21 | 85.9 | bumpleak/osh | mut |
61 | 53 | 8 | 86.2 | _bin/cxx-opt+bumproot/osh | mut |
69 | 53 | 16 | 86.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 60 | 36 | 73.4 | osh-native | mut+alloc |
105 | 66 | 39 | 75.4 | osh-native | mut+alloc+free |
160 | 144 | 16 | 45.7 | osh-native | mut+alloc+free+gc |
162 | 138 | 24 | 46.0 | osh-native | mut+alloc+free+gc+exit |
138 | 93 | 44 | 99.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
220 | 184 | 36 | 61.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 59 | 28 | 73.0 | osh-native-souffle | mut+alloc |
95 | 62 | 33 | 75.0 | osh-native-souffle | mut+alloc+free |
144 | 107 | 36 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
148 | 119 | 28 | 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 | 11.1 | bumpleak/osh | mut |
7 | 4 | 4 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 10.0 | osh-native | mut+alloc+free |
9 | 6 | 3 | 8.3 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.8 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 11 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 3 | 6 | 8.0 | 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 |
10 | 7 | 3 | 1.4 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
24 | 20 | 4 | 3.4 | zsh | - |
18 | 9 | 9 | 31.0 | bumpleak/osh | mut |
26 | 22 | 4 | 32.7 | _bin/cxx-opt+bumproot/osh | mut |
28 | 20 | 8 | 33.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 32 | 4 | 26.2 | osh-native | mut+alloc |
37 | 26 | 11 | 26.6 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 42 | 12 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 36 | 0 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 17 | 13 | 25.8 | osh-native-souffle | mut+alloc |
31 | 15 | 15 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 14 | 7 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 22 | 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.1 | bash | - |
169 | 98 | 71 | 55.0 | bumpleak/osh | mut |
181 | 130 | 51 | 54.4 | _bin/cxx-opt+bumproot/osh | mut |
193 | 112 | 80 | 56.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 146 | 67 | 47.1 | osh-native | mut+alloc |
221 | 134 | 87 | 48.8 | osh-native | mut+alloc+free |
184 | 135 | 48 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 113 | 69 | 8.9 | osh-native | mut+alloc+free+gc+exit |
232 | 156 | 76 | 63.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 152 | 56 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 128 | 76 | 46.6 | osh-native-souffle | mut+alloc |
209 | 130 | 79 | 48.3 | osh-native-souffle | mut+alloc+free |
175 | 115 | 59 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
173 | 137 | 36 | 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 |
9 | 6 | 3 | 3.4 | dash | - |
20 | 16 | 4 | 4.3 | bash | - |
17 | 16 | 2 | 3.5 | zsh | - |
19 | 17 | 3 | 12.4 | bumpleak/osh | mut |
21 | 7 | 14 | 13.1 | _bin/cxx-opt+bumproot/osh | mut |
20 | 17 | 3 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 15 | 6 | 11.0 | osh-native | mut+alloc |
22 | 12 | 10 | 11.0 | osh-native | mut+alloc+free |
22 | 11 | 11 | 9.2 | osh-native | mut+alloc+free+gc |
23 | 14 | 9 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 16 | 9 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 19 | 6 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 5 | 15 | 10.6 | osh-native-souffle | mut+alloc |
21 | 16 | 6 | 10.5 | osh-native-souffle | mut+alloc+free |
21 | 20 | 1 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 17 | 5 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |