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 38 5 11 12.0 17.7 476,691 1,282 6 408,764 5 204,382 osh-native
parse.configure-coreutils 177 28 86 46.1 51.6 1,653,279 4,764 12 1,069,130 6 798,646 osh-native
parse.abuild 9 1 1 2.6 8.4 101,882 180 2 75,106 1 37,553 osh-native
ex.compute-fib 28 0 1 2.6 7.9 584,147 31,810 12 50,000 0 2,829 osh-native
ex.bashcomp-parse-help 183 0 4 10.6 8.7 995,224 27,376 21 50,000 0 3,825 osh-native
ex.abuild-print-help 23 1 2 2.8 9.0 116,291 478 3 85,342 1 42,671 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 -
24 19 4 3.0 bash -
104 65 45 3.4 zsh -
17 13 4 27.9 bumpleak/osh mut
19 12 8 29.2 _bin/cxx-opt+bumproot/osh mut
23 19 4 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 19 11 24.9 osh-native mut+alloc
33 24 8 25.6 osh-native mut+alloc+free
38 34 4 17.7 osh-native mut+alloc+free+gc
38 23 15 18.0 osh-native mut+alloc+free+gc+exit
44 32 12 32.4 _bin/cxx-opt+nopool/osh mut+alloc
50 37 12 22.3 _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 73 4 3.1 bash -
377 204 196 3.4 zsh -
49 41 8 84.3 bumpleak/osh mut
60 44 16 85.3 _bin/cxx-opt+bumproot/osh mut
71 63 8 84.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 49 49 73.2 osh-native mut+alloc
106 69 37 75.1 osh-native mut+alloc+free
177 156 20 51.6 osh-native mut+alloc+free+gc
179 151 28 50.4 osh-native mut+alloc+free+gc+exit
139 90 49 97.6 _bin/cxx-opt+nopool/osh mut+alloc
227 191 36 72.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 3.0 bash -
8 8 0 3.4 zsh -
6 6 0 10.4 bumpleak/osh mut
7 3 3 10.6 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 9.8 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 3 6 8.5 osh-native mut+alloc+free+gc+exit
12 4 8 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 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
10 7 3 1.4 dash -
29 25 4 2.9 bash -
24 20 4 3.1 zsh -
19 15 4 31.3 bumpleak/osh mut
26 21 4 33.2 _bin/cxx-opt+bumproot/osh mut
28 20 8 32.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 36 0 26.2 osh-native mut+alloc
38 27 11 26.6 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
29 28 0 7.9 osh-native mut+alloc+free+gc+exit
55 42 13 36.0 _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
74 73 0 3.1 bash -
167 119 48 54.3 bumpleak/osh mut
178 121 57 54.7 _bin/cxx-opt+bumproot/osh mut
196 140 56 56.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 135 76 47.0 osh-native mut+alloc
219 147 72 48.8 osh-native mut+alloc+free
183 119 63 8.7 osh-native mut+alloc+free+gc
182 114 67 8.7 osh-native mut+alloc+free+gc+exit
232 164 68 64.4 _bin/cxx-opt+nopool/osh mut+alloc
208 152 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 8 2 3.5 dash -
20 10 11 4.5 bash -
18 12 7 3.5 zsh -
20 12 8 11.7 bumpleak/osh mut
21 12 9 12.6 _bin/cxx-opt+bumproot/osh mut
20 18 3 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 13 9 10.9 osh-native mut+alloc
23 14 9 10.7 osh-native mut+alloc+free
23 17 6 9.0 osh-native mut+alloc+free+gc
23 15 9 8.8 osh-native mut+alloc+free+gc+exit
25 6 19 12.5 _bin/cxx-opt+nopool/osh mut+alloc
26 20 6 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc