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 | 40 | 6 | 13 | 12.1 | 18.0 | 476,744 | 1,282 | 6 | 409,298 | 5 | 204,649 | osh-native |
parse.configure-cpython | 37 | 6 | 13 | 12.0 | 17.7 | 476,744 | 1,282 | 6 | 408,798 | 5 | 204,399 | osh-native-souffle |
parse.configure-coreutils | 201 | 31 | 110 | 41.1 | 45.9 | 1,653,332 | 4,764 | 12 | 1,591,980 | 7 | 795,990 | osh-native |
parse.configure-coreutils | 179 | 32 | 99 | 44.6 | 49.7 | 1,653,331 | 4,764 | 12 | 1,030,682 | 6 | 769,425 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.7 | 101,935 | 180 | 2 | 75,270 | 1 | 37,635 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.1 | 101,935 | 180 | 2 | 75,140 | 1 | 37,570 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 2 | 2.1 | 7.9 | 579,599 | 22,608 | 12 | 50,000 | 0 | 2,912 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.1 | 7.6 | 579,599 | 22,608 | 12 | 50,000 | 0 | 2,850 | osh-native-souffle |
ex.bashcomp-parse-help | 187 | 0 | 4 | 10.3 | 8.7 | 995,281 | 15,258 | 21 | 50,000 | 0 | 3,895 | osh-native |
ex.bashcomp-parse-help | 178 | 0 | 5 | 10.3 | 8.5 | 995,280 | 15,258 | 21 | 50,000 | 0 | 3,840 | osh-native-souffle |
ex.abuild-print-help | 24 | 1 | 2 | 2.8 | 9.2 | 116,311 | 277 | 3 | 85,506 | 1 | 42,753 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.7 | 116,311 | 277 | 3 | 85,382 | 1 | 42,691 | 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 | - |
107 | 60 | 53 | 3.4 | zsh | - |
17 | 13 | 4 | 29.7 | bumpleak/osh | mut |
20 | 16 | 4 | 28.6 | _bin/cxx-opt+bumproot/osh | mut |
23 | 15 | 8 | 28.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 26 | 4 | 25.2 | osh-native | mut+alloc |
32 | 28 | 4 | 25.7 | osh-native | mut+alloc+free |
40 | 36 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
42 | 34 | 8 | 18.1 | osh-native | mut+alloc+free+gc+exit |
44 | 28 | 16 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
60 | 43 | 16 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
28 | 12 | 15 | 24.8 | osh-native-souffle | mut+alloc |
30 | 21 | 8 | 25.3 | osh-native-souffle | mut+alloc+free |
37 | 28 | 8 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
39 | 39 | 0 | 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 |
22 | 22 | 0 | 1.4 | dash | - |
78 | 73 | 4 | 3.0 | bash | - |
383 | 222 | 182 | 3.5 | zsh | - |
50 | 35 | 15 | 84.7 | bumpleak/osh | mut |
60 | 52 | 8 | 84.3 | _bin/cxx-opt+bumproot/osh | mut |
71 | 55 | 16 | 86.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 63 | 36 | 73.4 | osh-native | mut+alloc |
108 | 84 | 24 | 75.4 | osh-native | mut+alloc+free |
201 | 165 | 35 | 45.9 | osh-native | mut+alloc+free+gc |
203 | 190 | 12 | 46.1 | osh-native | mut+alloc+free+gc+exit |
142 | 93 | 48 | 97.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
295 | 263 | 32 | 61.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
89 | 58 | 31 | 73.0 | osh-native-souffle | mut+alloc |
99 | 57 | 41 | 75.1 | osh-native-souffle | mut+alloc+free |
179 | 147 | 32 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
184 | 164 | 20 | 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 | 3 | 3 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 3 | 3 | 10.8 | bumpleak/osh | mut |
7 | 4 | 4 | 11.8 | _bin/cxx-opt+bumproot/osh | mut |
8 | 8 | 0 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.2 | osh-native | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.8 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
13 | 8 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 0 | 8 | 9.7 | osh-native-souffle | mut+alloc |
9 | 9 | 0 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 4 | 4 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
9 | 5 | 5 | 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 | 29 | 0 | 2.9 | bash | - |
24 | 16 | 8 | 3.3 | zsh | - |
20 | 11 | 8 | 32.1 | bumpleak/osh | mut |
26 | 17 | 9 | 32.9 | _bin/cxx-opt+bumproot/osh | mut |
29 | 18 | 11 | 32.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 28 | 8 | 26.0 | osh-native | mut+alloc |
39 | 23 | 15 | 26.2 | osh-native | mut+alloc+free |
29 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
29 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
55 | 40 | 16 | 35.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 34 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 26 | 4 | 25.4 | osh-native-souffle | mut+alloc |
32 | 28 | 4 | 25.8 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
23 | 19 | 4 | 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.1 | bash | - |
170 | 93 | 77 | 55.3 | bumpleak/osh | mut |
184 | 112 | 72 | 54.6 | _bin/cxx-opt+bumproot/osh | mut |
195 | 143 | 52 | 55.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
216 | 124 | 92 | 47.0 | osh-native | mut+alloc |
223 | 139 | 84 | 48.7 | osh-native | mut+alloc+free |
187 | 115 | 71 | 8.7 | osh-native | mut+alloc+free+gc |
186 | 157 | 28 | 8.9 | osh-native | mut+alloc+free+gc+exit |
237 | 169 | 68 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
235 | 179 | 56 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
207 | 143 | 64 | 46.7 | osh-native-souffle | mut+alloc |
220 | 140 | 80 | 48.3 | osh-native-souffle | mut+alloc+free |
178 | 117 | 60 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
177 | 128 | 48 | 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 | 7 | 3 | 3.5 | dash | - |
20 | 14 | 7 | 4.5 | bash | - |
19 | 14 | 5 | 3.4 | zsh | - |
18 | 13 | 6 | 11.5 | bumpleak/osh | mut |
20 | 7 | 14 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
21 | 5 | 16 | 12.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 15 | 7 | 11.0 | osh-native | mut+alloc |
24 | 11 | 13 | 11.0 | osh-native | mut+alloc+free |
24 | 17 | 7 | 9.2 | osh-native | mut+alloc+free+gc |
24 | 16 | 9 | 9.2 | osh-native | mut+alloc+free+gc+exit |
25 | 24 | 2 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
27 | 24 | 3 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 7 | 14 | 10.6 | osh-native-souffle | mut+alloc |
22 | 6 | 16 | 10.7 | osh-native-souffle | mut+alloc+free |
22 | 19 | 3 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
23 | 15 | 9 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |