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,679 1,282 6 408,748 5 204,374 osh-native
parse.configure-coreutils 156 25 66 46.1 51.6 1,653,267 4,764 12 1,069,114 6 798,638 osh-native
parse.abuild 9 1 1 2.6 8.4 101,870 180 2 75,090 1 37,545 osh-native
ex.compute-fib 28 0 2 2.6 7.7 584,135 31,810 12 50,000 0 2,822 osh-native
ex.bashcomp-parse-help 181 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.7 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 -
25 25 0 3.1 bash -
104 68 44 3.3 zsh -
17 8 8 29.8 bumpleak/osh mut
20 16 4 28.4 _bin/cxx-opt+bumproot/osh mut
23 19 4 30.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 9 21 25.2 osh-native mut+alloc
32 8 24 25.6 osh-native mut+alloc+free
36 32 4 17.8 osh-native mut+alloc+free+gc
37 24 12 17.8 osh-native mut+alloc+free+gc+exit
43 27 16 32.4 _bin/cxx-opt+nopool/osh mut+alloc
48 36 12 22.0 _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 22 0 1.4 dash -
78 74 4 3.1 bash -
377 222 178 3.5 zsh -
50 42 8 85.9 bumpleak/osh mut
61 48 12 85.1 _bin/cxx-opt+bumproot/osh mut
71 51 20 86.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 69 28 73.4 osh-native mut+alloc
107 75 31 75.3 osh-native mut+alloc+free
156 136 20 51.6 osh-native mut+alloc+free+gc
158 131 28 52.1 osh-native mut+alloc+free+gc+exit
140 92 48 98.7 _bin/cxx-opt+nopool/osh mut+alloc
210 177 32 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 2 0 1.4 dash -
6 3 3 3.0 bash -
8 8 0 3.3 zsh -
6 0 6 11.9 bumpleak/osh mut
7 7 0 10.6 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 9.8 osh-native mut+alloc
9 0 9 9.8 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
10 6 3 8.4 osh-native mut+alloc+free+gc+exit
12 0 12 11.4 _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 10 0 1.4 dash -
29 28 0 2.9 bash -
24 23 0 3.3 zsh -
19 15 4 31.8 bumpleak/osh mut
26 17 9 32.9 _bin/cxx-opt+bumproot/osh mut
28 24 4 33.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 28 8 26.3 osh-native mut+alloc
38 30 8 26.6 osh-native mut+alloc+free
28 28 0 7.7 osh-native mut+alloc+free+gc
28 28 0 7.9 osh-native mut+alloc+free+gc+exit
55 47 8 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 29 8 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
73 73 0 3.0 bash -
168 96 72 54.3 bumpleak/osh mut
177 121 56 56.3 _bin/cxx-opt+bumproot/osh mut
193 137 56 56.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 123 87 46.9 osh-native mut+alloc
218 142 75 48.9 osh-native mut+alloc+free
181 125 56 8.8 osh-native mut+alloc+free+gc
181 132 48 8.5 osh-native mut+alloc+free+gc+exit
229 137 92 63.7 _bin/cxx-opt+nopool/osh mut+alloc
208 143 64 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 16 4 4.5 bash -
18 11 8 3.5 zsh -
20 7 13 12.6 bumpleak/osh mut
20 13 7 13.5 _bin/cxx-opt+bumproot/osh mut
20 14 7 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 12 10 11.0 osh-native mut+alloc
22 10 13 10.6 osh-native mut+alloc+free
23 11 12 8.7 osh-native mut+alloc+free+gc
23 17 7 8.8 osh-native mut+alloc+free+gc+exit
25 17 8 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 15 10 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc