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 18.1 476,679 1,282 6 408,748 5 204,374 osh-native
parse.configure-coreutils 153 26 66 46.1 51.4 1,653,267 4,764 12 1,069,114 6 798,638 osh-native
parse.abuild 9 1 1 2.6 8.5 101,870 180 2 75,090 1 37,545 osh-native
ex.compute-fib 28 0 2 2.6 8.0 584,135 31,810 12 50,000 0 2,822 osh-native
ex.bashcomp-parse-help 182 0 4 10.6 8.8 995,212 27,376 21 50,000 0 3,817 osh-native
ex.abuild-print-help 23 1 2 2.8 8.9 116,279 478 3 85,326 1 42,663 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 3.1 bash -
104 47 63 3.3 zsh -
17 12 4 29.4 bumpleak/osh mut
20 20 0 29.7 _bin/cxx-opt+bumproot/osh mut
23 18 4 28.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 11 18 25.0 osh-native mut+alloc
31 23 8 25.6 osh-native mut+alloc+free
37 25 12 18.1 osh-native mut+alloc+free+gc
37 26 11 17.8 osh-native mut+alloc+free+gc+exit
42 25 17 32.1 _bin/cxx-opt+nopool/osh mut+alloc
48 43 4 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.1 bash -
382 209 195 3.5 zsh -
50 50 0 84.6 bumpleak/osh mut
60 44 16 86.0 _bin/cxx-opt+bumproot/osh mut
73 60 12 86.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 55 43 73.4 osh-native mut+alloc
105 69 36 75.3 osh-native mut+alloc+free
153 125 28 51.4 osh-native mut+alloc+free+gc
160 132 28 52.2 osh-native mut+alloc+free+gc+exit
138 109 28 99.5 _bin/cxx-opt+nopool/osh mut+alloc
219 207 12 72.6 _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 0 2 1.4 dash -
6 6 0 3.0 bash -
8 0 7 3.1 zsh -
6 6 0 10.6 bumpleak/osh mut
7 3 3 11.4 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.0 osh-native mut+alloc
9 9 0 10.2 osh-native mut+alloc+free
9 0 9 8.5 osh-native mut+alloc+free+gc
9 9 0 8.4 osh-native mut+alloc+free+gc+exit
11 4 8 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 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
11 7 4 1.6 dash -
30 29 0 3.0 bash -
24 20 4 3.1 zsh -
19 18 0 32.5 bumpleak/osh mut
26 22 4 32.8 _bin/cxx-opt+bumproot/osh mut
28 20 8 33.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 24 12 26.3 osh-native mut+alloc
39 30 9 26.7 osh-native mut+alloc+free
28 20 8 8.0 osh-native mut+alloc+free+gc
28 24 4 7.9 osh-native mut+alloc+free+gc+exit
53 38 15 36.0 _bin/cxx-opt+nopool/osh mut+alloc
38 34 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
72 68 4 3.1 bash -
167 111 56 54.5 bumpleak/osh mut
179 126 53 56.1 _bin/cxx-opt+bumproot/osh mut
193 112 80 55.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 128 84 47.1 osh-native mut+alloc
220 158 61 48.9 osh-native mut+alloc+free
182 138 43 8.8 osh-native mut+alloc+free+gc
182 129 52 8.8 osh-native mut+alloc+free+gc+exit
229 157 72 62.8 _bin/cxx-opt+nopool/osh mut+alloc
207 167 40 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 7 3 3.4 dash -
20 19 2 4.5 bash -
18 10 9 3.4 zsh -
19 18 1 11.1 bumpleak/osh mut
20 17 3 13.7 _bin/cxx-opt+bumproot/osh mut
20 18 3 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 13 9 10.7 osh-native mut+alloc
23 17 7 11.1 osh-native mut+alloc+free
23 12 12 8.9 osh-native mut+alloc+free+gc
25 20 5 8.8 osh-native mut+alloc+free+gc+exit
25 13 13 12.6 _bin/cxx-opt+nopool/osh mut+alloc
26 24 2 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc