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,686 1,282 6 408,758 5 204,379 osh-native
parse.configure-coreutils 152 25 65 46.1 51.4 1,653,274 4,764 12 1,069,124 6 798,643 osh-native
parse.abuild 9 1 1 2.6 8.4 101,877 180 2 75,100 1 37,550 osh-native
ex.compute-fib 28 0 1 2.6 8.0 584,142 31,810 12 50,000 0 2,827 osh-native
ex.bashcomp-parse-help 181 0 3 10.6 8.7 995,220 27,376 21 50,000 0 3,823 osh-native
ex.abuild-print-help 23 1 2 2.8 8.9 116,293 478 3 85,338 1 42,669 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 51 60 3.4 zsh -
16 12 4 28.7 bumpleak/osh mut
20 20 0 30.2 _bin/cxx-opt+bumproot/osh mut
22 18 4 29.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 18 11 25.2 osh-native mut+alloc
31 27 4 25.6 osh-native mut+alloc+free
35 26 9 18.0 osh-native mut+alloc+free+gc
36 36 0 18.1 osh-native mut+alloc+free+gc+exit
44 20 24 32.0 _bin/cxx-opt+nopool/osh mut+alloc
49 44 4 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
21 21 0 1.6 dash -
77 77 0 3.1 bash -
376 196 200 3.5 zsh -
48 40 8 85.7 bumpleak/osh mut
61 46 15 84.6 _bin/cxx-opt+bumproot/osh mut
72 40 32 85.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 60 36 73.3 osh-native mut+alloc
105 74 31 75.3 osh-native mut+alloc+free
152 128 24 51.4 osh-native mut+alloc+free+gc
159 131 28 52.2 osh-native mut+alloc+free+gc+exit
140 96 44 97.6 _bin/cxx-opt+nopool/osh mut+alloc
221 160 60 74.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 6 0 2.9 bash -
8 0 8 3.3 zsh -
6 6 0 10.6 bumpleak/osh mut
6 6 0 12.6 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.0 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 0 12 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 11 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.4 dash -
28 28 0 2.9 bash -
24 12 12 3.4 zsh -
20 16 4 31.9 bumpleak/osh mut
25 17 8 31.8 _bin/cxx-opt+bumproot/osh mut
28 24 4 33.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 16 20 26.3 osh-native mut+alloc
38 19 19 26.7 osh-native mut+alloc+free
28 28 0 8.0 osh-native mut+alloc+free+gc
28 28 0 8.0 osh-native mut+alloc+free+gc+exit
54 37 17 35.9 _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
73 62 12 3.0 bash -
168 116 52 54.5 bumpleak/osh mut
178 137 40 55.1 _bin/cxx-opt+bumproot/osh mut
193 149 44 56.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 119 91 47.0 osh-native mut+alloc
217 133 84 48.9 osh-native mut+alloc+free
181 117 64 8.7 osh-native mut+alloc+free+gc
182 125 56 8.8 osh-native mut+alloc+free+gc+exit
230 141 89 63.8 _bin/cxx-opt+nopool/osh mut+alloc
209 154 55 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 7 3 3.4 dash -
20 17 3 4.5 bash -
18 13 5 3.5 zsh -
20 12 8 13.2 bumpleak/osh mut
22 12 11 12.8 _bin/cxx-opt+bumproot/osh mut
21 12 10 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
23 19 4 10.7 osh-native mut+alloc
24 13 12 11.1 osh-native mut+alloc+free
23 18 5 8.9 osh-native mut+alloc+free+gc
24 18 6 9.0 osh-native mut+alloc+free+gc+exit
26 10 17 12.5 _bin/cxx-opt+nopool/osh mut+alloc
27 18 9 9.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc