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 9 12.0 17.8 476,691 1,282 6 408,764 5 204,382 osh-native
parse.configure-coreutils 156 26 68 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.4 101,882 180 2 75,106 1 37,553 osh-native
ex.compute-fib 29 0 1 2.6 7.9 584,147 31,810 12 50,000 0 2,829 osh-native
ex.bashcomp-parse-help 183 0 3 10.6 8.8 995,224 27,376 21 50,000 0 3,825 osh-native
ex.abuild-print-help 23 1 2 2.8 8.8 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 -
23 23 0 2.9 bash -
106 56 57 3.3 zsh -
17 16 0 29.5 bumpleak/osh mut
20 20 0 28.6 _bin/cxx-opt+bumproot/osh mut
23 19 4 30.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 22 7 25.0 osh-native mut+alloc
32 24 8 25.6 osh-native mut+alloc+free
36 32 4 17.8 osh-native mut+alloc+free+gc
37 29 8 18.1 osh-native mut+alloc+free+gc+exit
44 28 16 33.2 _bin/cxx-opt+nopool/osh mut+alloc
49 37 11 21.8 _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.6 dash -
77 77 0 3.3 bash -
380 217 184 3.5 zsh -
49 41 8 84.8 bumpleak/osh mut
59 47 12 85.9 _bin/cxx-opt+bumproot/osh mut
71 63 8 85.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 63 35 73.3 osh-native mut+alloc
106 59 47 75.3 osh-native mut+alloc+free
156 116 40 51.4 osh-native mut+alloc+free+gc
159 131 28 50.4 osh-native mut+alloc+free+gc+exit
148 108 40 98.3 _bin/cxx-opt+nopool/osh mut+alloc
241 208 32 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 4 4 3.4 zsh -
6 0 6 11.4 bumpleak/osh mut
9 9 0 11.4 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 3 6 10.0 osh-native mut+alloc
10 10 0 10.0 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
9 5 5 8.4 osh-native mut+alloc+free+gc+exit
12 4 8 11.3 _bin/cxx-opt+nopool/osh mut+alloc
11 11 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
13 13 0 1.4 dash -
30 26 4 2.8 bash -
24 20 4 3.1 zsh -
19 8 11 32.8 bumpleak/osh mut
37 24 12 32.5 _bin/cxx-opt+bumproot/osh mut
31 19 12 32.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
38 22 15 26.3 osh-native mut+alloc
39 35 4 26.6 osh-native mut+alloc+free
29 25 4 7.9 osh-native mut+alloc+free+gc
29 28 0 7.9 osh-native mut+alloc+free+gc+exit
54 29 25 36.1 _bin/cxx-opt+nopool/osh mut+alloc
38 34 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
74 66 8 3.3 bash -
168 111 56 55.1 bumpleak/osh mut
179 123 56 55.2 _bin/cxx-opt+bumproot/osh mut
192 136 56 56.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 169 43 47.0 osh-native mut+alloc
219 155 64 48.9 osh-native mut+alloc+free
183 150 32 8.8 osh-native mut+alloc+free+gc
182 126 55 8.7 osh-native mut+alloc+free+gc+exit
234 143 91 62.5 _bin/cxx-opt+nopool/osh mut+alloc
209 165 44 10.0 _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 5 6 3.5 dash -
20 15 5 4.3 bash -
18 13 6 3.5 zsh -
18 18 0 13.0 bumpleak/osh mut
20 18 2 11.8 _bin/cxx-opt+bumproot/osh mut
20 21 0 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 11 12 11.0 osh-native mut+alloc
24 21 3 11.0 osh-native mut+alloc+free
23 15 8 8.8 osh-native mut+alloc+free+gc
23 24 0 8.9 osh-native mut+alloc+free+gc+exit
25 11 15 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 15 11 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc