Memory Management Overhead

Source code: oils/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 34 3 9 12.1 18.7 477,960 1,282 6 406,268 5 203,134 osh-native
parse.configure-cpython 31 3 10 12.1 18.1 477,960 1,282 6 406,258 5 203,129 osh-souffle
parse.configure-coreutils 140 23 60 44.4 50.2 1,656,039 4,764 12 1,021,758 6 761,509 osh-native
parse.configure-coreutils 136 23 64 44.4 49.8 1,656,038 4,764 12 1,021,748 6 761,504 osh-souffle
parse.abuild 10 1 2 2.6 9.2 102,877 180 3 86,660 1 43,330 osh-native
parse.abuild 9 1 2 2.6 8.5 102,877 180 3 86,650 1 43,325 osh-souffle
ex.compute-fib 25 0 1 2.2 8.7 579,748 22,608 12 50,000 0 2,946 osh-native
ex.compute-fib 20 0 1 2.2 8.1 579,748 22,608 12 50,000 0 2,941 osh-souffle
ex.bashcomp-parse-help 230 0 4 11.1 9.6 1,021,095 15,258 22 50,000 0 3,933 osh-native
ex.bashcomp-parse-help 223 0 4 11.1 8.9 1,021,094 15,258 22 50,000 0 3,930 osh-souffle
ex.abuild-print-help 21 1 2 3.0 10.0 117,369 277 3 84,028 1 42,014 osh-native
ex.abuild-print-help 20 1 2 3.0 9.4 117,369 277 3 84,018 1 42,009 osh-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 6 0 1.7 dash -
13 12 1 3.3 bash -
89 47 48 3.5 zsh -
15 12 3 29.1 bumpleak/osh mut
19 14 5 30.9 _bin/cxx-opt+bumproot/osh mut
21 15 6 30.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 19 10 26.0 osh-native mut+alloc
30 15 14 26.2 osh-native mut+alloc+free
34 27 7 18.7 osh-native mut+alloc+free+gc
35 29 6 18.6 osh-native mut+alloc+free+gc+exit
26 14 12 25.6 osh-souffle mut+alloc
28 16 12 25.8 osh-souffle mut+alloc+free
31 20 11 18.1 osh-souffle mut+alloc+free+gc
33 25 8 18.2 osh-souffle mut+alloc+free+gc+exit
43 26 16 33.7 _bin/cxx-opt+nopool/osh mut+alloc
48 36 12 22.7 _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
23 22 1 1.7 dash -
42 39 3 3.3 bash -
326 181 168 3.7 zsh -
46 38 8 84.7 bumpleak/osh mut
58 46 11 87.3 _bin/cxx-opt+bumproot/osh mut
67 53 14 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
90 59 31 74.2 osh-native mut+alloc
100 68 32 76.1 osh-native mut+alloc+free
140 115 25 50.2 osh-native mut+alloc+free+gc
158 128 28 50.9 osh-native mut+alloc+free+gc+exit
83 47 36 73.9 osh-souffle mut+alloc
90 55 34 75.5 osh-souffle mut+alloc+free
136 114 21 49.8 osh-souffle mut+alloc+free+gc
140 117 23 50.6 osh-souffle mut+alloc+free+gc+exit
133 89 44 100.4 _bin/cxx-opt+nopool/osh mut+alloc
198 163 35 67.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 1 1 1.6 dash -
4 4 0 3.1 bash -
6 4 2 3.5 zsh -
6 4 2 11.4 bumpleak/osh mut
7 3 4 11.9 _bin/cxx-opt+bumproot/osh mut
7 6 1 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 3 10.9 osh-native mut+alloc
9 6 3 11.0 osh-native mut+alloc+free
10 5 5 9.2 osh-native mut+alloc+free+gc
10 6 4 9.2 osh-native mut+alloc+free+gc+exit
8 6 2 10.4 osh-souffle mut+alloc
8 5 4 10.6 osh-souffle mut+alloc+free
9 5 4 8.5 osh-souffle mut+alloc+free+gc
9 8 1 8.7 osh-souffle mut+alloc+free+gc+exit
12 8 4 12.4 _bin/cxx-opt+nopool/osh mut+alloc
12 7 5 9.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 -
30 29 1 3.1 bash -
21 16 5 3.4 zsh -
17 12 5 31.6 bumpleak/osh mut
23 20 3 32.5 _bin/cxx-opt+bumproot/osh mut
25 22 3 32.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
33 26 7 26.9 osh-native mut+alloc
34 26 8 27.1 osh-native mut+alloc+free
25 21 4 8.7 osh-native mut+alloc+free+gc
25 21 4 8.7 osh-native mut+alloc+free+gc+exit
28 16 12 26.5 osh-souffle mut+alloc
29 19 10 26.7 osh-souffle mut+alloc+free
20 17 3 8.1 osh-souffle mut+alloc+free+gc
19 16 3 8.3 osh-souffle mut+alloc+free+gc+exit
51 31 19 36.7 _bin/cxx-opt+nopool/osh mut+alloc
34 32 2 10.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
104 99 4 3.5 bash -
215 163 51 57.1 bumpleak/osh mut
228 177 51 56.9 _bin/cxx-opt+bumproot/osh mut
247 184 63 58.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
263 199 64 49.5 osh-native mut+alloc
270 190 81 51.4 osh-native mut+alloc+free
230 172 58 9.6 osh-native mut+alloc+free+gc
234 177 57 9.4 osh-native mut+alloc+free+gc+exit
257 185 72 49.0 osh-souffle mut+alloc
266 203 62 51.0 osh-souffle mut+alloc+free
223 173 50 8.9 osh-souffle mut+alloc+free+gc
222 172 50 9.0 osh-souffle mut+alloc+free+gc+exit
289 208 81 67.1 _bin/cxx-opt+nopool/osh mut+alloc
258 215 43 11.0 _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
9 4 5 4.1 dash -
16 9 7 4.7 bash -
16 10 6 3.9 zsh -
17 8 9 13.8 bumpleak/osh mut
18 12 7 14.3 _bin/cxx-opt+bumproot/osh mut
20 11 10 14.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 11 10 12.1 osh-native mut+alloc
20 9 11 12.1 osh-native mut+alloc+free
21 12 9 10.0 osh-native mut+alloc+free+gc
21 14 8 10.0 osh-native mut+alloc+free+gc+exit
19 11 8 11.4 osh-souffle mut+alloc
19 9 10 11.4 osh-souffle mut+alloc+free
20 12 8 9.4 osh-souffle mut+alloc+free+gc
20 13 8 9.4 osh-souffle mut+alloc+free+gc+exit
23 11 13 13.8 _bin/cxx-opt+nopool/osh mut+alloc
24 13 12 10.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc