Memory Management Overhead

Source code: oil/benchmarks/gc.sh

GC Stats

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.0 18.0 476,766 1,282 6 406,618 5 203,309 osh-native
parse.configure-cpython 34 4 11 12.0 17.4 476,766 1,282 6 406,608 5 203,304 osh-native-souffle
parse.configure-coreutils 155 26 69 44.5 49.8 1,653,354 4,764 12 1,025,540 6 764,313 osh-native
parse.configure-coreutils 146 26 70 44.5 49.4 1,653,353 4,764 12 1,025,530 6 764,308 osh-native-souffle
parse.abuild 9 1 2 2.6 8.4 101,957 180 2 75,044 1 37,522 osh-native
parse.abuild 8 1 2 2.6 8.3 101,957 180 2 75,034 1 37,517 osh-native-souffle
ex.compute-fib 28 0 2 2.2 8.0 579,721 22,608 12 50,000 0 2,926 osh-native
ex.compute-fib 22 0 2 2.2 7.7 579,721 22,608 12 50,000 0 2,921 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 11.1 8.9 1,021,038 15,258 22 50,000 0 3,915 osh-native
ex.bashcomp-parse-help 175 0 4 11.1 8.4 1,021,037 15,258 22 50,000 0 3,915 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.2 116,356 277 3 85,262 1 42,631 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,356 277 3 85,252 1 42,626 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 4 2 1.6 dash -
24 22 2 3.1 bash -
101 61 48 3.4 zsh -
16 12 4 27.9 bumpleak/osh mut
20 17 3 29.4 _bin/cxx-opt+bumproot/osh mut
22 20 2 29.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 14 15 25.2 osh-native mut+alloc
31 20 11 25.7 osh-native mut+alloc+free
36 30 6 18.0 osh-native mut+alloc+free+gc
36 29 7 18.1 osh-native mut+alloc+free+gc+exit
43 30 13 32.5 _bin/cxx-opt+nopool/osh mut+alloc
50 37 13 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 12 14 24.8 osh-native-souffle mut+alloc
28 18 10 25.3 osh-native-souffle mut+alloc+free
34 24 10 17.4 osh-native-souffle mut+alloc+free+gc
34 28 6 17.7 osh-native-souffle mut+alloc+free+gc+exit

parse.configure-coreutils

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 20 1 1.6 dash -
78 77 1 3.3 bash -
371 191 202 3.5 zsh -
48 42 6 85.5 bumpleak/osh mut
62 51 11 84.4 _bin/cxx-opt+bumproot/osh mut
72 50 22 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
101 64 37 73.7 osh-native mut+alloc
104 75 29 75.5 osh-native mut+alloc+free
155 134 21 49.8 osh-native mut+alloc+free+gc
159 135 24 50.3 osh-native mut+alloc+free+gc+exit
142 87 55 99.0 _bin/cxx-opt+nopool/osh mut+alloc
223 194 29 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 58 29 73.2 osh-native-souffle mut+alloc
94 63 30 75.0 osh-native-souffle mut+alloc+free
146 129 17 49.4 osh-native-souffle mut+alloc+free+gc
154 136 17 50.2 osh-native-souffle mut+alloc+free+gc+exit

parse.abuild

Parsing abuild from Alpine Linux.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
2 1 1 1.3 dash -
6 5 1 3.0 bash -
8 6 2 3.4 zsh -
6 2 4 11.4 bumpleak/osh mut
7 4 3 10.6 _bin/cxx-opt+bumproot/osh mut
7 6 1 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 10.0 osh-native mut+alloc
9 7 2 10.1 osh-native mut+alloc+free
9 6 3 8.4 osh-native mut+alloc+free+gc
10 7 3 8.5 osh-native mut+alloc+free+gc+exit
12 8 3 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 7 5 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 7 1 9.7 osh-native-souffle mut+alloc
8 4 5 9.7 osh-native-souffle mut+alloc+free
8 4 4 8.3 osh-native-souffle mut+alloc+free+gc
9 7 2 8.3 osh-native-souffle mut+alloc+free+gc+exit

ex.compute-fib

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 -
28 27 2 3.0 bash -
23 19 4 3.4 zsh -
18 13 5 32.8 bumpleak/osh mut
25 20 6 32.2 _bin/cxx-opt+bumproot/osh mut
29 24 5 32.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 27 9 26.5 osh-native mut+alloc
38 25 13 26.7 osh-native mut+alloc+free
28 26 2 8.0 osh-native mut+alloc+free+gc
29 25 4 8.0 osh-native mut+alloc+free+gc+exit
53 35 19 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 35 3 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 18 12 26.1 osh-native-souffle mut+alloc
31 21 9 26.3 osh-native-souffle mut+alloc+free
22 20 2 7.7 osh-native-souffle mut+alloc+free+gc
22 19 3 7.7 osh-native-souffle mut+alloc+free+gc+exit

ex.bashcomp-parse-help

A realistic bash-completion workload.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
74 71 3 3.1 bash -
167 123 44 56.2 bumpleak/osh mut
184 128 56 57.9 _bin/cxx-opt+bumproot/osh mut
197 132 65 57.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 142 72 49.0 osh-native mut+alloc
223 161 63 50.9 osh-native mut+alloc+free
182 140 42 8.9 osh-native mut+alloc+free+gc
184 134 50 8.8 osh-native mut+alloc+free+gc+exit
238 163 75 64.7 _bin/cxx-opt+nopool/osh mut+alloc
212 155 57 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 133 70 48.4 osh-native-souffle mut+alloc
212 143 69 50.3 osh-native-souffle mut+alloc+free
175 123 52 8.4 osh-native-souffle mut+alloc+free+gc
174 123 51 8.4 osh-native-souffle mut+alloc+free+gc+exit

ex.abuild-print-help

Running abuild -h from Alpine Linux.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
9 3 7 3.5 dash -
19 8 12 4.5 bash -
17 10 7 3.5 zsh -
19 10 10 12.9 bumpleak/osh mut
19 9 11 12.3 _bin/cxx-opt+bumproot/osh mut
20 7 14 13.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 10 13 11.1 osh-native mut+alloc
22 13 9 11.3 osh-native mut+alloc+free
22 10 13 9.2 osh-native mut+alloc+free+gc
22 10 13 9.2 osh-native mut+alloc+free+gc+exit
24 13 12 12.9 _bin/cxx-opt+nopool/osh mut+alloc
25 12 14 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 9 11 10.6 osh-native-souffle mut+alloc
21 8 13 10.7 osh-native-souffle mut+alloc+free
21 11 11 8.7 osh-native-souffle mut+alloc+free+gc
21 11 11 8.7 osh-native-souffle mut+alloc+free+gc+exit