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,751 | 1,282 | 6 | 409,308 | 5 | 204,654 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.7 | 476,751 | 1,282 | 6 | 408,808 | 5 | 204,404 | osh-native-souffle |
parse.configure-coreutils | 160 | 22 | 74 | 41.1 | 45.8 | 1,653,339 | 4,764 | 12 | 1,591,990 | 7 | 795,995 | osh-native |
parse.configure-coreutils | 144 | 25 | 66 | 44.6 | 49.6 | 1,653,338 | 4,764 | 12 | 1,030,692 | 6 | 769,430 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,942 | 180 | 2 | 75,280 | 1 | 37,640 | osh-native |
parse.abuild | 14 | 1 | 2 | 2.6 | 8.1 | 101,942 | 180 | 2 | 75,150 | 1 | 37,575 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.4 | 8.0 | 584,207 | 22,608 | 12 | 50,000 | 0 | 2,917 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.4 | 7.6 | 584,207 | 22,608 | 12 | 50,000 | 0 | 2,856 | osh-native-souffle |
ex.bashcomp-parse-help | 181 | 0 | 3 | 10.3 | 8.8 | 995,288 | 12,911 | 21 | 50,000 | 0 | 3,905 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 4 | 10.3 | 8.4 | 995,287 | 12,911 | 21 | 50,000 | 0 | 3,846 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,357 | 270 | 3 | 85,516 | 1 | 42,758 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.5 | 116,357 | 270 | 3 | 85,392 | 1 | 42,696 | 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 | 56 | 55 | 3.4 | zsh | - |
16 | 8 | 8 | 28.2 | bumpleak/osh | mut |
20 | 16 | 4 | 29.9 | _bin/cxx-opt+bumproot/osh | mut |
23 | 23 | 0 | 29.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 11 | 19 | 25.2 | osh-native | mut+alloc |
32 | 32 | 0 | 25.6 | osh-native | mut+alloc+free |
35 | 27 | 8 | 18.1 | osh-native | mut+alloc+free+gc |
36 | 28 | 8 | 18.2 | osh-native | mut+alloc+free+gc+exit |
44 | 32 | 12 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 45 | 4 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 19 | 8 | 24.8 | osh-native-souffle | mut+alloc |
29 | 18 | 11 | 25.2 | osh-native-souffle | mut+alloc+free |
33 | 22 | 11 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
34 | 30 | 4 | 17.6 | 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 | 78 | 0 | 3.1 | bash | - |
377 | 231 | 168 | 3.7 | zsh | - |
49 | 28 | 20 | 85.8 | bumpleak/osh | mut |
60 | 40 | 20 | 84.4 | _bin/cxx-opt+bumproot/osh | mut |
71 | 55 | 16 | 85.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 67 | 31 | 73.4 | osh-native | mut+alloc |
106 | 63 | 43 | 75.3 | osh-native | mut+alloc+free |
160 | 136 | 24 | 45.8 | osh-native | mut+alloc+free+gc |
164 | 148 | 16 | 45.9 | osh-native | mut+alloc+free+gc+exit |
139 | 80 | 60 | 97.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
231 | 202 | 28 | 60.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 54 | 34 | 73.2 | osh-native-souffle | mut+alloc |
95 | 51 | 44 | 75.0 | osh-native-souffle | mut+alloc+free |
144 | 128 | 16 | 49.6 | osh-native-souffle | mut+alloc+free+gc |
148 | 120 | 28 | 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 | 0 | 2 | 1.4 | dash | - |
6 | 6 | 0 | 2.9 | bash | - |
8 | 0 | 7 | 3.1 | zsh | - |
6 | 6 | 0 | 11.1 | bumpleak/osh | mut |
7 | 7 | 0 | 11.7 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc |
9 | 4 | 4 | 10.2 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
11 | 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 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc |
9 | 9 | 0 | 9.8 | osh-native-souffle | mut+alloc+free |
14 | 9 | 5 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
9 | 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 | - |
29 | 25 | 4 | 3.0 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
19 | 19 | 0 | 32.8 | bumpleak/osh | mut |
26 | 21 | 4 | 32.9 | _bin/cxx-opt+bumproot/osh | mut |
28 | 20 | 8 | 31.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 32 | 4 | 26.5 | osh-native | mut+alloc |
38 | 38 | 0 | 26.7 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 27 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 41 | 12 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 21 | 8 | 26.0 | osh-native-souffle | mut+alloc |
32 | 23 | 8 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 22 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 21 | 0 | 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 | 69 | 4 | 3.0 | bash | - |
179 | 131 | 48 | 54.3 | bumpleak/osh | mut |
193 | 133 | 60 | 55.3 | _bin/cxx-opt+bumproot/osh | mut |
193 | 133 | 60 | 56.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 132 | 80 | 47.0 | osh-native | mut+alloc |
218 | 154 | 65 | 48.7 | osh-native | mut+alloc+free |
181 | 129 | 52 | 8.8 | osh-native | mut+alloc+free+gc |
183 | 138 | 45 | 8.5 | osh-native | mut+alloc+free+gc+exit |
235 | 162 | 73 | 62.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 178 | 32 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
205 | 137 | 68 | 46.6 | osh-native-souffle | mut+alloc |
211 | 131 | 79 | 48.3 | osh-native-souffle | mut+alloc+free |
175 | 119 | 56 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
175 | 107 | 67 | 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 |
10 | 4 | 6 | 3.5 | dash | - |
20 | 14 | 6 | 4.5 | bash | - |
18 | 12 | 7 | 3.5 | zsh | - |
19 | 9 | 11 | 12.7 | bumpleak/osh | mut |
20 | 6 | 15 | 13.0 | _bin/cxx-opt+bumproot/osh | mut |
22 | 10 | 12 | 13.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 20 | 2 | 11.0 | osh-native | mut+alloc |
22 | 13 | 9 | 11.0 | osh-native | mut+alloc+free |
22 | 11 | 12 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 16 | 7 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 15 | 10 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 17 | 8 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 6 | 14 | 10.7 | osh-native-souffle | mut+alloc |
21 | 9 | 12 | 10.7 | osh-native-souffle | mut+alloc+free |
22 | 16 | 6 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
23 | 19 | 4 | 8.8 | osh-native-souffle | mut+alloc+free+gc+exit |