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 | 18.0 | 476,737 | 1,282 | 6 | 409,280 | 5 | 204,640 | osh-native |
parse.configure-cpython | 32 | 4 | 10 | 12.0 | 17.7 | 476,737 | 1,282 | 6 | 408,780 | 5 | 204,390 | osh-native-souffle |
parse.configure-coreutils | 153 | 20 | 69 | 41.1 | 45.9 | 1,653,325 | 4,764 | 12 | 1,591,962 | 7 | 795,981 | osh-native |
parse.configure-coreutils | 138 | 23 | 62 | 44.6 | 49.8 | 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.1 | 101,928 | 180 | 2 | 75,122 | 1 | 37,561 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.4 | 8.0 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,903 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.4 | 7.5 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,841 | osh-native-souffle |
ex.bashcomp-parse-help | 183 | 0 | 4 | 10.3 | 8.5 | 995,274 | 12,911 | 21 | 50,000 | 0 | 3,891 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 4 | 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 | 9.0 | 116,343 | 270 | 3 | 85,488 | 1 | 42,744 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 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 |
7 | 3 | 3 | 1.6 | dash | - |
24 | 23 | 0 | 3.1 | bash | - |
104 | 60 | 50 | 3.5 | zsh | - |
16 | 8 | 8 | 28.9 | bumpleak/osh | mut |
20 | 19 | 0 | 28.6 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 29.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 22 | 7 | 25.2 | osh-native | mut+alloc |
31 | 23 | 8 | 25.7 | osh-native | mut+alloc+free |
36 | 28 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 28 | 8 | 18.1 | osh-native | mut+alloc+free+gc+exit |
42 | 11 | 31 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 35 | 12 | 22.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 22 | 4 | 24.9 | osh-native-souffle | mut+alloc |
28 | 16 | 12 | 25.2 | osh-native-souffle | mut+alloc+free |
32 | 28 | 4 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
33 | 21 | 12 | 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 |
21 | 21 | 0 | 1.4 | dash | - |
78 | 70 | 8 | 3.1 | bash | - |
375 | 207 | 190 | 3.5 | zsh | - |
48 | 44 | 4 | 84.0 | bumpleak/osh | mut |
59 | 54 | 4 | 85.8 | _bin/cxx-opt+bumproot/osh | mut |
70 | 49 | 20 | 87.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 76 | 20 | 73.6 | osh-native | mut+alloc |
106 | 59 | 47 | 75.1 | osh-native | mut+alloc+free |
153 | 140 | 12 | 45.9 | osh-native | mut+alloc+free+gc |
158 | 154 | 4 | 46.0 | osh-native | mut+alloc+free+gc+exit |
137 | 78 | 59 | 99.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
226 | 210 | 16 | 61.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 63 | 24 | 73.0 | osh-native-souffle | mut+alloc |
94 | 78 | 16 | 75.0 | osh-native-souffle | mut+alloc+free |
138 | 122 | 16 | 49.8 | osh-native-souffle | mut+alloc+free+gc |
142 | 126 | 16 | 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 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 6 | 0 | 12.1 | bumpleak/osh | mut |
6 | 3 | 3 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 11.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 3 | 5 | 10.0 | 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.5 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 0 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 7 | 0 | 9.8 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 8 | 0 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
8 | 4 | 4 | 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 | - |
28 | 28 | 0 | 2.8 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
19 | 14 | 5 | 32.7 | bumpleak/osh | mut |
26 | 26 | 0 | 32.8 | _bin/cxx-opt+bumproot/osh | mut |
27 | 15 | 11 | 32.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.3 | osh-native | mut+alloc |
37 | 26 | 11 | 26.5 | 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 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
36 | 28 | 8 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 18 | 11 | 25.8 | osh-native-souffle | mut+alloc |
31 | 23 | 8 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
21 | 21 | 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 | 73 | 0 | 3.0 | bash | - |
168 | 112 | 56 | 55.8 | bumpleak/osh | mut |
180 | 136 | 44 | 55.3 | _bin/cxx-opt+bumproot/osh | mut |
193 | 114 | 79 | 56.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 129 | 81 | 47.1 | osh-native | mut+alloc |
218 | 133 | 85 | 48.8 | osh-native | mut+alloc+free |
183 | 146 | 36 | 8.5 | osh-native | mut+alloc+free+gc |
182 | 137 | 44 | 8.9 | osh-native | mut+alloc+free+gc+exit |
233 | 134 | 99 | 62.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 143 | 68 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
201 | 113 | 88 | 46.6 | osh-native-souffle | mut+alloc |
209 | 132 | 76 | 48.3 | osh-native-souffle | mut+alloc+free |
175 | 126 | 49 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
174 | 107 | 67 | 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 | 5 | 5 | 3.4 | dash | - |
20 | 13 | 6 | 4.5 | bash | - |
18 | 13 | 6 | 3.5 | zsh | - |
19 | 15 | 5 | 12.8 | bumpleak/osh | mut |
19 | 17 | 2 | 13.7 | _bin/cxx-opt+bumproot/osh | mut |
19 | 13 | 7 | 12.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 14 | 8 | 10.9 | osh-native | mut+alloc |
22 | 12 | 10 | 11.1 | osh-native | mut+alloc+free |
22 | 14 | 9 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 16 | 8 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 7 | 18 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 20 | 5 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
19 | 18 | 1 | 10.5 | osh-native-souffle | mut+alloc |
21 | 11 | 11 | 10.5 | osh-native-souffle | mut+alloc+free |
21 | 13 | 8 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 10 | 12 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |