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 36 4 10 12.0 17.8 476,691 1,282 6 408,764 5 204,382 osh-native
parse.configure-coreutils 175 28 85 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.5 101,882 180 2 75,106 1 37,553 osh-native
ex.compute-fib 29 0 1 2.6 8.0 584,147 31,810 12 50,000 0 2,829 osh-native
ex.bashcomp-parse-help 180 0 4 10.6 8.5 995,224 27,376 21 50,000 0 3,825 osh-native
ex.abuild-print-help 23 1 2 2.8 8.7 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 6 0 1.6 dash -
24 19 4 3.1 bash -
104 57 54 3.4 zsh -
17 16 0 29.0 bumpleak/osh mut
20 19 0 29.3 _bin/cxx-opt+bumproot/osh mut
22 18 4 29.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 8 25.2 osh-native mut+alloc
32 24 8 25.6 osh-native mut+alloc+free
36 29 7 17.8 osh-native mut+alloc+free+gc
37 33 4 18.0 osh-native mut+alloc+free+gc+exit
43 34 9 31.9 _bin/cxx-opt+nopool/osh mut+alloc
51 43 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
22 17 4 1.6 dash -
77 77 0 3.1 bash -
380 204 196 3.5 zsh -
49 45 4 85.7 bumpleak/osh mut
60 44 16 84.4 _bin/cxx-opt+bumproot/osh mut
71 62 8 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 61 37 73.4 osh-native mut+alloc
107 75 32 75.1 osh-native mut+alloc+free
175 155 20 51.4 osh-native mut+alloc+free+gc
163 147 16 50.6 osh-native mut+alloc+free+gc+exit
141 108 32 98.5 _bin/cxx-opt+nopool/osh mut+alloc
235 199 36 71.8 _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 6 0 3.0 bash -
8 8 0 3.3 zsh -
6 3 3 11.9 bumpleak/osh mut
8 4 4 12.1 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 9.8 osh-native mut+alloc
9 0 9 10.0 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 5 5 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 4 8 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 10 0 1.4 dash -
29 28 0 2.9 bash -
24 24 0 3.3 zsh -
19 19 0 32.6 bumpleak/osh mut
25 21 4 31.5 _bin/cxx-opt+bumproot/osh mut
28 20 8 33.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 28 8 26.3 osh-native mut+alloc
39 31 8 26.6 osh-native mut+alloc+free
29 29 0 8.0 osh-native mut+alloc+free+gc
29 21 7 7.9 osh-native mut+alloc+free+gc+exit
54 35 19 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 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 73 0 3.0 bash -
169 117 52 53.9 bumpleak/osh mut
180 124 56 55.9 _bin/cxx-opt+bumproot/osh mut
193 102 91 55.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 131 79 46.9 osh-native mut+alloc
218 129 89 48.7 osh-native mut+alloc+free
180 152 28 8.5 osh-native mut+alloc+free+gc
179 135 44 8.5 osh-native mut+alloc+free+gc+exit
232 130 102 63.1 _bin/cxx-opt+nopool/osh mut+alloc
209 142 67 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 9 1 3.4 dash -
20 18 2 4.5 bash -
18 6 13 3.4 zsh -
19 16 3 11.4 bumpleak/osh mut
20 11 9 12.3 _bin/cxx-opt+bumproot/osh mut
22 15 8 13.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 16 6 11.0 osh-native mut+alloc
23 17 6 10.9 osh-native mut+alloc+free
23 11 12 8.7 osh-native mut+alloc+free+gc
23 22 2 8.9 osh-native mut+alloc+free+gc+exit
25 22 3 12.5 _bin/cxx-opt+nopool/osh mut+alloc
26 25 1 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc