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 9 12.0 17.8 476,766 1,282 6 406,618 5 203,309 osh-native
parse.configure-cpython 33 4 9 12.0 17.4 476,766 1,282 6 406,608 5 203,304 osh-native-souffle
parse.configure-coreutils 156 26 68 44.5 49.8 1,653,354 4,764 12 1,025,540 6 764,313 osh-native
parse.configure-coreutils 145 25 69 44.5 49.4 1,653,353 4,764 12 1,025,530 6 764,308 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,957 180 2 75,044 1 37,522 osh-native
parse.abuild 8 1 1 2.6 8.1 101,957 180 2 75,034 1 37,517 osh-native-souffle
ex.compute-fib 28 0 1 2.2 7.9 579,721 22,608 12 50,000 0 2,926 osh-native
ex.compute-fib 21 0 1 2.2 7.5 579,721 22,608 12 50,000 0 2,921 osh-native-souffle
ex.bashcomp-parse-help 184 0 4 11.1 8.8 1,021,038 15,258 22 50,000 0 3,915 osh-native
ex.bashcomp-parse-help 174 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 5 1 1.4 dash -
23 22 1 2.8 bash -
100 46 60 3.4 zsh -
17 12 4 29.6 bumpleak/osh mut
20 18 2 30.2 _bin/cxx-opt+bumproot/osh mut
23 15 7 30.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 18 11 25.3 osh-native mut+alloc
33 24 9 25.6 osh-native mut+alloc+free
36 29 6 17.8 osh-native mut+alloc+free+gc
38 32 5 18.1 osh-native mut+alloc+free+gc+exit
42 24 18 32.3 _bin/cxx-opt+nopool/osh mut+alloc
48 38 10 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 18 9 24.9 osh-native-souffle mut+alloc
29 14 14 25.4 osh-native-souffle mut+alloc+free
33 28 5 17.4 osh-native-souffle mut+alloc+free+gc
34 27 8 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 21 0 1.4 dash -
78 77 1 3.3 bash -
363 191 193 3.5 zsh -
50 39 11 85.9 bumpleak/osh mut
61 53 8 84.5 _bin/cxx-opt+bumproot/osh mut
72 62 10 86.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 66 30 73.5 osh-native mut+alloc
106 68 38 75.2 osh-native mut+alloc+free
156 135 21 49.8 osh-native mut+alloc+free+gc
158 139 19 50.4 osh-native mut+alloc+free+gc+exit
137 82 55 98.9 _bin/cxx-opt+nopool/osh mut+alloc
217 187 30 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 58 31 73.3 osh-native-souffle mut+alloc
96 57 40 75.1 osh-native-souffle mut+alloc+free
145 125 20 49.4 osh-native-souffle mut+alloc+free+gc
149 126 23 49.9 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 2 0 1.4 dash -
5 4 2 2.9 bash -
7 5 3 3.4 zsh -
6 3 3 12.0 bumpleak/osh mut
7 5 2 11.0 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 6 3 10.1 osh-native mut+alloc
9 5 4 10.1 osh-native mut+alloc+free
9 7 2 8.5 osh-native mut+alloc+free+gc
9 8 1 8.5 osh-native mut+alloc+free+gc+exit
12 7 5 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 11 1 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 5 3 9.4 osh-native-souffle mut+alloc
8 6 2 9.7 osh-native-souffle mut+alloc+free
8 5 4 8.1 osh-native-souffle mut+alloc+free+gc
8 7 1 8.1 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.3 dash -
28 27 1 2.8 bash -
23 19 4 3.1 zsh -
19 15 4 32.0 bumpleak/osh mut
28 26 2 33.1 _bin/cxx-opt+bumproot/osh mut
28 23 5 32.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 25 12 26.3 osh-native mut+alloc
38 27 11 26.6 osh-native mut+alloc+free
28 25 3 7.9 osh-native mut+alloc+free+gc
29 26 3 7.9 osh-native mut+alloc+free+gc+exit
54 36 17 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 35 3 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 11 26.0 osh-native-souffle mut+alloc
31 19 12 26.2 osh-native-souffle mut+alloc+free
21 19 2 7.5 osh-native-souffle mut+alloc+free+gc
22 19 3 7.6 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
73 68 5 3.0 bash -
167 106 61 57.0 bumpleak/osh mut
182 133 49 57.6 _bin/cxx-opt+bumproot/osh mut
195 133 62 57.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 155 59 48.8 osh-native mut+alloc
223 145 78 50.8 osh-native mut+alloc+free
184 130 54 8.8 osh-native mut+alloc+free+gc
186 135 50 8.8 osh-native mut+alloc+free+gc+exit
237 150 87 64.7 _bin/cxx-opt+nopool/osh mut+alloc
210 154 56 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 147 59 48.4 osh-native-souffle mut+alloc
213 137 77 50.3 osh-native-souffle mut+alloc+free
174 129 44 8.4 osh-native-souffle mut+alloc+free+gc
175 119 57 8.3 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 4 6 3.4 dash -
20 11 9 4.5 bash -
17 6 12 3.4 zsh -
19 9 10 12.7 bumpleak/osh mut
21 6 15 13.2 _bin/cxx-opt+bumproot/osh mut
20 9 11 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 12 9 11.1 osh-native mut+alloc
22 8 15 11.3 osh-native mut+alloc+free
22 12 11 9.2 osh-native mut+alloc+free+gc
23 13 10 9.2 osh-native mut+alloc+free+gc+exit
24 13 12 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 14 12 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 7 13 10.6 osh-native-souffle mut+alloc
21 10 12 10.7 osh-native-souffle mut+alloc+free
21 12 9 8.7 osh-native-souffle mut+alloc+free+gc
21 11 11 8.5 osh-native-souffle mut+alloc+free+gc+exit