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 12 12.0 18.0 476,684 1,282 6 408,754 5 204,377 osh-native
parse.configure-coreutils 165 28 77 46.1 51.5 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 2 2.6 7.9 584,140 31,810 12 50,000 0 2,825 osh-native
ex.bashcomp-parse-help 182 0 4 10.6 8.8 995,217 27,376 21 50,000 0 3,820 osh-native
ex.abuild-print-help 23 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
6 6 0 1.6 dash -
23 23 0 3.1 bash -
104 53 58 3.4 zsh -
16 10 6 29.6 bumpleak/osh mut
20 15 4 30.1 _bin/cxx-opt+bumproot/osh mut
23 4 18 30.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 24.9 osh-native mut+alloc
32 20 12 25.3 osh-native mut+alloc+free
38 29 8 18.0 osh-native mut+alloc+free+gc
38 34 4 17.8 osh-native mut+alloc+free+gc+exit
44 36 8 33.2 _bin/cxx-opt+nopool/osh mut+alloc
48 43 4 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 22 0 1.6 dash -
78 73 4 3.3 bash -
377 224 174 3.7 zsh -
49 44 4 84.1 bumpleak/osh mut
60 52 8 85.4 _bin/cxx-opt+bumproot/osh mut
71 58 12 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 64 32 73.3 osh-native mut+alloc
106 73 32 75.3 osh-native mut+alloc+free
165 141 24 51.5 osh-native mut+alloc+free+gc
166 145 20 52.2 osh-native mut+alloc+free+gc+exit
140 100 40 99.0 _bin/cxx-opt+nopool/osh mut+alloc
220 176 44 73.0 _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 6 0 3.0 bash -
8 4 4 3.3 zsh -
6 0 6 10.6 bumpleak/osh mut
7 0 7 11.9 _bin/cxx-opt+bumproot/osh mut
7 3 3 11.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.1 osh-native mut+alloc
8 4 4 10.0 osh-native mut+alloc+free
9 3 6 8.4 osh-native mut+alloc+free+gc
10 5 5 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _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 -
28 24 4 2.8 bash -
24 20 4 3.3 zsh -
19 19 0 31.9 bumpleak/osh mut
26 21 4 32.6 _bin/cxx-opt+bumproot/osh mut
29 20 8 32.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 20 16 26.3 osh-native mut+alloc
39 31 8 26.6 osh-native mut+alloc+free
28 20 8 7.9 osh-native mut+alloc+free+gc
29 28 0 7.9 osh-native mut+alloc+free+gc+exit
54 50 4 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 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
72 64 8 3.1 bash -
169 110 59 55.3 bumpleak/osh mut
178 133 44 54.7 _bin/cxx-opt+bumproot/osh mut
194 141 52 56.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
208 132 76 47.1 osh-native mut+alloc
217 141 76 48.9 osh-native mut+alloc+free
182 125 57 8.8 osh-native mut+alloc+free+gc
181 132 48 8.7 osh-native mut+alloc+free+gc+exit
234 159 75 62.3 _bin/cxx-opt+nopool/osh mut+alloc
208 164 44 10.1 _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 7 3 3.5 dash -
20 15 5 4.3 bash -
18 10 9 3.5 zsh -
20 13 8 12.5 bumpleak/osh mut
20 19 2 11.7 _bin/cxx-opt+bumproot/osh mut
22 14 9 13.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 8 14 10.7 osh-native mut+alloc
23 17 6 11.0 osh-native mut+alloc+free
23 19 5 8.9 osh-native mut+alloc+free+gc
23 15 9 8.8 osh-native mut+alloc+free+gc+exit
25 14 12 12.6 _bin/cxx-opt+nopool/osh mut+alloc
26 20 6 9.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc