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 35 3 9 12.0 18.0 476,691 1,282 6 408,764 5 204,382 osh-native
parse.configure-coreutils 149 23 60 46.1 51.4 1,653,279 4,764 12 1,069,130 6 798,646 osh-native
parse.abuild 9 1 1 2.6 8.4 101,882 180 2 75,106 1 37,553 osh-native
ex.compute-fib 28 0 1 2.6 7.9 584,147 31,810 12 50,000 0 2,829 osh-native
ex.bashcomp-parse-help 180 0 3 10.6 8.7 995,224 27,376 21 50,000 0 3,825 osh-native
ex.abuild-print-help 22 1 2 2.8 8.9 116,291 478 3 85,342 1 42,671 osh-native

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 3 3 1.6 dash -
23 19 4 2.9 bash -
104 62 48 3.4 zsh -
16 15 0 28.8 bumpleak/osh mut
19 19 0 29.2 _bin/cxx-opt+bumproot/osh mut
22 15 7 29.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 25.2 osh-native mut+alloc
31 27 4 25.6 osh-native mut+alloc+free
35 27 8 18.0 osh-native mut+alloc+free+gc
36 32 4 17.8 osh-native mut+alloc+free+gc+exit
43 20 24 32.1 _bin/cxx-opt+nopool/osh mut+alloc
47 43 4 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

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
22 21 0 1.6 dash -
77 74 4 3.1 bash -
376 218 179 3.5 zsh -
48 40 8 84.9 bumpleak/osh mut
60 48 12 85.5 _bin/cxx-opt+bumproot/osh mut
72 56 16 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 63 35 73.2 osh-native mut+alloc
108 60 48 75.0 osh-native mut+alloc+free
149 117 31 51.4 osh-native mut+alloc+free+gc
149 129 20 50.7 osh-native mut+alloc+free+gc+exit
138 93 45 99.2 _bin/cxx-opt+nopool/osh mut+alloc
207 183 24 74.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

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 -
6 6 0 3.0 bash -
8 4 4 3.3 zsh -
6 0 6 10.5 bumpleak/osh mut
6 3 3 12.7 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 9.8 osh-native mut+alloc
8 4 4 10.0 osh-native mut+alloc+free
9 6 3 8.4 osh-native mut+alloc+free+gc
9 4 4 8.5 osh-native mut+alloc+free+gc+exit
11 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 11 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

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 28 0 3.0 bash -
24 19 4 3.3 zsh -
18 18 0 31.0 bumpleak/osh mut
25 14 11 32.4 _bin/cxx-opt+bumproot/osh mut
28 20 8 32.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.3 osh-native mut+alloc
37 29 8 26.7 osh-native mut+alloc+free
28 27 0 7.9 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
53 45 8 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 28 8 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

ex.bashcomp-parse-help

A realistic bash-completion workload.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
73 73 0 3.0 bash -
170 126 43 54.4 bumpleak/osh mut
178 105 73 54.5 _bin/cxx-opt+bumproot/osh mut
192 132 60 56.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
209 105 105 47.1 osh-native mut+alloc
216 144 72 48.8 osh-native mut+alloc+free
180 131 49 8.7 osh-native mut+alloc+free+gc
181 112 68 8.8 osh-native mut+alloc+free+gc+exit
231 146 85 63.0 _bin/cxx-opt+nopool/osh mut+alloc
205 165 40 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

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.4 dash -
19 14 5 4.5 bash -
18 9 9 3.4 zsh -
18 10 9 13.0 bumpleak/osh mut
21 13 8 12.8 _bin/cxx-opt+bumproot/osh mut
22 20 3 13.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 16 6 11.0 osh-native mut+alloc
22 13 9 10.9 osh-native mut+alloc+free
22 18 5 8.9 osh-native mut+alloc+free+gc
23 15 8 8.7 osh-native mut+alloc+free+gc+exit
25 14 11 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 21 5 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc