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 35 3 9 12.0 17.8 476,684 1,282 6 408,754 5 204,377 osh-native
parse.configure-coreutils 155 25 68 46.1 51.4 1,653,272 4,764 12 1,069,120 6 798,641 osh-native
parse.abuild 9 1 1 2.6 8.4 101,875 180 2 75,096 1 37,548 osh-native
ex.compute-fib 28 0 1 2.6 7.9 584,140 31,810 12 50,000 0 2,825 osh-native
ex.bashcomp-parse-help 180 0 3 10.6 8.5 995,217 27,376 21 50,000 0 3,820 osh-native
ex.abuild-print-help 22 1 2 2.8 8.7 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
6 6 0 1.6 dash -
24 23 0 3.1 bash -
105 63 49 3.3 zsh -
16 10 7 29.4 bumpleak/osh mut
20 20 0 28.5 _bin/cxx-opt+bumproot/osh mut
23 18 4 30.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 25 4 25.0 osh-native mut+alloc
31 18 13 25.4 osh-native mut+alloc+free
35 19 16 17.8 osh-native mut+alloc+free+gc
36 35 0 18.0 osh-native mut+alloc+free+gc+exit
43 27 16 32.5 _bin/cxx-opt+nopool/osh mut+alloc
48 40 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
21 21 0 1.6 dash -
78 74 4 3.1 bash -
378 210 191 3.4 zsh -
50 34 15 85.9 bumpleak/osh mut
61 46 15 84.9 _bin/cxx-opt+bumproot/osh mut
70 54 15 85.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 64 32 73.3 osh-native mut+alloc
105 50 54 75.3 osh-native mut+alloc+free
155 139 16 51.4 osh-native mut+alloc+free+gc
153 120 32 52.2 osh-native mut+alloc+free+gc+exit
141 100 40 98.3 _bin/cxx-opt+nopool/osh mut+alloc
220 200 20 73.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 0 2 1.4 dash -
6 3 3 2.9 bash -
8 0 8 3.3 zsh -
6 6 0 11.1 bumpleak/osh mut
7 7 0 11.0 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.0 osh-native mut+alloc
9 4 4 10.0 osh-native mut+alloc+free
9 4 4 8.4 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 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
11 10 0 1.6 dash -
28 28 0 3.0 bash -
23 23 0 3.3 zsh -
19 19 0 31.2 bumpleak/osh mut
26 18 7 32.2 _bin/cxx-opt+bumproot/osh mut
27 27 0 32.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 11 26 26.2 osh-native mut+alloc
38 25 12 26.6 osh-native mut+alloc+free
28 20 8 7.9 osh-native mut+alloc+free+gc
27 23 4 7.7 osh-native mut+alloc+free+gc+exit
54 38 15 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 37 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 65 8 3.1 bash -
169 108 60 55.5 bumpleak/osh mut
179 122 57 55.0 _bin/cxx-opt+bumproot/osh mut
193 113 81 56.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 137 73 47.1 osh-native mut+alloc
216 160 56 48.9 osh-native mut+alloc+free
180 140 40 8.5 osh-native mut+alloc+free+gc
181 108 72 8.7 osh-native mut+alloc+free+gc+exit
232 140 92 64.3 _bin/cxx-opt+nopool/osh mut+alloc
208 136 72 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 4 6 3.5 dash -
20 12 8 4.5 bash -
18 13 5 3.5 zsh -
18 13 6 11.6 bumpleak/osh mut
20 9 11 11.9 _bin/cxx-opt+bumproot/osh mut
20 16 4 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 17 5 10.7 osh-native mut+alloc
22 16 6 11.1 osh-native mut+alloc+free
22 20 3 8.7 osh-native mut+alloc+free+gc
23 18 6 8.9 osh-native mut+alloc+free+gc+exit
25 16 10 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 15 11 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc