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.1 | 476,742 | 1,282 | 6 | 409,294 | 5 | 204,647 | osh-native |
parse.configure-cpython | 34 | 4 | 10 | 12.0 | 17.8 | 476,742 | 1,282 | 6 | 408,794 | 5 | 204,397 | osh-native-souffle |
parse.configure-coreutils | 174 | 25 | 87 | 41.1 | 45.7 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 151 | 26 | 72 | 44.6 | 49.7 | 1,653,329 | 4,764 | 12 | 1,030,678 | 6 | 769,423 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,933 | 180 | 2 | 75,266 | 1 | 37,633 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.3 | 101,933 | 180 | 2 | 75,136 | 1 | 37,568 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.1 | 8.0 | 579,597 | 22,608 | 12 | 50,000 | 0 | 2,910 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.1 | 7.6 | 579,597 | 22,608 | 12 | 50,000 | 0 | 2,848 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 4 | 10.3 | 8.8 | 995,279 | 15,258 | 21 | 50,000 | 0 | 3,893 | osh-native |
ex.bashcomp-parse-help | 176 | 0 | 4 | 10.3 | 8.3 | 995,278 | 15,258 | 21 | 50,000 | 0 | 3,838 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 116,309 | 277 | 3 | 85,502 | 1 | 42,751 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 116,309 | 277 | 3 | 85,378 | 1 | 42,689 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.4 | dash | - |
23 | 23 | 0 | 3.1 | bash | - |
106 | 62 | 52 | 3.4 | zsh | - |
17 | 12 | 4 | 27.9 | bumpleak/osh | mut |
20 | 19 | 0 | 29.8 | _bin/cxx-opt+bumproot/osh | mut |
23 | 22 | 0 | 30.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 11 | 18 | 25.2 | osh-native | mut+alloc |
32 | 24 | 8 | 25.6 | osh-native | mut+alloc+free |
36 | 32 | 4 | 18.1 | osh-native | mut+alloc+free+gc |
37 | 36 | 0 | 18.2 | osh-native | mut+alloc+free+gc+exit |
44 | 26 | 17 | 33.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 44 | 4 | 22.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 9 | 17 | 24.8 | osh-native-souffle | mut+alloc |
29 | 11 | 18 | 25.2 | osh-native-souffle | mut+alloc+free |
34 | 18 | 15 | 17.8 | osh-native-souffle | mut+alloc+free+gc |
33 | 30 | 4 | 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.4 | dash | - |
78 | 77 | 0 | 3.1 | bash | - |
384 | 219 | 185 | 3.4 | zsh | - |
50 | 37 | 12 | 84.7 | bumpleak/osh | mut |
60 | 44 | 16 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
70 | 57 | 12 | 85.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 80 | 16 | 73.5 | osh-native | mut+alloc |
108 | 52 | 56 | 75.1 | osh-native | mut+alloc+free |
174 | 145 | 28 | 45.7 | osh-native | mut+alloc+free+gc |
174 | 165 | 8 | 46.1 | osh-native | mut+alloc+free+gc+exit |
138 | 75 | 63 | 99.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
240 | 207 | 32 | 61.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 44 | 44 | 73.3 | osh-native-souffle | mut+alloc |
96 | 64 | 32 | 75.0 | osh-native-souffle | mut+alloc+free |
151 | 119 | 32 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
157 | 132 | 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 | 6 | 0 | 2.9 | bash | - |
8 | 8 | 0 | 3.1 | zsh | - |
6 | 6 | 0 | 10.5 | bumpleak/osh | mut |
6 | 6 | 0 | 12.2 | _bin/cxx-opt+bumproot/osh | mut |
8 | 0 | 8 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 0 | 9 | 10.0 | osh-native | mut+alloc |
9 | 0 | 9 | 10.2 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 4 | 4 | 8.8 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 4 | 8 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
7 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc+free |
8 | 8 | 0 | 8.3 | 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.9 | bash | - |
24 | 23 | 0 | 3.1 | zsh | - |
18 | 14 | 5 | 31.1 | bumpleak/osh | mut |
26 | 21 | 4 | 33.1 | _bin/cxx-opt+bumproot/osh | mut |
27 | 23 | 4 | 32.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 26.0 | osh-native | mut+alloc |
37 | 29 | 8 | 26.2 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
27 | 27 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 27 | 27 | 35.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 29 | 7 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 29 | 0 | 25.6 | osh-native-souffle | mut+alloc |
31 | 13 | 17 | 25.8 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 15 | 7 | 7.7 | 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 |
72 | 68 | 4 | 3.1 | bash | - |
168 | 112 | 56 | 54.7 | bumpleak/osh | mut |
181 | 97 | 85 | 55.2 | _bin/cxx-opt+bumproot/osh | mut |
205 | 144 | 60 | 55.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 100 | 111 | 47.0 | osh-native | mut+alloc |
220 | 140 | 80 | 48.7 | osh-native | mut+alloc+free |
182 | 109 | 73 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 121 | 60 | 8.7 | osh-native | mut+alloc+free+gc+exit |
234 | 113 | 121 | 64.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 125 | 85 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
207 | 135 | 72 | 46.7 | osh-native-souffle | mut+alloc |
214 | 133 | 81 | 48.3 | osh-native-souffle | mut+alloc+free |
176 | 84 | 92 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
174 | 134 | 40 | 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 | 9 | 2 | 3.5 | dash | - |
20 | 12 | 8 | 4.5 | bash | - |
18 | 8 | 11 | 3.5 | zsh | - |
19 | 9 | 10 | 12.1 | bumpleak/osh | mut |
20 | 13 | 7 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
22 | 14 | 8 | 13.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 13 | 9 | 10.9 | osh-native | mut+alloc |
23 | 11 | 12 | 11.0 | osh-native | mut+alloc+free |
22 | 15 | 8 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 14 | 9 | 9.2 | osh-native | mut+alloc+free+gc+exit |
25 | 8 | 17 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 25 | 1 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 14 | 6 | 10.5 | osh-native-souffle | mut+alloc |
21 | 13 | 9 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 15 | 6 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 11 | 12 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |