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 | 37 | 5 | 11 | 12.1 | 18.0 | 476,736 | 1,282 | 6 | 409,282 | 5 | 204,641 | osh-native |
parse.configure-cpython | 34 | 4 | 11 | 12.0 | 17.4 | 476,736 | 1,282 | 6 | 408,782 | 5 | 204,391 | osh-native-souffle |
parse.configure-coreutils | 195 | 30 | 106 | 41.1 | 45.8 | 1,653,324 | 4,764 | 12 | 1,591,964 | 7 | 795,982 | osh-native |
parse.configure-coreutils | 169 | 29 | 90 | 44.6 | 49.7 | 1,653,323 | 4,764 | 12 | 1,030,666 | 6 | 769,417 | osh-native-souffle |
parse.abuild | 10 | 1 | 2 | 2.6 | 8.4 | 101,927 | 180 | 2 | 75,254 | 1 | 37,627 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.6 | 8.3 | 101,927 | 180 | 2 | 75,124 | 1 | 37,562 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.4 | 8.0 | 584,192 | 22,608 | 12 | 50,000 | 0 | 2,904 | osh-native |
ex.compute-fib | 23 | 0 | 2 | 2.4 | 7.6 | 584,192 | 22,608 | 12 | 50,000 | 0 | 2,842 | osh-native-souffle |
ex.bashcomp-parse-help | 184 | 0 | 3 | 10.3 | 8.8 | 995,273 | 12,911 | 21 | 50,000 | 0 | 3,892 | osh-native |
ex.bashcomp-parse-help | 176 | 0 | 4 | 10.3 | 8.4 | 995,272 | 12,911 | 21 | 50,000 | 0 | 3,832 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,342 | 270 | 3 | 85,490 | 1 | 42,745 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 116,342 | 270 | 3 | 85,366 | 1 | 42,683 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
7 | 6 | 0 | 1.6 | dash | - |
23 | 19 | 4 | 3.1 | bash | - |
106 | 62 | 51 | 3.4 | zsh | - |
17 | 13 | 4 | 29.2 | bumpleak/osh | mut |
20 | 19 | 0 | 28.3 | _bin/cxx-opt+bumproot/osh | mut |
23 | 23 | 0 | 28.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 29 | 0 | 25.3 | osh-native | mut+alloc |
32 | 20 | 12 | 25.6 | osh-native | mut+alloc+free |
37 | 33 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
40 | 35 | 4 | 18.2 | osh-native | mut+alloc+free+gc+exit |
44 | 28 | 16 | 33.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
53 | 45 | 8 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 15 | 11 | 24.9 | osh-native-souffle | mut+alloc |
29 | 17 | 12 | 25.3 | osh-native-souffle | mut+alloc+free |
34 | 29 | 4 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
35 | 28 | 8 | 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 | 22 | 0 | 1.6 | dash | - |
78 | 78 | 0 | 3.3 | bash | - |
384 | 250 | 157 | 3.8 | zsh | - |
51 | 50 | 0 | 85.2 | bumpleak/osh | mut |
59 | 51 | 8 | 84.4 | _bin/cxx-opt+bumproot/osh | mut |
71 | 27 | 43 | 85.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 65 | 33 | 73.4 | osh-native | mut+alloc |
106 | 66 | 39 | 75.2 | osh-native | mut+alloc+free |
195 | 167 | 28 | 45.8 | osh-native | mut+alloc+free+gc |
198 | 165 | 32 | 46.1 | osh-native | mut+alloc+free+gc+exit |
141 | 101 | 40 | 98.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
274 | 242 | 32 | 61.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 60 | 28 | 73.0 | osh-native-souffle | mut+alloc |
96 | 60 | 36 | 75.0 | osh-native-souffle | mut+alloc+free |
169 | 145 | 24 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
176 | 156 | 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.3 | dash | - |
6 | 6 | 0 | 2.8 | bash | - |
8 | 0 | 7 | 3.1 | zsh | - |
6 | 6 | 0 | 10.5 | bumpleak/osh | mut |
7 | 4 | 4 | 10.9 | _bin/cxx-opt+bumproot/osh | mut |
8 | 8 | 0 | 11.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 0 | 9 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 10.2 | osh-native | mut+alloc+free |
10 | 3 | 6 | 8.4 | osh-native | mut+alloc+free+gc |
10 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 12 | 0 | 11.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 4 | 8 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc |
8 | 3 | 6 | 9.6 | osh-native-souffle | mut+alloc+free |
9 | 4 | 4 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
9 | 9 | 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 | 29 | 0 | 2.9 | bash | - |
24 | 20 | 4 | 3.4 | zsh | - |
19 | 15 | 4 | 31.9 | bumpleak/osh | mut |
26 | 22 | 4 | 32.7 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 26 | 11 | 26.3 | osh-native | mut+alloc |
38 | 30 | 8 | 26.7 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
55 | 35 | 20 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 22 | 9 | 26.1 | osh-native-souffle | mut+alloc |
32 | 24 | 8 | 26.3 | osh-native-souffle | mut+alloc+free |
23 | 15 | 8 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
23 | 19 | 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 |
74 | 65 | 8 | 3.1 | bash | - |
168 | 108 | 60 | 55.7 | bumpleak/osh | mut |
184 | 116 | 68 | 56.2 | _bin/cxx-opt+bumproot/osh | mut |
196 | 132 | 64 | 56.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 136 | 76 | 47.1 | osh-native | mut+alloc |
222 | 189 | 32 | 48.8 | osh-native | mut+alloc+free |
184 | 100 | 84 | 8.8 | osh-native | mut+alloc+free+gc |
183 | 135 | 48 | 8.9 | osh-native | mut+alloc+free+gc+exit |
235 | 150 | 85 | 62.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 159 | 52 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
205 | 136 | 68 | 46.8 | osh-native-souffle | mut+alloc |
210 | 121 | 89 | 48.3 | osh-native-souffle | mut+alloc+free |
176 | 108 | 68 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
175 | 111 | 63 | 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 | 10 | 0 | 3.4 | dash | - |
20 | 18 | 2 | 4.3 | bash | - |
18 | 13 | 5 | 3.4 | zsh | - |
20 | 11 | 9 | 13.0 | bumpleak/osh | mut |
19 | 11 | 9 | 13.6 | _bin/cxx-opt+bumproot/osh | mut |
20 | 12 | 9 | 12.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 16 | 6 | 11.0 | osh-native | mut+alloc |
23 | 18 | 6 | 11.3 | osh-native | mut+alloc+free |
22 | 21 | 2 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 11 | 13 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 11 | 14 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 16 | 10 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
21 | 18 | 3 | 10.5 | osh-native-souffle | mut+alloc |
22 | 16 | 6 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 15 | 7 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 16 | 7 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |