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 | 3 | 9 | 12.1 | 18.0 | 476,737 | 1,282 | 6 | 409,280 | 5 | 204,640 | osh-native |
parse.configure-cpython | 33 | 4 | 9 | 12.0 | 17.7 | 476,737 | 1,282 | 6 | 408,780 | 5 | 204,390 | osh-native-souffle |
parse.configure-coreutils | 176 | 26 | 90 | 41.1 | 45.7 | 1,653,325 | 4,764 | 12 | 1,591,962 | 7 | 795,981 | osh-native |
parse.configure-coreutils | 144 | 24 | 66 | 44.6 | 49.7 | 1,653,324 | 4,764 | 12 | 1,030,664 | 6 | 769,416 | osh-native-souffle |
parse.abuild | 10 | 1 | 1 | 2.6 | 8.5 | 101,928 | 180 | 2 | 75,252 | 1 | 37,626 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.1 | 101,928 | 180 | 2 | 75,122 | 1 | 37,561 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.4 | 7.9 | 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.8 | 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 |
6 | 6 | 0 | 1.6 | dash | - |
24 | 19 | 4 | 3.0 | bash | - |
105 | 65 | 46 | 3.4 | zsh | - |
16 | 16 | 0 | 29.5 | bumpleak/osh | mut |
20 | 20 | 0 | 28.5 | _bin/cxx-opt+bumproot/osh | mut |
22 | 22 | 0 | 29.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 25 | 4 | 25.2 | osh-native | mut+alloc |
32 | 24 | 8 | 25.7 | osh-native | mut+alloc+free |
36 | 31 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 32 | 4 | 18.1 | osh-native | mut+alloc+free+gc+exit |
44 | 32 | 12 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
50 | 49 | 0 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 19 | 8 | 24.8 | osh-native-souffle | mut+alloc |
29 | 17 | 13 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 18 | 14 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
33 | 25 | 8 | 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 | 22 | 0 | 1.6 | dash | - |
78 | 70 | 8 | 3.1 | bash | - |
377 | 227 | 170 | 3.7 | zsh | - |
48 | 44 | 4 | 84.0 | bumpleak/osh | mut |
60 | 51 | 8 | 85.5 | _bin/cxx-opt+bumproot/osh | mut |
71 | 58 | 12 | 85.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 63 | 35 | 73.6 | osh-native | mut+alloc |
106 | 81 | 24 | 75.1 | osh-native | mut+alloc+free |
176 | 168 | 8 | 45.7 | osh-native | mut+alloc+free+gc |
176 | 160 | 16 | 46.1 | osh-native | mut+alloc+free+gc+exit |
138 | 86 | 51 | 97.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
256 | 220 | 36 | 60.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
90 | 54 | 35 | 73.0 | osh-native-souffle | mut+alloc |
97 | 65 | 32 | 75.0 | osh-native-souffle | mut+alloc+free |
144 | 124 | 20 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
164 | 147 | 16 | 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 | 0 | 7 | 3.3 | zsh | - |
6 | 6 | 0 | 10.9 | bumpleak/osh | mut |
6 | 6 | 0 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.0 | osh-native | mut+alloc |
9 | 9 | 0 | 10.0 | osh-native | mut+alloc+free |
10 | 3 | 6 | 8.5 | osh-native | mut+alloc+free+gc |
10 | 10 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 12 | 0 | 11.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 8 | 0 | 9.7 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 9 | 0 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
8 | 4 | 4 | 8.1 | 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 | 11 | 0 | 1.4 | dash | - |
28 | 28 | 0 | 3.0 | bash | - |
24 | 24 | 0 | 3.3 | zsh | - |
18 | 18 | 0 | 31.2 | bumpleak/osh | mut |
26 | 22 | 4 | 33.0 | _bin/cxx-opt+bumproot/osh | mut |
27 | 27 | 0 | 32.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 26.3 | osh-native | mut+alloc |
39 | 30 | 9 | 26.9 | osh-native | mut+alloc+free |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
55 | 47 | 8 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 23 | 8 | 26.0 | osh-native-souffle | mut+alloc |
33 | 20 | 12 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 17 | 4 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 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 | 68 | 4 | 3.1 | bash | - |
169 | 104 | 64 | 55.5 | bumpleak/osh | mut |
180 | 143 | 37 | 56.0 | _bin/cxx-opt+bumproot/osh | mut |
193 | 116 | 76 | 55.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 107 | 103 | 47.0 | osh-native | mut+alloc |
219 | 146 | 73 | 48.7 | osh-native | mut+alloc+free |
183 | 147 | 36 | 8.8 | osh-native | mut+alloc+free+gc |
183 | 126 | 57 | 8.9 | osh-native | mut+alloc+free+gc+exit |
234 | 154 | 79 | 63.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
207 | 143 | 64 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
205 | 120 | 84 | 46.6 | osh-native-souffle | mut+alloc |
215 | 123 | 91 | 48.4 | osh-native-souffle | mut+alloc+free |
175 | 119 | 56 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
177 | 120 | 56 | 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 | 2 | 3.5 | dash | - |
20 | 20 | 0 | 4.5 | bash | - |
18 | 9 | 10 | 3.4 | zsh | - |
20 | 10 | 10 | 12.5 | bumpleak/osh | mut |
20 | 12 | 8 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
21 | 19 | 2 | 13.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 20 | 1 | 11.1 | osh-native | mut+alloc |
23 | 17 | 6 | 11.1 | osh-native | mut+alloc+free |
22 | 14 | 9 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 16 | 7 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 18 | 8 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 20 | 6 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
21 | 16 | 6 | 10.5 | osh-native-souffle | mut+alloc |
22 | 20 | 2 | 10.6 | osh-native-souffle | mut+alloc+free |
21 | 20 | 2 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 16 | 6 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |