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 33 3 10 12.0 17.7 476,689 1,282 6 408,626 5 204,313 osh-native
parse.configure-coreutils 152 23 76 41.0 45.5 1,653,277 4,764 12 1,591,678 7 795,839 osh-native
parse.abuild 9 1 2 2.4 7.9 101,880 180 3 87,194 1 43,597 osh-native
ex.compute-fib 23 0 1 2.6 7.6 584,145 31,810 12 50,000 0 2,764 osh-native
ex.bashcomp-parse-help 175 0 3 10.6 8.1 995,222 27,376 21 50,000 0 3,751 osh-native
ex.abuild-print-help 22 1 2 2.8 8.7 116,289 478 3 85,210 1 42,605 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 -
24 23 0 3.0 bash -
105 57 54 3.4 zsh -
16 12 4 28.9 bumpleak/osh mut
17 13 4 28.4 _bin/cxx-opt+bumproot/osh mut
20 16 4 28.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
27 18 9 24.6 osh-native mut+alloc
29 17 12 25.3 osh-native mut+alloc+free
33 33 0 17.7 osh-native mut+alloc+free+gc
33 25 8 17.7 osh-native mut+alloc+free+gc+exit
41 20 20 32.4 _bin/cxx-opt+nopool/osh mut+alloc
49 37 12 21.7 _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.6 dash -
77 77 0 3.3 bash -
379 222 178 3.5 zsh -
48 44 4 84.5 bumpleak/osh mut
51 42 8 85.4 _bin/cxx-opt+bumproot/osh mut
62 49 12 84.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
88 48 40 73.2 osh-native mut+alloc
97 60 36 75.0 osh-native mut+alloc+free
152 136 16 45.5 osh-native mut+alloc+free+gc
155 143 12 45.7 osh-native mut+alloc+free+gc+exit
130 81 49 98.1 _bin/cxx-opt+nopool/osh mut+alloc
228 208 20 61.9 _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 8 3.1 zsh -
6 3 3 10.6 bumpleak/osh mut
6 6 0 10.7 _bin/cxx-opt+bumproot/osh mut
6 0 6 10.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 9.7 osh-native mut+alloc
8 0 8 9.8 osh-native mut+alloc+free
9 9 0 7.9 osh-native mut+alloc+free+gc
9 9 0 8.1 osh-native mut+alloc+free+gc+exit
11 4 7 11.0 _bin/cxx-opt+nopool/osh mut+alloc
11 4 7 8.9 _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.6 dash -
29 24 4 2.9 bash -
24 20 4 3.1 zsh -
19 19 0 32.0 bumpleak/osh mut
21 10 10 32.6 _bin/cxx-opt+bumproot/osh mut
23 15 8 31.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
32 12 20 26.1 osh-native mut+alloc
33 26 7 26.5 osh-native mut+alloc+free
23 22 0 7.6 osh-native mut+alloc+free+gc
23 23 0 7.5 osh-native mut+alloc+free+gc+exit
49 20 28 35.8 _bin/cxx-opt+nopool/osh mut+alloc
32 28 4 9.0 _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
75 67 8 3.1 bash -
169 128 40 55.9 bumpleak/osh mut
177 109 68 55.6 _bin/cxx-opt+bumproot/osh mut
188 140 48 56.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
205 140 64 46.8 osh-native mut+alloc
213 132 80 48.5 osh-native mut+alloc+free
175 111 63 8.1 osh-native mut+alloc+free+gc
176 104 72 8.3 osh-native mut+alloc+free+gc+exit
226 149 77 63.1 _bin/cxx-opt+nopool/osh mut+alloc
204 160 44 9.8 _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.5 dash -
20 12 9 4.3 bash -
17 10 8 3.4 zsh -
18 13 6 11.5 bumpleak/osh mut
19 6 13 11.9 _bin/cxx-opt+bumproot/osh mut
19 18 2 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 15 6 10.6 osh-native mut+alloc
22 16 6 10.7 osh-native mut+alloc+free
22 15 7 8.7 osh-native mut+alloc+free+gc
22 15 8 8.5 osh-native mut+alloc+free+gc+exit
24 20 5 12.3 _bin/cxx-opt+nopool/osh mut+alloc
24 16 9 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc