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,691 1,282 6 408,764 5 204,382 osh-native
parse.configure-coreutils 152 24 64 46.1 51.4 1,653,279 4,764 12 1,069,130 6 798,646 osh-native
parse.abuild 9 1 1 2.6 8.3 101,882 180 2 75,106 1 37,553 osh-native
ex.compute-fib 28 0 2 2.6 7.9 584,147 31,810 12 50,000 0 2,829 osh-native
ex.bashcomp-parse-help 180 0 3 10.6 8.7 995,224 27,376 21 50,000 0 3,825 osh-native
ex.abuild-print-help 22 1 2 2.8 8.9 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
6 3 3 1.6 dash -
24 23 0 3.0 bash -
104 56 55 3.4 zsh -
17 12 4 29.5 bumpleak/osh mut
19 15 4 30.1 _bin/cxx-opt+bumproot/osh mut
23 19 4 29.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 8 24.9 osh-native mut+alloc
31 22 9 25.6 osh-native mut+alloc+free
35 23 12 18.0 osh-native mut+alloc+free+gc
36 28 8 18.0 osh-native mut+alloc+free+gc+exit
44 32 12 32.1 _bin/cxx-opt+nopool/osh mut+alloc
47 39 8 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 73 4 3.3 bash -
377 224 174 3.7 zsh -
48 41 7 84.8 bumpleak/osh mut
60 48 12 84.4 _bin/cxx-opt+bumproot/osh mut
69 52 16 86.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 69 29 73.4 osh-native mut+alloc
106 75 31 75.3 osh-native mut+alloc+free
152 128 24 51.4 osh-native mut+alloc+free+gc
149 120 28 50.6 osh-native mut+alloc+free+gc+exit
138 97 41 99.0 _bin/cxx-opt+nopool/osh mut+alloc
207 183 24 72.9 _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.4 dash -
6 3 3 3.0 bash -
8 0 7 3.4 zsh -
6 3 3 11.8 bumpleak/osh mut
7 3 3 11.3 _bin/cxx-opt+bumproot/osh mut
7 7 0 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.1 osh-native mut+alloc
8 8 0 10.0 osh-native mut+alloc+free
9 3 6 8.3 osh-native mut+alloc+free+gc
9 9 0 8.4 osh-native mut+alloc+free+gc+exit
11 11 0 11.3 _bin/cxx-opt+nopool/osh mut+alloc
11 0 11 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 10 0 1.4 dash -
33 32 0 2.9 bash -
25 14 11 3.4 zsh -
19 11 7 31.6 bumpleak/osh mut
25 25 0 31.9 _bin/cxx-opt+bumproot/osh mut
28 18 11 32.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 24 12 26.5 osh-native mut+alloc
39 30 9 26.7 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
28 28 0 7.9 osh-native mut+alloc+free+gc+exit
55 39 16 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 33 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
73 65 8 3.1 bash -
169 88 80 54.1 bumpleak/osh mut
178 117 60 55.6 _bin/cxx-opt+bumproot/osh mut
194 123 71 56.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 143 68 47.0 osh-native mut+alloc
224 176 48 48.8 osh-native mut+alloc+free
180 140 40 8.7 osh-native mut+alloc+free+gc
182 121 60 8.7 osh-native mut+alloc+free+gc+exit
231 127 103 63.4 _bin/cxx-opt+nopool/osh mut+alloc
209 152 56 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 9 1 3.4 dash -
20 18 2 4.3 bash -
18 16 3 3.4 zsh -
20 12 8 12.4 bumpleak/osh mut
19 14 6 12.3 _bin/cxx-opt+bumproot/osh mut
20 20 0 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 21 2 11.0 osh-native mut+alloc
25 14 12 10.9 osh-native mut+alloc+free
22 15 8 8.9 osh-native mut+alloc+free+gc
24 15 9 9.0 osh-native mut+alloc+free+gc+exit
25 12 14 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 24 2 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc