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 37 4 10 12.0 18.0 476,766 1,282 6 406,618 5 203,309 osh-native
parse.configure-cpython 35 5 12 12.0 17.6 476,766 1,282 6 406,608 5 203,304 osh-native-souffle
parse.configure-coreutils 173 27 84 44.5 50.0 1,653,354 4,764 12 1,025,540 6 764,313 osh-native
parse.configure-coreutils 163 30 85 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.7 101,957 180 2 75,044 1 37,522 osh-native
parse.abuild 9 1 1 2.6 8.3 101,957 180 2 75,034 1 37,517 osh-native-souffle
ex.compute-fib 29 0 2 2.2 7.9 579,721 22,608 12 50,000 0 2,926 osh-native
ex.compute-fib 22 0 2 2.2 7.6 579,721 22,608 12 50,000 0 2,921 osh-native-souffle
ex.bashcomp-parse-help 186 0 4 11.1 8.9 1,021,036 15,258 22 50,000 0 3,915 osh-native
ex.bashcomp-parse-help 179 0 5 11.1 8.4 1,021,035 15,258 22 50,000 0 3,915 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.0 116,340 277 3 85,262 1 42,631 osh-native
ex.abuild-print-help 21 1 2 2.8 8.5 116,340 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 6 1 1.4 dash -
23 21 2 3.1 bash -
103 57 53 3.4 zsh -
31 23 8 28.7 bumpleak/osh mut
20 16 4 29.3 _bin/cxx-opt+bumproot/osh mut
23 18 5 30.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 25.2 osh-native mut+alloc
32 24 8 25.7 osh-native mut+alloc+free
37 26 11 18.0 osh-native mut+alloc+free+gc
39 31 8 18.2 osh-native mut+alloc+free+gc+exit
44 26 18 32.4 _bin/cxx-opt+nopool/osh mut+alloc
53 41 12 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 13 13 24.8 osh-native-souffle mut+alloc
29 15 14 25.4 osh-native-souffle mut+alloc+free
35 25 10 17.6 osh-native-souffle mut+alloc+free+gc
35 25 10 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 -
77 76 2 3.3 bash -
371 184 208 3.5 zsh -
50 43 7 85.8 bumpleak/osh mut
60 54 6 85.7 _bin/cxx-opt+bumproot/osh mut
72 57 15 85.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 67 32 73.4 osh-native mut+alloc
106 69 37 75.2 osh-native mut+alloc+free
173 151 22 50.0 osh-native mut+alloc+free+gc
174 154 20 50.5 osh-native mut+alloc+free+gc+exit
143 88 55 99.0 _bin/cxx-opt+nopool/osh mut+alloc
247 223 24 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 49 38 73.2 osh-native-souffle mut+alloc
95 66 28 74.9 osh-native-souffle mut+alloc+free
163 140 23 49.4 osh-native-souffle mut+alloc+free+gc
166 145 21 50.1 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.3 dash -
5 5 0 2.8 bash -
7 3 4 3.4 zsh -
6 2 4 11.2 bumpleak/osh mut
7 4 3 11.2 _bin/cxx-opt+bumproot/osh mut
7 3 5 11.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 5 4 10.0 osh-native mut+alloc
9 7 2 10.2 osh-native mut+alloc+free
9 7 2 8.7 osh-native mut+alloc+free+gc
9 8 1 8.8 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 7 5 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 1 7 9.7 osh-native-souffle mut+alloc
8 5 3 9.7 osh-native-souffle mut+alloc+free
9 7 2 8.3 osh-native-souffle mut+alloc+free+gc
9 7 2 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.6 dash -
28 28 0 3.0 bash -
23 14 9 3.3 zsh -
19 15 4 31.4 bumpleak/osh mut
26 20 6 32.4 _bin/cxx-opt+bumproot/osh mut
29 25 4 31.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 26 11 26.5 osh-native mut+alloc
39 31 7 26.6 osh-native mut+alloc+free
29 26 3 7.9 osh-native mut+alloc+free+gc
29 27 2 8.1 osh-native mut+alloc+free+gc+exit
54 35 19 36.1 _bin/cxx-opt+nopool/osh mut+alloc
39 35 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 22 8 26.0 osh-native-souffle mut+alloc
33 19 14 26.1 osh-native-souffle mut+alloc+free
22 19 3 7.6 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
76 72 4 3.1 bash -
168 123 45 56.3 bumpleak/osh mut
182 120 62 57.2 _bin/cxx-opt+bumproot/osh mut
196 140 56 58.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
216 140 76 49.0 osh-native mut+alloc
220 151 69 50.8 osh-native mut+alloc+free
186 143 43 8.9 osh-native mut+alloc+free+gc
184 133 51 8.9 osh-native mut+alloc+free+gc+exit
237 153 84 64.7 _bin/cxx-opt+nopool/osh mut+alloc
218 170 48 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 135 70 48.3 osh-native-souffle mut+alloc
214 143 71 50.3 osh-native-souffle mut+alloc+free
179 133 46 8.4 osh-native-souffle mut+alloc+free+gc
177 137 40 8.1 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
10 7 3 3.5 dash -
20 9 11 4.5 bash -
18 6 13 3.5 zsh -
18 9 10 11.7 bumpleak/osh mut
21 8 13 12.9 _bin/cxx-opt+bumproot/osh mut
20 7 14 13.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 11 11 11.0 osh-native mut+alloc
23 11 12 11.3 osh-native mut+alloc+free
23 12 11 9.0 osh-native mut+alloc+free+gc
23 10 13 9.0 osh-native mut+alloc+free+gc+exit
25 11 15 12.8 _bin/cxx-opt+nopool/osh mut+alloc
26 19 7 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 6 14 10.6 osh-native-souffle mut+alloc
21 12 9 10.7 osh-native-souffle mut+alloc+free
21 10 12 8.5 osh-native-souffle mut+alloc+free+gc
21 10 12 8.5 osh-native-souffle mut+alloc+free+gc+exit