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.0 | 476,737 | 1,282 | 6 | 409,280 | 5 | 204,640 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.6 | 476,737 | 1,282 | 6 | 408,780 | 5 | 204,390 | osh-native-souffle |
parse.configure-coreutils | 162 | 25 | 77 | 41.1 | 45.8 | 1,653,325 | 4,764 | 12 | 1,591,962 | 7 | 795,981 | osh-native |
parse.configure-coreutils | 143 | 23 | 66 | 44.6 | 49.5 | 1,653,324 | 4,764 | 12 | 1,030,664 | 6 | 769,416 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,928 | 180 | 2 | 75,252 | 1 | 37,626 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.0 | 101,928 | 180 | 2 | 75,122 | 1 | 37,561 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.4 | 7.7 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,903 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.4 | 7.6 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,841 | osh-native-souffle |
ex.bashcomp-parse-help | 181 | 0 | 3 | 10.3 | 8.9 | 995,274 | 12,911 | 21 | 50,000 | 0 | 3,891 | osh-native |
ex.bashcomp-parse-help | 174 | 0 | 3 | 10.3 | 8.4 | 995,273 | 12,911 | 21 | 50,000 | 0 | 3,831 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 116,343 | 270 | 3 | 85,488 | 1 | 42,744 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.8 | 116,343 | 270 | 3 | 85,364 | 1 | 42,682 | 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.1 | bash | - |
105 | 62 | 49 | 3.4 | zsh | - |
16 | 4 | 12 | 29.5 | bumpleak/osh | mut |
19 | 19 | 0 | 29.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 13 | 9 | 28.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 22 | 7 | 25.3 | osh-native | mut+alloc |
31 | 19 | 12 | 25.7 | osh-native | mut+alloc+free |
35 | 22 | 13 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 32 | 4 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 35 | 8 | 33.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 32 | 16 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 18 | 9 | 24.9 | osh-native-souffle | mut+alloc |
29 | 20 | 8 | 25.2 | osh-native-souffle | mut+alloc+free |
32 | 32 | 0 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 33 | 0 | 17.7 | 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.4 | dash | - |
77 | 74 | 4 | 3.3 | bash | - |
377 | 208 | 191 | 3.5 | zsh | - |
50 | 46 | 4 | 84.1 | bumpleak/osh | mut |
58 | 35 | 23 | 85.6 | _bin/cxx-opt+bumproot/osh | mut |
71 | 70 | 0 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 66 | 31 | 73.6 | osh-native | mut+alloc |
105 | 72 | 32 | 75.1 | osh-native | mut+alloc+free |
162 | 142 | 20 | 45.8 | osh-native | mut+alloc+free+gc |
162 | 142 | 20 | 46.0 | osh-native | mut+alloc+free+gc+exit |
137 | 93 | 44 | 97.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
228 | 204 | 24 | 61.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 63 | 24 | 73.2 | osh-native-souffle | mut+alloc |
95 | 58 | 37 | 74.9 | osh-native-souffle | mut+alloc+free |
143 | 131 | 12 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
147 | 123 | 24 | 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.4 | dash | - |
6 | 3 | 3 | 3.0 | bash | - |
8 | 8 | 0 | 3.4 | zsh | - |
6 | 3 | 3 | 10.5 | bumpleak/osh | mut |
7 | 7 | 0 | 11.9 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.1 | osh-native | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 0 | 9 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 0 | 12 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 4 | 8 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 8 | 0 | 9.6 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 4 | 4 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
9 | 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 | 10 | 0 | 1.4 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
23 | 16 | 8 | 3.3 | zsh | - |
19 | 19 | 0 | 32.8 | bumpleak/osh | mut |
26 | 18 | 7 | 31.9 | _bin/cxx-opt+bumproot/osh | mut |
28 | 16 | 12 | 32.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 18 | 18 | 26.2 | osh-native | mut+alloc |
41 | 33 | 7 | 26.9 | osh-native | mut+alloc+free |
28 | 24 | 4 | 7.7 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
56 | 43 | 12 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 36 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 11 | 19 | 26.0 | osh-native-souffle | mut+alloc |
31 | 22 | 9 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 14 | 7 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
21 | 17 | 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 | 73 | 0 | 3.1 | bash | - |
167 | 118 | 49 | 55.4 | bumpleak/osh | mut |
180 | 128 | 52 | 55.8 | _bin/cxx-opt+bumproot/osh | mut |
194 | 85 | 109 | 56.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 147 | 64 | 47.1 | osh-native | mut+alloc |
215 | 147 | 68 | 48.8 | osh-native | mut+alloc+free |
181 | 106 | 74 | 8.9 | osh-native | mut+alloc+free+gc |
181 | 102 | 79 | 8.8 | osh-native | mut+alloc+free+gc+exit |
233 | 144 | 88 | 63.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 138 | 71 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
206 | 127 | 79 | 46.7 | osh-native-souffle | mut+alloc |
210 | 126 | 83 | 48.3 | osh-native-souffle | mut+alloc+free |
174 | 110 | 63 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
173 | 137 | 36 | 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 | 8 | 1 | 3.7 | dash | - |
20 | 13 | 7 | 4.5 | bash | - |
18 | 8 | 11 | 3.5 | zsh | - |
19 | 16 | 2 | 11.8 | bumpleak/osh | mut |
22 | 14 | 9 | 13.3 | _bin/cxx-opt+bumproot/osh | mut |
20 | 11 | 10 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
20 | 13 | 8 | 11.0 | osh-native | mut+alloc |
22 | 17 | 5 | 11.3 | osh-native | mut+alloc+free |
22 | 20 | 3 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 20 | 3 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 10 | 15 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 19 | 6 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 19 | 2 | 10.6 | osh-native-souffle | mut+alloc |
21 | 12 | 9 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 19 | 3 | 8.8 | osh-native-souffle | mut+alloc+free+gc |
22 | 21 | 1 | 8.3 | osh-native-souffle | mut+alloc+free+gc+exit |