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 10 12.0 17.8 476,684 1,282 6 408,754 5 204,377 osh-native
parse.configure-coreutils 175 28 86 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 31 0 2 2.6 7.9 584,140 31,810 12 50,000 0 2,825 osh-native
ex.bashcomp-parse-help 181 0 4 10.6 8.7 995,217 27,376 21 50,000 0 3,820 osh-native
ex.abuild-print-help 23 1 2 2.8 8.8 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 -
24 24 0 3.1 bash -
106 53 59 3.4 zsh -
16 12 4 28.7 bumpleak/osh mut
20 20 0 28.1 _bin/cxx-opt+bumproot/osh mut
23 22 0 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 8 25.0 osh-native mut+alloc
32 24 8 25.4 osh-native mut+alloc+free
36 28 8 17.8 osh-native mut+alloc+free+gc
37 22 15 18.0 osh-native mut+alloc+free+gc+exit
43 27 16 32.6 _bin/cxx-opt+nopool/osh mut+alloc
49 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 17 4 1.6 dash -
77 77 0 3.1 bash -
376 214 184 3.7 zsh -
50 41 8 85.0 bumpleak/osh mut
59 47 12 85.7 _bin/cxx-opt+bumproot/osh mut
70 45 25 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 44 53 73.4 osh-native mut+alloc
107 70 37 75.4 osh-native mut+alloc+free
175 159 16 51.6 osh-native mut+alloc+free+gc
182 158 24 52.1 osh-native mut+alloc+free+gc+exit
137 101 36 98.2 _bin/cxx-opt+nopool/osh mut+alloc
210 166 44 72.4 _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 0 2 1.3 dash -
6 3 3 3.0 bash -
8 0 7 3.3 zsh -
6 6 0 10.6 bumpleak/osh mut
7 7 0 12.5 _bin/cxx-opt+bumproot/osh mut
7 3 3 11.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 9.8 osh-native mut+alloc
9 9 0 10.0 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
9 3 6 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 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.6 dash -
29 29 0 3.0 bash -
24 24 0 3.4 zsh -
20 16 4 32.5 bumpleak/osh mut
26 17 8 32.1 _bin/cxx-opt+bumproot/osh mut
28 28 0 32.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 32 4 26.3 osh-native mut+alloc
38 30 7 26.6 osh-native mut+alloc+free
31 23 8 7.9 osh-native mut+alloc+free+gc
29 21 7 7.9 osh-native mut+alloc+free+gc+exit
54 37 16 36.3 _bin/cxx-opt+nopool/osh mut+alloc
37 33 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
76 76 0 3.1 bash -
168 112 56 53.9 bumpleak/osh mut
180 140 40 55.4 _bin/cxx-opt+bumproot/osh mut
193 129 64 55.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
209 148 60 47.1 osh-native mut+alloc
220 176 44 48.9 osh-native mut+alloc+free
181 105 76 8.7 osh-native mut+alloc+free+gc
180 116 64 8.5 osh-native mut+alloc+free+gc+exit
229 153 76 64.0 _bin/cxx-opt+nopool/osh mut+alloc
207 151 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 9 2 3.4 dash -
20 13 7 4.5 bash -
18 9 10 3.5 zsh -
20 14 6 12.6 bumpleak/osh mut
21 8 14 13.3 _bin/cxx-opt+bumproot/osh mut
21 19 3 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 11 10.9 osh-native mut+alloc
22 16 7 10.9 osh-native mut+alloc+free
23 15 9 8.8 osh-native mut+alloc+free+gc
23 16 8 8.9 osh-native mut+alloc+free+gc+exit
25 15 11 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 18 7 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc