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 | 17.8 | 476,744 | 1,282 | 6 | 409,298 | 5 | 204,649 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.7 | 476,744 | 1,282 | 6 | 408,798 | 5 | 204,399 | osh-native-souffle |
parse.configure-coreutils | 166 | 24 | 79 | 41.1 | 45.9 | 1,653,332 | 4,764 | 12 | 1,591,980 | 7 | 795,990 | osh-native |
parse.configure-coreutils | 148 | 27 | 71 | 44.6 | 49.6 | 1,653,331 | 4,764 | 12 | 1,030,682 | 6 | 769,425 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 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 | 28 | 0 | 2 | 2.1 | 8.0 | 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 | 183 | 0 | 4 | 10.3 | 8.7 | 995,281 | 15,258 | 21 | 50,000 | 0 | 3,895 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 4 | 10.3 | 8.4 | 995,280 | 15,258 | 21 | 50,000 | 0 | 3,840 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,311 | 277 | 3 | 85,506 | 1 | 42,753 | osh-native |
ex.abuild-print-help | 21 | 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 | 2.8 | bash | - |
105 | 59 | 53 | 3.5 | zsh | - |
17 | 13 | 4 | 29.3 | bumpleak/osh | mut |
21 | 8 | 13 | 28.5 | _bin/cxx-opt+bumproot/osh | mut |
23 | 15 | 7 | 29.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 18 | 11 | 25.2 | osh-native | mut+alloc |
31 | 20 | 12 | 25.6 | osh-native | mut+alloc+free |
36 | 27 | 8 | 17.8 | osh-native | mut+alloc+free+gc |
37 | 36 | 0 | 18.1 | osh-native | mut+alloc+free+gc+exit |
44 | 32 | 12 | 32.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
53 | 49 | 4 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 23 | 4 | 24.8 | osh-native-souffle | mut+alloc |
29 | 20 | 8 | 25.2 | osh-native-souffle | mut+alloc+free |
33 | 33 | 0 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
34 | 33 | 0 | 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 |
21 | 21 | 0 | 1.6 | dash | - |
78 | 77 | 0 | 3.3 | bash | - |
382 | 229 | 175 | 3.5 | zsh | - |
49 | 45 | 4 | 84.5 | bumpleak/osh | mut |
59 | 48 | 12 | 85.9 | _bin/cxx-opt+bumproot/osh | mut |
71 | 63 | 8 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 77 | 20 | 73.6 | osh-native | mut+alloc |
105 | 70 | 35 | 75.4 | osh-native | mut+alloc+free |
166 | 146 | 20 | 45.9 | osh-native | mut+alloc+free+gc |
173 | 141 | 31 | 46.1 | osh-native | mut+alloc+free+gc+exit |
138 | 89 | 49 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
236 | 196 | 40 | 62.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 60 | 28 | 73.2 | osh-native-souffle | mut+alloc |
95 | 67 | 28 | 75.0 | osh-native-souffle | mut+alloc+free |
148 | 119 | 28 | 49.6 | osh-native-souffle | mut+alloc+free+gc |
166 | 153 | 12 | 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 | - |
7 | 7 | 0 | 3.3 | zsh | - |
7 | 6 | 0 | 11.3 | bumpleak/osh | mut |
7 | 3 | 3 | 11.3 | _bin/cxx-opt+bumproot/osh | mut |
8 | 0 | 8 | 12.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.1 | osh-native | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 0 | 12 | 11.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
13 | 6 | 6 | 9.5 | _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 | 4 | 4 | 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 |
11 | 11 | 0 | 1.4 | dash | - |
28 | 24 | 4 | 3.0 | bash | - |
23 | 15 | 8 | 3.4 | zsh | - |
19 | 11 | 7 | 31.9 | bumpleak/osh | mut |
25 | 25 | 0 | 31.6 | _bin/cxx-opt+bumproot/osh | mut |
27 | 15 | 12 | 32.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 20 | 16 | 25.8 | osh-native | mut+alloc |
37 | 29 | 8 | 26.2 | osh-native | mut+alloc+free |
28 | 20 | 8 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
52 | 32 | 20 | 35.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
36 | 36 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
29 | 21 | 8 | 25.4 | osh-native-souffle | mut+alloc |
31 | 19 | 11 | 25.8 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
21 | 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 | 73 | 0 | 3.1 | bash | - |
168 | 104 | 64 | 55.5 | bumpleak/osh | mut |
182 | 134 | 47 | 54.8 | _bin/cxx-opt+bumproot/osh | mut |
193 | 134 | 59 | 56.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 143 | 67 | 47.0 | osh-native | mut+alloc |
216 | 154 | 61 | 48.9 | osh-native | mut+alloc+free |
183 | 115 | 68 | 8.7 | osh-native | mut+alloc+free+gc |
182 | 134 | 47 | 8.8 | osh-native | mut+alloc+free+gc+exit |
234 | 133 | 101 | 63.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 154 | 57 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 108 | 96 | 46.6 | osh-native-souffle | mut+alloc |
212 | 144 | 68 | 48.3 | osh-native-souffle | mut+alloc+free |
175 | 127 | 48 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
175 | 131 | 44 | 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 |
9 | 8 | 1 | 3.5 | dash | - |
20 | 13 | 7 | 4.5 | bash | - |
17 | 16 | 2 | 3.5 | zsh | - |
18 | 6 | 12 | 11.2 | bumpleak/osh | mut |
21 | 21 | 0 | 12.8 | _bin/cxx-opt+bumproot/osh | mut |
20 | 15 | 6 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 14 | 8 | 11.0 | osh-native | mut+alloc |
22 | 21 | 2 | 11.1 | osh-native | mut+alloc+free |
22 | 17 | 6 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 18 | 5 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 14 | 11 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 16 | 9 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 18 | 3 | 10.6 | osh-native-souffle | mut+alloc |
21 | 19 | 3 | 10.6 | osh-native-souffle | mut+alloc+free |
21 | 15 | 7 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 20 | 3 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |