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 38 4 11 12.0 17.8 476,676 1,282 6 408,744 5 204,372 osh-native
parse.configure-coreutils 163 26 74 46.1 51.1 1,653,264 4,764 12 1,069,110 6 798,636 osh-native
parse.abuild 9 1 1 2.6 8.5 101,867 180 2 75,086 1 37,543 osh-native
ex.compute-fib 28 0 1 2.6 8.0 584,132 31,810 12 50,000 0 2,819 osh-native
ex.bashcomp-parse-help 182 0 4 10.3 8.5 979,369 27,376 21 50,000 0 3,804 osh-native
ex.abuild-print-help 24 1 2 2.8 8.9 116,240 478 3 85,322 1 42,661 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 62 48 3.3 zsh -
17 12 4 28.2 bumpleak/osh mut
20 16 4 29.8 _bin/cxx-opt+bumproot/osh mut
22 18 4 29.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 15 15 25.2 osh-native mut+alloc
32 20 12 25.6 osh-native mut+alloc+free
38 26 11 17.8 osh-native mut+alloc+free+gc
37 33 4 18.0 osh-native mut+alloc+free+gc+exit
43 13 30 33.3 _bin/cxx-opt+nopool/osh mut+alloc
52 36 16 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 -
77 77 0 3.1 bash -
380 225 178 3.5 zsh -
50 34 15 84.9 bumpleak/osh mut
61 52 8 85.4 _bin/cxx-opt+bumproot/osh mut
72 56 16 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 70 27 73.4 osh-native mut+alloc
105 69 36 75.2 osh-native mut+alloc+free
163 138 24 51.1 osh-native mut+alloc+free+gc
178 145 32 52.2 osh-native mut+alloc+free+gc+exit
139 72 68 99.1 _bin/cxx-opt+nopool/osh mut+alloc
239 199 40 74.2 _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 3 3 3.0 bash -
8 4 4 3.3 zsh -
7 7 0 11.0 bumpleak/osh mut
7 0 7 11.2 _bin/cxx-opt+bumproot/osh mut
7 7 0 10.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.1 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 9 0 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.2 _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 7 3 1.4 dash -
29 28 0 3.0 bash -
24 20 4 3.3 zsh -
20 15 4 32.9 bumpleak/osh mut
28 23 4 32.9 _bin/cxx-opt+bumproot/osh mut
29 29 0 32.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 25 12 26.3 osh-native mut+alloc
38 25 13 26.6 osh-native mut+alloc+free
28 28 0 8.0 osh-native mut+alloc+free+gc
28 28 0 7.7 osh-native mut+alloc+free+gc+exit
55 38 17 35.8 _bin/cxx-opt+nopool/osh mut+alloc
38 33 4 9.5 _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.0 bash -
166 122 45 54.9 bumpleak/osh mut
181 108 72 55.3 _bin/cxx-opt+bumproot/osh mut
196 123 72 55.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 127 83 46.4 osh-native mut+alloc
222 142 79 48.0 osh-native mut+alloc+free
182 119 63 8.5 osh-native mut+alloc+free+gc
180 124 56 8.7 osh-native mut+alloc+free+gc+exit
232 144 88 62.9 _bin/cxx-opt+nopool/osh mut+alloc
208 175 32 9.9 _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 6 4 3.5 dash -
20 13 7 4.3 bash -
18 11 8 3.5 zsh -
21 8 13 12.5 bumpleak/osh mut
22 11 12 12.9 _bin/cxx-opt+bumproot/osh mut
22 13 9 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 15 7 10.9 osh-native mut+alloc
23 14 10 11.0 osh-native mut+alloc+free
24 16 8 8.9 osh-native mut+alloc+free+gc
24 13 11 8.8 osh-native mut+alloc+free+gc+exit
26 14 13 12.5 _bin/cxx-opt+nopool/osh mut+alloc
26 21 5 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc