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 9 12.0 17.6 476,689 1,282 6 408,626 5 204,313 osh-native
parse.configure-coreutils 155 23 78 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.4 995,222 27,376 21 50,000 0 3,751 osh-native
ex.abuild-print-help 22 1 2 2.8 8.5 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.6 dash -
23 19 4 3.1 bash -
105 64 48 3.4 zsh -
16 11 4 28.7 bumpleak/osh mut
18 17 0 28.5 _bin/cxx-opt+bumproot/osh mut
20 12 8 28.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
27 11 15 24.8 osh-native mut+alloc
28 12 16 25.3 osh-native mut+alloc+free
33 28 4 17.6 osh-native mut+alloc+free+gc
33 25 8 17.7 osh-native mut+alloc+free+gc+exit
41 32 8 32.7 _bin/cxx-opt+nopool/osh mut+alloc
46 37 8 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 -
78 78 0 3.1 bash -
376 209 188 3.5 zsh -
49 44 4 84.1 bumpleak/osh mut
50 42 8 85.6 _bin/cxx-opt+bumproot/osh mut
62 53 8 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
88 63 24 73.2 osh-native mut+alloc
96 63 32 74.9 osh-native mut+alloc+free
155 135 20 45.5 osh-native mut+alloc+free+gc
157 149 8 45.7 osh-native mut+alloc+free+gc+exit
127 99 28 99.2 _bin/cxx-opt+nopool/osh mut+alloc
222 182 40 60.7 _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 3 3 2.9 bash -
8 4 4 3.3 zsh -
6 6 0 11.8 bumpleak/osh mut
6 0 6 10.3 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 0 8 9.8 osh-native mut+alloc
8 4 4 9.6 osh-native mut+alloc+free
9 6 3 7.9 osh-native mut+alloc+free+gc
9 9 0 8.0 osh-native mut+alloc+free+gc+exit
11 7 4 11.1 _bin/cxx-opt+nopool/osh mut+alloc
12 4 8 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
11 11 0 1.4 dash -
28 24 4 3.0 bash -
24 12 12 3.3 zsh -
19 15 4 30.9 bumpleak/osh mut
22 11 11 32.6 _bin/cxx-opt+bumproot/osh mut
23 19 4 31.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 27 4 26.0 osh-native mut+alloc
33 25 7 26.3 osh-native mut+alloc+free
23 23 0 7.6 osh-native mut+alloc+free+gc
23 19 4 7.5 osh-native mut+alloc+free+gc+exit
48 24 24 36.0 _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
74 66 8 3.1 bash -
169 124 44 54.7 bumpleak/osh mut
172 124 48 55.2 _bin/cxx-opt+bumproot/osh mut
188 120 68 56.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
204 112 92 46.7 osh-native mut+alloc
211 117 93 48.7 osh-native mut+alloc+free
175 143 32 8.4 osh-native mut+alloc+free+gc
175 118 57 8.3 osh-native mut+alloc+free+gc+exit
227 167 60 63.7 _bin/cxx-opt+nopool/osh mut+alloc
203 146 57 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 10 0 3.4 dash -
20 17 3 4.5 bash -
18 12 6 3.5 zsh -
18 15 3 11.3 bumpleak/osh mut
19 12 7 11.3 _bin/cxx-opt+bumproot/osh mut
21 11 10 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 12 9 10.6 osh-native mut+alloc
22 19 3 10.5 osh-native mut+alloc+free
22 11 12 8.5 osh-native mut+alloc+free+gc
22 11 12 8.5 osh-native mut+alloc+free+gc+exit
24 16 8 12.1 _bin/cxx-opt+nopool/osh mut+alloc
24 22 3 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc