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 | 9 | 12.1 | 18.1 | 476,736 | 1,282 | 6 | 409,278 | 5 | 204,639 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.7 | 476,736 | 1,282 | 6 | 408,778 | 5 | 204,389 | osh-native-souffle |
parse.configure-coreutils | 150 | 19 | 64 | 41.1 | 45.9 | 1,653,324 | 4,764 | 12 | 1,591,960 | 7 | 795,980 | osh-native |
parse.configure-coreutils | 130 | 21 | 55 | 44.6 | 49.7 | 1,653,323 | 4,764 | 12 | 1,030,662 | 6 | 769,415 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,927 | 180 | 2 | 75,250 | 1 | 37,625 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.1 | 101,927 | 180 | 2 | 75,120 | 1 | 37,560 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.4 | 8.0 | 584,192 | 22,608 | 12 | 50,000 | 0 | 2,902 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.4 | 7.6 | 584,192 | 22,608 | 12 | 50,000 | 0 | 2,840 | osh-native-souffle |
ex.bashcomp-parse-help | 181 | 0 | 3 | 10.3 | 8.8 | 995,273 | 12,911 | 21 | 50,000 | 0 | 3,890 | osh-native |
ex.bashcomp-parse-help | 174 | 0 | 3 | 10.3 | 8.3 | 995,272 | 12,911 | 21 | 50,000 | 0 | 3,830 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 116,342 | 270 | 3 | 85,486 | 1 | 42,743 | osh-native |
ex.abuild-print-help | 20 | 1 | 2 | 2.8 | 8.3 | 116,342 | 270 | 3 | 85,362 | 1 | 42,681 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
105 | 69 | 43 | 3.4 | zsh | - |
17 | 16 | 0 | 29.5 | bumpleak/osh | mut |
19 | 19 | 0 | 29.5 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 28.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 14 | 14 | 25.2 | osh-native | mut+alloc |
31 | 15 | 15 | 25.7 | osh-native | mut+alloc+free |
35 | 31 | 4 | 18.1 | osh-native | mut+alloc+free+gc |
37 | 28 | 8 | 18.1 | osh-native | mut+alloc+free+gc+exit |
42 | 31 | 11 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 33 | 16 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 15 | 11 | 24.8 | osh-native-souffle | mut+alloc |
28 | 8 | 20 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 20 | 12 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
32 | 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 | 21 | 0 | 1.4 | dash | - |
78 | 77 | 0 | 3.1 | bash | - |
380 | 222 | 178 | 3.5 | zsh | - |
49 | 41 | 8 | 85.7 | bumpleak/osh | mut |
59 | 47 | 12 | 84.4 | _bin/cxx-opt+bumproot/osh | mut |
70 | 54 | 16 | 85.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 71 | 28 | 73.6 | osh-native | mut+alloc |
104 | 72 | 32 | 75.3 | osh-native | mut+alloc+free |
150 | 134 | 16 | 45.9 | osh-native | mut+alloc+free+gc |
153 | 129 | 23 | 46.1 | osh-native | mut+alloc+free+gc+exit |
138 | 93 | 45 | 97.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
216 | 195 | 20 | 62.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 41 | 45 | 73.0 | osh-native-souffle | mut+alloc |
94 | 63 | 31 | 75.0 | osh-native-souffle | mut+alloc+free |
130 | 87 | 43 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
136 | 112 | 24 | 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 | 0 | 2 | 1.4 | dash | - |
6 | 6 | 0 | 2.9 | bash | - |
8 | 4 | 4 | 3.1 | zsh | - |
6 | 3 | 3 | 11.6 | bumpleak/osh | mut |
7 | 3 | 3 | 11.8 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 0 | 8 | 10.1 | osh-native | mut+alloc |
8 | 8 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 4 | 4 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.8 | osh-native | mut+alloc+free+gc+exit |
11 | 11 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
7 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc |
7 | 4 | 4 | 9.6 | osh-native-souffle | mut+alloc+free |
8 | 0 | 8 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
8 | 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 |
11 | 10 | 0 | 1.6 | dash | - |
28 | 28 | 0 | 3.0 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
18 | 14 | 5 | 31.9 | bumpleak/osh | mut |
25 | 16 | 8 | 31.3 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 33.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 26.2 | osh-native | mut+alloc |
37 | 29 | 8 | 26.7 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
53 | 37 | 16 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 29 | 8 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 25 | 4 | 25.8 | osh-native-souffle | mut+alloc |
31 | 26 | 4 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 21 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
21 | 21 | 0 | 7.7 | 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.0 | bash | - |
171 | 123 | 48 | 55.1 | bumpleak/osh | mut |
179 | 122 | 57 | 54.4 | _bin/cxx-opt+bumproot/osh | mut |
194 | 105 | 89 | 56.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 143 | 68 | 47.0 | osh-native | mut+alloc |
217 | 144 | 72 | 48.7 | osh-native | mut+alloc+free |
181 | 126 | 55 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 135 | 47 | 8.9 | osh-native | mut+alloc+free+gc+exit |
233 | 169 | 64 | 64.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 159 | 52 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
203 | 127 | 76 | 46.6 | osh-native-souffle | mut+alloc |
209 | 142 | 67 | 48.3 | osh-native-souffle | mut+alloc+free |
174 | 133 | 40 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
174 | 130 | 43 | 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 | 4 | 5 | 3.4 | dash | - |
19 | 12 | 8 | 4.3 | bash | - |
17 | 6 | 12 | 3.5 | zsh | - |
20 | 6 | 13 | 12.6 | bumpleak/osh | mut |
19 | 18 | 1 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
21 | 7 | 15 | 13.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 11 | 11 | 10.9 | osh-native | mut+alloc |
22 | 17 | 5 | 11.3 | osh-native | mut+alloc+free |
22 | 16 | 6 | 8.9 | osh-native | mut+alloc+free+gc |
22 | 15 | 8 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 12 | 13 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 19 | 7 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 17 | 3 | 10.5 | osh-native-souffle | mut+alloc |
21 | 20 | 2 | 10.7 | osh-native-souffle | mut+alloc+free |
20 | 19 | 2 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
21 | 11 | 11 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |