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 147 23 60 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 181 0 3 10.6 8.8 995,217 27,376 21 50,000 0 3,820 osh-native
ex.abuild-print-help 22 1 2 2.8 8.7 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 -
105 61 50 3.4 zsh -
16 16 0 27.9 bumpleak/osh mut
19 19 0 29.5 _bin/cxx-opt+bumproot/osh mut
23 22 0 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 18 11 25.0 osh-native mut+alloc
31 23 8 25.6 osh-native mut+alloc+free
35 27 8 18.0 osh-native mut+alloc+free+gc
36 35 0 18.0 osh-native mut+alloc+free+gc+exit
43 23 19 31.8 _bin/cxx-opt+nopool/osh mut+alloc
48 40 8 22.1 _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 22 0 1.4 dash -
78 78 0 3.3 bash -
373 187 207 3.7 zsh -
47 38 9 85.5 bumpleak/osh mut
60 52 8 85.3 _bin/cxx-opt+bumproot/osh mut
69 53 16 86.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 77 20 73.4 osh-native mut+alloc
105 69 36 75.1 osh-native mut+alloc+free
147 135 12 51.6 osh-native mut+alloc+free+gc
154 130 24 52.1 osh-native mut+alloc+free+gc+exit
139 77 61 97.6 _bin/cxx-opt+nopool/osh mut+alloc
213 192 20 72.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.3 dash -
6 6 0 2.9 bash -
7 8 0 3.1 zsh -
6 6 0 11.3 bumpleak/osh mut
6 6 0 10.7 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 9.8 osh-native mut+alloc
8 8 0 10.1 osh-native mut+alloc+free
9 3 6 8.4 osh-native mut+alloc+free+gc
9 9 0 8.5 osh-native mut+alloc+free+gc+exit
12 12 0 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 8 4 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 10 0 1.4 dash -
30 29 0 2.9 bash -
24 12 12 3.4 zsh -
18 7 11 31.2 bumpleak/osh mut
26 22 4 33.0 _bin/cxx-opt+bumproot/osh mut
28 20 8 31.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.3 osh-native mut+alloc
38 30 8 26.7 osh-native mut+alloc+free
28 21 7 7.7 osh-native mut+alloc+free+gc
28 24 4 7.9 osh-native mut+alloc+free+gc+exit
54 42 11 35.9 _bin/cxx-opt+nopool/osh mut+alloc
40 36 4 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
73 65 8 3.3 bash -
169 124 44 54.4 bumpleak/osh mut
177 121 56 54.6 _bin/cxx-opt+bumproot/osh mut
193 137 56 56.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 144 68 47.1 osh-native mut+alloc
221 144 76 48.9 osh-native mut+alloc+free
181 133 48 8.8 osh-native mut+alloc+free+gc
182 127 55 8.7 osh-native mut+alloc+free+gc+exit
230 154 75 63.5 _bin/cxx-opt+nopool/osh mut+alloc
208 148 60 10.2 _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 10 0 3.4 dash -
20 17 3 4.3 bash -
17 9 9 3.4 zsh -
20 9 11 12.2 bumpleak/osh mut
19 15 4 12.0 _bin/cxx-opt+bumproot/osh mut
20 13 8 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 15 6 11.0 osh-native mut+alloc
22 14 9 11.1 osh-native mut+alloc+free
22 20 3 8.7 osh-native mut+alloc+free+gc
23 18 5 8.9 osh-native mut+alloc+free+gc+exit
24 17 8 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 17 8 9.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc