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 3 9 12.0 18.0 476,636 1,282 6 408,686 5 204,343 osh-native
parse.configure-coreutils 152 26 63 46.1 51.3 1,653,224 4,764 12 1,069,052 6 798,607 osh-native
parse.abuild 9 1 1 2.6 8.5 101,827 180 2 75,028 1 37,514 osh-native
ex.compute-fib 28 0 1 3.1 7.9 584,088 31,810 12 50,000 0 2,788 osh-native
ex.bashcomp-parse-help 184 0 3 12.3 8.7 1,001,962 27,376 21 50,000 0 3,776 osh-native
ex.abuild-print-help 22 1 2 2.8 8.9 116,032 478 3 85,262 1 42,631 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.4 dash -
23 19 4 3.0 bash -
105 60 52 3.4 zsh -
16 12 4 28.7 bumpleak/osh mut
20 16 4 30.0 _bin/cxx-opt+bumproot/osh mut
22 11 11 30.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 22 7 24.9 osh-native mut+alloc
32 28 4 25.6 osh-native mut+alloc+free
36 27 8 18.0 osh-native mut+alloc+free+gc
37 33 4 17.8 osh-native mut+alloc+free+gc+exit
43 34 9 32.0 _bin/cxx-opt+nopool/osh mut+alloc
47 39 8 21.9 _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 18 4 1.6 dash -
78 73 4 3.3 bash -
385 202 203 3.4 zsh -
50 38 12 84.7 bumpleak/osh mut
62 50 12 85.2 _bin/cxx-opt+bumproot/osh mut
71 55 16 85.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 59 40 73.4 osh-native mut+alloc
108 76 32 75.2 osh-native mut+alloc+free
152 132 20 51.3 osh-native mut+alloc+free+gc
158 133 24 52.0 osh-native mut+alloc+free+gc+exit
143 94 49 98.5 _bin/cxx-opt+nopool/osh mut+alloc
210 182 28 72.2 _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 2.9 bash -
8 0 7 3.4 zsh -
6 3 3 10.7 bumpleak/osh mut
7 7 0 11.6 _bin/cxx-opt+bumproot/osh mut
9 4 4 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 10.0 osh-native mut+alloc
9 9 0 10.0 osh-native mut+alloc+free
9 4 4 8.5 osh-native mut+alloc+free+gc
9 4 4 8.4 osh-native mut+alloc+free+gc+exit
12 12 0 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 7 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
10 10 0 1.4 dash -
29 29 0 2.9 bash -
23 15 8 3.3 zsh -
19 4 16 32.8 bumpleak/osh mut
27 15 11 32.8 _bin/cxx-opt+bumproot/osh mut
29 25 4 32.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 33 4 26.6 osh-native mut+alloc
39 30 9 27.1 osh-native mut+alloc+free
28 24 4 7.9 osh-native mut+alloc+free+gc
28 24 4 7.9 osh-native mut+alloc+free+gc+exit
54 42 13 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 33 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
73 69 4 3.3 bash -
171 111 59 55.7 bumpleak/osh mut
180 147 32 57.1 _bin/cxx-opt+bumproot/osh mut
196 120 76 56.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 128 84 48.9 osh-native mut+alloc
221 145 76 50.7 osh-native mut+alloc+free
184 132 52 8.7 osh-native mut+alloc+free+gc
184 132 52 8.7 osh-native mut+alloc+free+gc+exit
234 149 85 65.5 _bin/cxx-opt+nopool/osh mut+alloc
210 157 52 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 5 6 3.5 dash -
20 13 7 4.3 bash -
18 15 4 3.5 zsh -
20 18 3 12.7 bumpleak/osh mut
20 11 9 11.9 _bin/cxx-opt+bumproot/osh mut
21 20 2 13.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 19 3 10.9 osh-native mut+alloc
22 13 9 10.7 osh-native mut+alloc+free
22 11 12 8.9 osh-native mut+alloc+free+gc
23 18 6 8.7 osh-native mut+alloc+free+gc+exit
25 15 10 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 17 8 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc