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 42 7 15 12.0 17.8 476,684 1,282 6 408,754 5 204,377 osh-native
parse.configure-coreutils 196 31 100 46.1 51.3 1,653,272 4,764 12 1,069,120 6 798,641 osh-native
parse.abuild 10 1 1 2.6 8.7 101,875 180 2 75,096 1 37,548 osh-native
ex.compute-fib 29 0 2 2.6 8.0 584,140 31,810 12 50,000 0 2,825 osh-native
ex.bashcomp-parse-help 186 0 5 10.6 8.8 995,217 27,376 21 50,000 0 3,820 osh-native
ex.abuild-print-help 24 1 2 2.8 8.9 116,284 478 3 85,332 1 42,666 osh-native

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 7 0 1.6 dash -
24 19 4 3.0 bash -
106 63 50 3.5 zsh -
17 14 3 29.5 bumpleak/osh mut
20 16 4 28.3 _bin/cxx-opt+bumproot/osh mut
23 19 4 29.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 19 11 25.2 osh-native mut+alloc
33 25 8 25.6 osh-native mut+alloc+free
42 34 8 17.8 osh-native mut+alloc+free+gc
40 36 4 18.0 osh-native mut+alloc+free+gc+exit
44 24 20 32.4 _bin/cxx-opt+nopool/osh mut+alloc
57 49 8 22.1 _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.4 dash -
78 78 0 3.3 bash -
386 213 197 3.4 zsh -
50 50 0 84.1 bumpleak/osh mut
62 47 16 84.8 _bin/cxx-opt+bumproot/osh mut
71 63 8 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 51 47 73.4 osh-native mut+alloc
109 77 32 75.4 osh-native mut+alloc+free
196 152 44 51.3 osh-native mut+alloc+free+gc
202 177 25 52.2 osh-native mut+alloc+free+gc+exit
141 104 36 99.0 _bin/cxx-opt+nopool/osh mut+alloc
268 235 32 73.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.1 zsh -
6 3 3 11.1 bumpleak/osh mut
7 7 0 11.7 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 0 9 10.0 osh-native mut+alloc
9 5 5 10.1 osh-native mut+alloc+free
10 6 3 8.7 osh-native mut+alloc+free+gc
10 6 3 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.3 _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
11 11 0 1.4 dash -
29 29 0 2.9 bash -
24 16 8 3.4 zsh -
19 19 0 31.0 bumpleak/osh mut
27 19 7 33.2 _bin/cxx-opt+bumproot/osh mut
28 24 4 32.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
38 19 19 26.3 osh-native mut+alloc
39 26 13 26.6 osh-native mut+alloc+free
29 25 4 8.0 osh-native mut+alloc+free+gc
29 28 0 7.9 osh-native mut+alloc+free+gc+exit
55 43 12 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 38 0 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.1 bash -
168 96 72 55.1 bumpleak/osh mut
183 126 57 56.4 _bin/cxx-opt+bumproot/osh mut
193 121 72 56.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 111 103 46.9 osh-native mut+alloc
226 125 101 48.9 osh-native mut+alloc+free
186 130 57 8.8 osh-native mut+alloc+free+gc
186 113 73 8.8 osh-native mut+alloc+free+gc+exit
233 145 88 63.7 _bin/cxx-opt+nopool/osh mut+alloc
220 179 40 10.2 _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 -
21 13 8 4.3 bash -
19 12 7 3.4 zsh -
20 17 3 11.4 bumpleak/osh mut
22 15 8 13.6 _bin/cxx-opt+bumproot/osh mut
23 12 12 13.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 12 11 11.0 osh-native mut+alloc
23 14 10 11.0 osh-native mut+alloc+free
24 24 0 8.9 osh-native mut+alloc+free+gc
24 20 5 9.0 osh-native mut+alloc+free+gc+exit
25 25 1 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 18 8 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc