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 40 5 13 12.0 18.1 476,684 1,282 6 408,754 5 204,377 osh-native
parse.configure-coreutils 201 34 107 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.3 101,875 180 2 75,096 1 37,548 osh-native
ex.compute-fib 29 0 2 2.6 8.0 584,140 31,810 12 50,000 0 2,825 osh-native
ex.bashcomp-parse-help 190 0 5 10.6 8.8 995,217 27,376 21 50,000 0 3,820 osh-native
ex.abuild-print-help 25 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 -
24 24 0 2.8 bash -
110 64 52 3.4 zsh -
17 13 4 28.0 bumpleak/osh mut
21 14 7 29.7 _bin/cxx-opt+bumproot/osh mut
24 20 4 30.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 23 8 25.0 osh-native mut+alloc
33 25 8 25.4 osh-native mut+alloc+free
40 28 12 18.1 osh-native mut+alloc+free+gc
43 35 8 18.0 osh-native mut+alloc+free+gc+exit
44 32 12 32.7 _bin/cxx-opt+nopool/osh mut+alloc
59 47 12 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 22 0 1.4 dash -
79 78 0 3.1 bash -
400 226 194 3.5 zsh -
50 46 4 84.0 bumpleak/osh mut
63 54 8 85.0 _bin/cxx-opt+bumproot/osh mut
71 67 4 85.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
101 63 38 73.4 osh-native mut+alloc
112 91 20 75.1 osh-native mut+alloc+free
201 173 28 51.6 osh-native mut+alloc+free+gc
207 179 28 52.2 osh-native mut+alloc+free+gc+exit
140 92 48 99.4 _bin/cxx-opt+nopool/osh mut+alloc
247 202 44 72.6 _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 -
7 7 0 3.0 bash -
8 8 0 3.4 zsh -
7 7 0 10.6 bumpleak/osh mut
7 7 0 12.1 _bin/cxx-opt+bumproot/osh mut
9 3 6 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.0 osh-native mut+alloc
9 6 3 10.0 osh-native mut+alloc+free
9 9 0 8.3 osh-native mut+alloc+free+gc
10 5 5 8.4 osh-native mut+alloc+free+gc+exit
13 3 9 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 6 6 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
11 7 3 1.4 dash -
29 29 0 2.9 bash -
24 24 0 3.3 zsh -
21 16 4 31.5 bumpleak/osh mut
27 27 0 33.5 _bin/cxx-opt+bumproot/osh mut
28 24 4 32.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
38 34 4 26.5 osh-native mut+alloc
40 24 16 26.6 osh-native mut+alloc+free
29 28 0 8.0 osh-native mut+alloc+free+gc
28 28 0 8.0 osh-native mut+alloc+free+gc+exit
56 28 28 35.8 _bin/cxx-opt+nopool/osh mut+alloc
38 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.1 bash -
168 132 36 54.1 bumpleak/osh mut
183 119 63 55.8 _bin/cxx-opt+bumproot/osh mut
195 146 49 56.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
221 166 55 47.1 osh-native mut+alloc
236 128 108 48.8 osh-native mut+alloc+free
190 126 63 8.8 osh-native mut+alloc+free+gc
186 141 44 8.5 osh-native mut+alloc+free+gc+exit
240 152 88 63.7 _bin/cxx-opt+nopool/osh mut+alloc
213 144 68 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 1 3.4 dash -
21 13 9 4.3 bash -
19 6 14 3.4 zsh -
20 11 10 11.4 bumpleak/osh mut
24 16 9 13.1 _bin/cxx-opt+bumproot/osh mut
23 17 6 12.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
32 20 13 10.7 osh-native mut+alloc
26 21 5 11.0 osh-native mut+alloc+free
25 19 7 8.7 osh-native mut+alloc+free+gc
27 19 8 8.9 osh-native mut+alloc+free+gc+exit
27 18 9 12.4 _bin/cxx-opt+nopool/osh mut+alloc
27 26 2 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc