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 | 38 | 4 | 11 | 12.1 | 17.8 | 476,742 | 1,282 | 6 | 409,294 | 5 | 204,647 | osh-native |
parse.configure-cpython | 36 | 5 | 12 | 12.0 | 17.6 | 476,742 | 1,282 | 6 | 408,794 | 5 | 204,397 | osh-native-souffle |
parse.configure-coreutils | 195 | 29 | 104 | 41.1 | 45.9 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 167 | 28 | 88 | 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.4 | 101,933 | 180 | 2 | 75,266 | 1 | 37,633 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.6 | 8.1 | 101,933 | 180 | 2 | 75,136 | 1 | 37,568 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.1 | 7.9 | 579,597 | 22,608 | 12 | 50,000 | 0 | 2,910 | osh-native |
ex.compute-fib | 23 | 0 | 2 | 2.1 | 7.6 | 579,597 | 22,608 | 12 | 50,000 | 0 | 2,848 | osh-native-souffle |
ex.bashcomp-parse-help | 186 | 0 | 5 | 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.4 | 995,278 | 15,258 | 21 | 50,000 | 0 | 3,838 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.0 | 116,309 | 277 | 3 | 85,502 | 1 | 42,751 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.5 | 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.6 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
106 | 47 | 66 | 3.5 | zsh | - |
16 | 16 | 0 | 28.5 | bumpleak/osh | mut |
20 | 16 | 4 | 28.7 | _bin/cxx-opt+bumproot/osh | mut |
23 | 15 | 8 | 29.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 11 | 19 | 25.0 | osh-native | mut+alloc |
34 | 22 | 13 | 25.6 | osh-native | mut+alloc+free |
38 | 26 | 11 | 17.8 | osh-native | mut+alloc+free+gc |
39 | 30 | 9 | 18.2 | osh-native | mut+alloc+free+gc+exit |
44 | 28 | 16 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
57 | 48 | 8 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 19 | 8 | 24.9 | osh-native-souffle | mut+alloc |
36 | 36 | 0 | 25.3 | osh-native-souffle | mut+alloc+free |
36 | 27 | 8 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
37 | 33 | 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 | 21 | 0 | 1.6 | dash | - |
78 | 74 | 4 | 3.1 | bash | - |
391 | 242 | 172 | 3.5 | zsh | - |
52 | 44 | 8 | 84.9 | bumpleak/osh | mut |
61 | 57 | 4 | 85.7 | _bin/cxx-opt+bumproot/osh | mut |
78 | 54 | 23 | 86.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
101 | 52 | 48 | 73.3 | osh-native | mut+alloc |
108 | 80 | 28 | 75.3 | osh-native | mut+alloc+free |
195 | 179 | 16 | 45.9 | osh-native | mut+alloc+free+gc |
200 | 155 | 44 | 46.1 | osh-native | mut+alloc+free+gc+exit |
142 | 105 | 36 | 99.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
287 | 238 | 48 | 60.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 48 | 40 | 73.2 | osh-native-souffle | mut+alloc |
99 | 76 | 24 | 75.0 | osh-native-souffle | mut+alloc+free |
167 | 150 | 16 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
161 | 128 | 32 | 50.4 | 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 | 0 | 8 | 3.3 | zsh | - |
6 | 0 | 6 | 10.8 | bumpleak/osh | mut |
7 | 7 | 0 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 3 | 6 | 8.4 | osh-native | mut+alloc+free+gc |
10 | 10 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 8 | 0 | 9.6 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 3 | 6 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
9 | 3 | 6 | 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.6 | dash | - |
29 | 25 | 4 | 3.0 | bash | - |
24 | 24 | 0 | 3.3 | zsh | - |
19 | 15 | 4 | 31.5 | bumpleak/osh | mut |
26 | 17 | 9 | 32.5 | _bin/cxx-opt+bumproot/osh | mut |
28 | 20 | 8 | 31.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 16 | 20 | 25.8 | osh-native | mut+alloc |
38 | 19 | 19 | 26.0 | osh-native | mut+alloc+free |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
55 | 43 | 12 | 35.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 33 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 19 | 11 | 25.6 | osh-native-souffle | mut+alloc |
33 | 24 | 8 | 25.6 | osh-native-souffle | mut+alloc+free |
23 | 15 | 7 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
23 | 23 | 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 | 65 | 8 | 3.1 | bash | - |
169 | 114 | 55 | 55.2 | bumpleak/osh | mut |
181 | 89 | 93 | 55.3 | _bin/cxx-opt+bumproot/osh | mut |
198 | 127 | 71 | 56.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
214 | 145 | 69 | 47.0 | osh-native | mut+alloc |
224 | 152 | 72 | 48.8 | osh-native | mut+alloc+free |
186 | 125 | 61 | 8.8 | osh-native | mut+alloc+free+gc |
184 | 124 | 60 | 8.8 | osh-native | mut+alloc+free+gc+exit |
238 | 157 | 81 | 64.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
223 | 179 | 44 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
208 | 124 | 84 | 46.6 | osh-native-souffle | mut+alloc |
215 | 127 | 87 | 48.2 | osh-native-souffle | mut+alloc+free |
176 | 128 | 48 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
180 | 116 | 64 | 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 | 9 | 2 | 3.4 | dash | - |
21 | 15 | 7 | 4.5 | bash | - |
18 | 13 | 6 | 3.5 | zsh | - |
20 | 13 | 8 | 12.1 | bumpleak/osh | mut |
23 | 18 | 4 | 13.5 | _bin/cxx-opt+bumproot/osh | mut |
24 | 8 | 17 | 13.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 20 | 3 | 11.0 | osh-native | mut+alloc |
24 | 17 | 7 | 11.1 | osh-native | mut+alloc+free |
23 | 21 | 3 | 9.0 | osh-native | mut+alloc+free+gc |
24 | 16 | 8 | 9.2 | osh-native | mut+alloc+free+gc+exit |
25 | 17 | 9 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
28 | 21 | 7 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
21 | 12 | 10 | 10.5 | osh-native-souffle | mut+alloc |
22 | 9 | 13 | 10.7 | osh-native-souffle | mut+alloc+free |
22 | 14 | 8 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
23 | 15 | 9 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |