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,684 1,282 6 408,754 5 204,377 osh-native
parse.configure-coreutils 158 25 70 46.1 51.6 1,653,272 4,764 12 1,069,120 6 798,641 osh-native
parse.abuild 9 1 1 2.6 8.4 101,875 180 2 75,096 1 37,548 osh-native
ex.compute-fib 28 0 1 2.6 7.7 584,140 31,810 12 50,000 0 2,825 osh-native
ex.bashcomp-parse-help 182 0 3 10.6 8.4 995,217 27,376 21 50,000 0 3,820 osh-native
ex.abuild-print-help 22 1 2 2.8 9.0 116,284 478 3 85,332 1 42,666 osh-native

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 6 0 1.6 dash -
23 23 0 3.0 bash -
104 55 57 3.4 zsh -
16 12 4 28.4 bumpleak/osh mut
19 15 4 29.0 _bin/cxx-opt+bumproot/osh mut
23 19 4 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 26 4 25.2 osh-native mut+alloc
33 15 18 25.4 osh-native mut+alloc+free
35 23 12 18.0 osh-native mut+alloc+free+gc
36 32 4 18.0 osh-native mut+alloc+free+gc+exit
43 19 23 32.0 _bin/cxx-opt+nopool/osh mut+alloc
48 37 11 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
21 17 4 1.6 dash -
77 77 0 3.3 bash -
378 197 201 3.3 zsh -
48 48 0 85.8 bumpleak/osh mut
61 57 4 85.7 _bin/cxx-opt+bumproot/osh mut
70 65 4 84.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 73 24 73.4 osh-native mut+alloc
106 74 31 75.4 osh-native mut+alloc+free
158 138 20 51.6 osh-native mut+alloc+free+gc
164 136 28 52.1 osh-native mut+alloc+free+gc+exit
139 99 40 97.6 _bin/cxx-opt+nopool/osh mut+alloc
223 182 41 72.3 _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.3 dash -
6 3 3 2.8 bash -
8 8 0 3.4 zsh -
6 0 6 11.4 bumpleak/osh mut
6 6 0 12.1 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 9.8 osh-native mut+alloc
9 6 3 10.1 osh-native mut+alloc+free
9 5 5 8.4 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.3 _bin/cxx-opt+nopool/osh mut+alloc
11 4 8 9.3 _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 7 3 1.4 dash -
29 28 0 2.9 bash -
24 20 4 3.4 zsh -
20 19 0 32.0 bumpleak/osh mut
26 21 4 32.4 _bin/cxx-opt+bumproot/osh mut
28 27 0 33.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.3 osh-native mut+alloc
38 19 19 26.6 osh-native mut+alloc+free
28 20 8 7.7 osh-native mut+alloc+free+gc
28 28 0 7.9 osh-native mut+alloc+free+gc+exit
54 42 11 36.5 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.4 _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
74 70 4 3.0 bash -
169 78 90 54.9 bumpleak/osh mut
181 122 59 55.8 _bin/cxx-opt+bumproot/osh mut
194 142 51 55.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 143 67 46.9 osh-native mut+alloc
221 138 83 48.8 osh-native mut+alloc+free
182 107 75 8.4 osh-native mut+alloc+free+gc
183 114 69 8.8 osh-native mut+alloc+free+gc+exit
231 147 84 63.6 _bin/cxx-opt+nopool/osh mut+alloc
210 153 56 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 6 4 3.4 dash -
20 13 7 4.5 bash -
18 17 1 3.4 zsh -
18 16 2 11.3 bumpleak/osh mut
20 17 3 12.4 _bin/cxx-opt+bumproot/osh mut
20 10 10 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 15 7 10.7 osh-native mut+alloc
23 17 6 11.0 osh-native mut+alloc+free
22 20 3 9.0 osh-native mut+alloc+free+gc
23 22 2 8.9 osh-native mut+alloc+free+gc+exit
25 15 11 12.4 _bin/cxx-opt+nopool/osh mut+alloc
25 15 11 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc