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 4 10 12.0 18.0 476,698 1,282 6 408,770 5 204,385 osh-native
parse.configure-coreutils 183 32 84 44.6 49.9 1,653,286 4,764 12 1,030,654 6 769,411 osh-native
parse.abuild 11 1 2 2.6 8.5 101,889 180 2 75,112 1 37,556 osh-native
ex.compute-fib 33 0 2 2.4 8.0 584,154 31,810 12 50,000 0 2,832 osh-native
ex.bashcomp-parse-help 207 0 4 10.3 8.8 995,231 27,376 21 50,000 0 3,823 osh-native
ex.abuild-print-help 27 1 2 2.8 9.0 116,298 478 3 85,348 1 42,674 osh-native

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 7 0 1.6 dash -
27 27 0 2.9 bash -
130 74 63 3.4 zsh -
19 15 4 28.6 bumpleak/osh mut
22 18 4 29.3 _bin/cxx-opt+bumproot/osh mut
26 17 9 30.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
34 21 13 25.2 osh-native mut+alloc
36 24 12 25.4 osh-native mut+alloc+free
40 28 12 18.0 osh-native mut+alloc+free+gc
40 32 8 18.0 osh-native mut+alloc+free+gc+exit
50 27 23 33.3 _bin/cxx-opt+nopool/osh mut+alloc
53 45 8 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
24 24 0 1.6 dash -
91 87 4 3.3 bash -
459 291 191 3.4 zsh -
56 48 8 85.0 bumpleak/osh mut
67 63 4 85.3 _bin/cxx-opt+bumproot/osh mut
87 79 8 85.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
110 69 41 73.4 osh-native mut+alloc
122 86 35 75.1 osh-native mut+alloc+free
183 155 28 49.9 osh-native mut+alloc+free+gc
194 162 32 50.7 osh-native mut+alloc+free+gc+exit
163 107 56 98.8 _bin/cxx-opt+nopool/osh mut+alloc
246 213 32 66.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
3 0 3 1.3 dash -
7 3 3 3.0 bash -
9 5 4 3.3 zsh -
7 7 0 11.0 bumpleak/osh mut
8 8 0 12.8 _bin/cxx-opt+bumproot/osh mut
9 9 0 11.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
10 0 10 10.0 osh-native mut+alloc
11 7 3 10.0 osh-native mut+alloc+free
11 11 0 8.5 osh-native mut+alloc+free+gc
11 7 4 8.5 osh-native mut+alloc+free+gc+exit
14 10 3 11.3 _bin/cxx-opt+nopool/osh mut+alloc
13 13 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
12 12 0 1.4 dash -
32 31 0 3.0 bash -
27 23 4 3.4 zsh -
22 7 15 31.7 bumpleak/osh mut
30 30 0 33.2 _bin/cxx-opt+bumproot/osh mut
33 29 4 32.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
41 25 16 26.2 osh-native mut+alloc
43 35 8 26.3 osh-native mut+alloc+free
33 32 0 8.0 osh-native mut+alloc+free+gc
33 28 4 7.9 osh-native mut+alloc+free+gc+exit
61 37 24 36.0 _bin/cxx-opt+nopool/osh mut+alloc
44 39 4 9.3 _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
83 70 12 3.3 bash -
192 116 76 55.6 bumpleak/osh mut
206 137 68 54.5 _bin/cxx-opt+bumproot/osh mut
220 152 68 55.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
238 115 123 47.1 osh-native mut+alloc
246 169 76 48.7 osh-native mut+alloc+free
207 158 48 8.8 osh-native mut+alloc+free+gc
205 145 60 8.8 osh-native mut+alloc+free+gc+exit
267 159 107 63.4 _bin/cxx-opt+nopool/osh mut+alloc
234 175 60 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
11 10 2 3.4 dash -
24 20 5 4.3 bash -
21 11 11 3.4 zsh -
24 21 3 12.4 bumpleak/osh mut
23 10 14 13.6 _bin/cxx-opt+bumproot/osh mut
25 18 8 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 14 11 10.7 osh-native mut+alloc
27 11 16 11.1 osh-native mut+alloc+free
27 16 11 9.0 osh-native mut+alloc+free+gc
27 15 12 8.9 osh-native mut+alloc+free+gc+exit
30 19 11 12.7 _bin/cxx-opt+nopool/osh mut+alloc
30 27 4 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc