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 31 3 9 12.0 18.1 471,266 1,282 6 413,148 5 206,574 osh-native
parse.configure-cpython 34 4 9 12.0 18.7 471,266 1,282 6 413,156 5 206,578 osh-nosouffle
parse.configure-coreutils 136 25 63 45.9 51.7 1,638,005 4,764 12 1,056,646 6 787,844 osh-native
parse.configure-coreutils 145 23 62 45.9 52.3 1,638,004 4,764 12 1,056,654 6 787,848 osh-nosouffle
parse.abuild 9 1 2 2.6 8.5 102,794 180 3 86,634 1 43,317 osh-native
parse.abuild 10 1 2 2.6 9.2 102,794 180 3 86,642 1 43,321 osh-nosouffle
ex.compute-fib 20 0 1 2.8 8.3 572,118 22,608 12 50,000 0 2,984 osh-native
ex.compute-fib 26 0 1 2.8 8.7 572,118 22,608 12 50,000 0 2,989 osh-nosouffle
ex.bashcomp-parse-help 238 0 4 11.6 9.2 990,264 15,258 21 50,000 0 3,966 osh-native
ex.bashcomp-parse-help 227 0 4 11.6 9.4 990,263 15,258 21 50,000 0 3,968 osh-nosouffle
ex.abuild-print-help 20 1 2 3.0 9.4 117,222 277 3 83,996 1 41,998 osh-native
ex.abuild-print-help 21 1 2 3.0 10.1 117,221 277 3 84,004 1 42,002 osh-nosouffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 6 1 1.7 dash -
13 12 1 3.4 bash -
89 47 49 3.5 zsh -
15 12 3 29.5 bumpleak/osh mut
16 15 1 29.9 _bin/cxx-opt+bumproot/osh mut
19 12 7 29.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 19 7 25.6 osh-native mut+alloc
28 18 9 25.7 osh-native mut+alloc+free
31 24 7 18.1 osh-native mut+alloc+free+gc
32 28 4 18.3 osh-native mut+alloc+free+gc+exit
28 23 5 25.8 osh-nosouffle mut+alloc
31 19 11 26.3 osh-nosouffle mut+alloc+free
34 28 6 18.7 osh-nosouffle mut+alloc+free+gc
34 28 6 18.6 osh-nosouffle mut+alloc+free+gc+exit
40 25 14 33.2 _bin/cxx-opt+nopool/osh mut+alloc
45 35 11 22.6 _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.6 dash -
42 40 2 3.4 bash -
331 184 169 3.7 zsh -
45 35 10 84.8 bumpleak/osh mut
48 38 10 84.7 _bin/cxx-opt+bumproot/osh mut
58 47 10 85.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
84 53 31 73.7 osh-native mut+alloc
91 63 28 75.5 osh-native mut+alloc+free
136 118 18 51.7 osh-native mut+alloc+free+gc
143 111 32 52.5 osh-native mut+alloc+free+gc+exit
92 58 34 74.2 osh-nosouffle mut+alloc
101 70 31 75.9 osh-nosouffle mut+alloc+free
145 122 23 52.3 osh-nosouffle mut+alloc+free+gc
147 128 19 52.9 osh-nosouffle mut+alloc+free+gc+exit
132 87 45 98.0 _bin/cxx-opt+nopool/osh mut+alloc
195 163 31 72.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 1 1 1.7 dash -
4 3 1 3.1 bash -
6 1 5 3.3 zsh -
6 4 2 11.7 bumpleak/osh mut
6 4 2 11.9 _bin/cxx-opt+bumproot/osh mut
7 4 3 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 3 10.5 osh-native mut+alloc
8 7 1 10.6 osh-native mut+alloc+free
9 4 5 8.5 osh-native mut+alloc+free+gc
9 6 3 8.8 osh-native mut+alloc+free+gc+exit
9 7 2 10.9 osh-nosouffle mut+alloc
9 8 1 11.1 osh-nosouffle mut+alloc+free
10 5 5 9.2 osh-nosouffle mut+alloc+free+gc
10 7 3 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 5 6 12.0 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 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
17 17 0 1.6 dash -
32 30 2 3.3 bash -
21 15 7 3.5 zsh -
16 12 4 33.8 bumpleak/osh mut
18 15 3 33.6 _bin/cxx-opt+bumproot/osh mut
21 13 8 33.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 18 10 26.9 osh-native mut+alloc
30 17 12 27.1 osh-native mut+alloc+free
20 18 2 8.3 osh-native mut+alloc+free+gc
20 20 0 8.1 osh-native mut+alloc+free+gc+exit
35 21 13 27.3 osh-nosouffle mut+alloc
35 24 10 27.4 osh-nosouffle mut+alloc+free
26 22 4 8.7 osh-nosouffle mut+alloc+free+gc
24 23 1 8.7 osh-nosouffle mut+alloc+free+gc+exit
45 28 17 36.9 _bin/cxx-opt+nopool/osh mut+alloc
29 26 3 9.8 _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
102 101 1 3.4 bash -
213 160 53 57.8 bumpleak/osh mut
222 173 48 56.1 _bin/cxx-opt+bumproot/osh mut
240 184 56 57.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
256 194 62 48.9 osh-native mut+alloc
266 197 69 50.7 osh-native mut+alloc+free
238 183 55 9.2 osh-native mut+alloc+free+gc
222 189 33 9.0 osh-native mut+alloc+free+gc+exit
261 173 87 49.3 osh-nosouffle mut+alloc
271 205 66 51.3 osh-nosouffle mut+alloc+free
227 184 43 9.4 osh-nosouffle mut+alloc+free+gc
228 182 46 9.7 osh-nosouffle mut+alloc+free+gc+exit
280 209 71 65.5 _bin/cxx-opt+nopool/osh mut+alloc
250 195 55 10.5 _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 3 6 4.1 dash -
15 9 7 4.7 bash -
16 7 9 3.9 zsh -
18 6 13 13.2 bumpleak/osh mut
18 10 8 14.2 _bin/cxx-opt+bumproot/osh mut
20 6 14 14.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 10 10 11.5 osh-native mut+alloc
20 11 10 11.8 osh-native mut+alloc+free
20 9 12 9.4 osh-native mut+alloc+free+gc
21 13 8 9.7 osh-native mut+alloc+free+gc+exit
20 9 12 12.2 osh-nosouffle mut+alloc
22 7 16 12.3 osh-nosouffle mut+alloc+free
21 9 13 10.1 osh-nosouffle mut+alloc+free+gc
22 16 7 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 12 11 13.2 _bin/cxx-opt+nopool/osh mut+alloc
23 11 13 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc