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 32 3 9 12.0 17.6 476,689 1,282 6 408,626 5 204,313 osh-native
parse.configure-coreutils 158 24 81 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 8.0 101,880 180 3 87,194 1 43,597 osh-native
ex.compute-fib 23 0 1 2.6 7.5 584,145 31,810 12 50,000 0 2,764 osh-native
ex.bashcomp-parse-help 176 0 3 10.6 8.3 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
7 6 0 1.6 dash -
24 23 0 3.1 bash -
104 61 49 3.4 zsh -
16 16 0 28.2 bumpleak/osh mut
17 9 9 28.1 _bin/cxx-opt+bumproot/osh mut
21 12 8 29.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
27 27 0 24.9 osh-native mut+alloc
29 20 8 25.2 osh-native mut+alloc+free
32 32 0 17.6 osh-native mut+alloc+free+gc
34 17 17 17.6 osh-native mut+alloc+free+gc+exit
40 24 16 32.5 _bin/cxx-opt+nopool/osh mut+alloc
48 40 8 21.4 _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 15 7 1.4 dash -
78 77 0 2.9 bash -
377 195 203 3.5 zsh -
48 32 16 85.6 bumpleak/osh mut
51 43 8 84.3 _bin/cxx-opt+bumproot/osh mut
63 47 16 84.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
88 52 36 73.1 osh-native mut+alloc
96 56 40 74.9 osh-native mut+alloc+free
158 138 20 45.5 osh-native mut+alloc+free+gc
155 135 20 45.7 osh-native mut+alloc+free+gc+exit
129 70 59 98.0 _bin/cxx-opt+nopool/osh mut+alloc
225 197 28 60.4 _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 4 4 3.3 zsh -
6 6 0 12.0 bumpleak/osh mut
6 6 0 10.3 _bin/cxx-opt+bumproot/osh mut
6 0 6 10.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 9.8 osh-native mut+alloc
8 8 0 9.7 osh-native mut+alloc+free
9 9 0 8.0 osh-native mut+alloc+free+gc
9 5 5 8.1 osh-native mut+alloc+free+gc+exit
11 11 0 11.0 _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
10 10 0 1.6 dash -
29 29 0 3.0 bash -
24 19 4 3.4 zsh -
19 11 8 31.5 bumpleak/osh mut
21 13 7 32.4 _bin/cxx-opt+bumproot/osh mut
23 19 4 32.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
32 24 8 26.1 osh-native mut+alloc
33 25 8 26.3 osh-native mut+alloc+free
23 23 0 7.5 osh-native mut+alloc+free+gc
23 23 0 7.5 osh-native mut+alloc+free+gc+exit
49 28 20 35.6 _bin/cxx-opt+nopool/osh mut+alloc
32 27 4 9.1 _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.1 bash -
169 137 32 55.0 bumpleak/osh mut
174 81 93 54.1 _bin/cxx-opt+bumproot/osh mut
187 144 44 55.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
207 142 65 46.8 osh-native mut+alloc
213 146 67 48.4 osh-native mut+alloc+free
176 140 36 8.3 osh-native mut+alloc+free+gc
175 127 48 8.3 osh-native mut+alloc+free+gc+exit
224 124 100 63.5 _bin/cxx-opt+nopool/osh mut+alloc
205 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.4 dash -
21 20 2 4.5 bash -
18 10 8 3.5 zsh -
19 11 8 13.2 bumpleak/osh mut
21 16 6 12.7 _bin/cxx-opt+bumproot/osh mut
22 11 11 13.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 16 5 10.5 osh-native mut+alloc
22 12 10 10.5 osh-native mut+alloc+free
22 19 3 8.7 osh-native mut+alloc+free+gc
22 16 7 8.4 osh-native mut+alloc+free+gc+exit
24 21 4 12.3 _bin/cxx-opt+nopool/osh mut+alloc
25 22 3 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc