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 37 4 10 12.0 17.8 476,710 1,282 6 408,796 5 204,398 osh-native
parse.configure-coreutils 156 26 69 44.6 49.9 1,653,298 4,764 12 1,030,680 6 769,424 osh-native
parse.abuild 9 1 1 2.6 8.5 101,901 180 2 75,138 1 37,569 osh-native
ex.compute-fib 28 0 2 2.4 7.9 584,166 31,810 12 50,000 0 2,844 osh-native
ex.bashcomp-parse-help 181 0 4 10.3 8.8 995,243 27,376 21 50,000 0 3,826 osh-native
ex.abuild-print-help 22 1 2 2.8 9.0 116,310 478 3 85,374 1 42,687 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 19 4 2.9 bash -
104 57 54 3.4 zsh -
16 12 4 28.3 bumpleak/osh mut
19 11 8 30.0 _bin/cxx-opt+bumproot/osh mut
23 19 4 28.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 22 7 24.9 osh-native mut+alloc
32 28 4 25.7 osh-native mut+alloc+free
37 28 8 17.8 osh-native mut+alloc+free+gc
37 26 11 18.0 osh-native mut+alloc+free+gc+exit
43 31 12 32.4 _bin/cxx-opt+nopool/osh mut+alloc
49 34 15 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 21 0 1.4 dash -
78 78 0 3.3 bash -
375 225 171 3.5 zsh -
48 40 8 84.4 bumpleak/osh mut
60 60 0 86.6 _bin/cxx-opt+bumproot/osh mut
71 71 0 86.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 59 39 73.5 osh-native mut+alloc
105 66 39 75.3 osh-native mut+alloc+free
156 136 20 49.9 osh-native mut+alloc+free+gc
155 135 20 50.6 osh-native mut+alloc+free+gc+exit
140 108 32 99.4 _bin/cxx-opt+nopool/osh mut+alloc
212 164 48 68.5 _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 3 3 3.0 bash -
8 0 7 3.3 zsh -
6 0 6 10.9 bumpleak/osh mut
7 3 3 11.4 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 3 6 10.0 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
9 3 6 8.5 osh-native mut+alloc+free+gc
10 5 5 8.7 osh-native mut+alloc+free+gc+exit
11 8 4 11.5 _bin/cxx-opt+nopool/osh mut+alloc
11 4 8 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 28 0 3.0 bash -
24 20 4 3.3 zsh -
19 11 8 31.7 bumpleak/osh mut
26 21 4 32.4 _bin/cxx-opt+bumproot/osh mut
28 24 4 33.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 16 20 26.2 osh-native mut+alloc
38 29 8 26.5 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
55 47 8 35.8 _bin/cxx-opt+nopool/osh mut+alloc
38 38 0 9.5 _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 72 0 3.1 bash -
168 104 64 54.7 bumpleak/osh mut
180 120 60 54.4 _bin/cxx-opt+bumproot/osh mut
193 125 68 57.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 151 60 47.0 osh-native mut+alloc
220 156 64 48.7 osh-native mut+alloc+free
181 134 47 8.8 osh-native mut+alloc+free+gc
183 135 48 8.8 osh-native mut+alloc+free+gc+exit
232 148 84 63.5 _bin/cxx-opt+nopool/osh mut+alloc
207 170 37 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 8 2 3.5 dash -
20 18 2 4.5 bash -
18 5 13 3.4 zsh -
18 12 7 11.9 bumpleak/osh mut
20 12 8 13.7 _bin/cxx-opt+bumproot/osh mut
21 10 12 13.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 10 12 10.9 osh-native mut+alloc
22 13 10 11.1 osh-native mut+alloc+free
22 13 10 9.0 osh-native mut+alloc+free+gc
23 13 10 8.9 osh-native mut+alloc+free+gc+exit
25 15 10 12.6 _bin/cxx-opt+nopool/osh mut+alloc
25 15 10 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc