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 32 4 10 12.0 18.5 471,266 1,282 6 413,148 5 206,574 osh-native
parse.configure-cpython 35 4 10 12.0 18.7 471,266 1,282 6 413,156 5 206,578 osh-nosouffle
parse.configure-coreutils 142 29 68 45.9 51.6 1,638,005 4,764 12 1,056,646 6 787,844 osh-native
parse.configure-coreutils 140 23 58 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.7 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.4 572,118 22,608 12 50,000 0 2,984 osh-native
ex.compute-fib 25 0 2 2.8 8.5 572,118 22,608 12 50,000 0 2,989 osh-nosouffle
ex.bashcomp-parse-help 229 0 4 11.6 9.0 990,264 15,258 21 50,000 0 3,966 osh-native
ex.bashcomp-parse-help 229 0 4 11.6 9.6 990,263 15,258 21 50,000 0 3,968 osh-nosouffle
ex.abuild-print-help 21 1 2 3.0 9.4 117,222 277 3 83,996 1 41,998 osh-native
ex.abuild-print-help 23 1 2 3.0 10.0 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
6 6 0 1.6 dash -
13 13 0 3.4 bash -
91 58 40 3.5 zsh -
15 12 3 30.6 bumpleak/osh mut
16 12 4 29.9 _bin/cxx-opt+bumproot/osh mut
19 16 3 29.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 15 11 25.7 osh-native mut+alloc
28 15 12 26.0 osh-native mut+alloc+free
32 28 4 18.5 osh-native mut+alloc+free+gc
33 24 9 18.2 osh-native mut+alloc+free+gc+exit
29 21 8 26.1 osh-nosouffle mut+alloc
31 21 10 26.3 osh-nosouffle mut+alloc+free
35 27 8 18.7 osh-nosouffle mut+alloc+free+gc
36 26 10 18.6 osh-nosouffle mut+alloc+free+gc+exit
39 29 10 32.4 _bin/cxx-opt+nopool/osh mut+alloc
44 34 10 22.9 _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 21 2 1.7 dash -
42 41 1 3.5 bash -
331 177 175 3.7 zsh -
46 36 10 84.8 bumpleak/osh mut
49 41 8 86.5 _bin/cxx-opt+bumproot/osh mut
61 47 14 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
82 54 28 73.8 osh-native mut+alloc
93 62 30 75.5 osh-native mut+alloc+free
142 120 22 51.6 osh-native mut+alloc+free+gc
138 112 26 52.3 osh-native mut+alloc+free+gc+exit
91 59 32 74.1 osh-nosouffle mut+alloc
103 65 38 76.0 osh-nosouffle mut+alloc+free
140 116 24 52.3 osh-nosouffle mut+alloc+free+gc
146 120 26 52.9 osh-nosouffle mut+alloc+free+gc+exit
130 85 45 99.0 _bin/cxx-opt+nopool/osh mut+alloc
202 171 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.3 bash -
6 3 3 3.4 zsh -
6 3 3 12.7 bumpleak/osh mut
6 4 2 11.4 _bin/cxx-opt+bumproot/osh mut
7 6 1 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 2 10.5 osh-native mut+alloc
8 5 3 10.7 osh-native mut+alloc+free
9 6 3 8.7 osh-native mut+alloc+free+gc
9 6 3 8.9 osh-native mut+alloc+free+gc+exit
8 6 3 11.0 osh-nosouffle mut+alloc
9 6 3 11.1 osh-nosouffle mut+alloc+free
10 6 4 9.2 osh-nosouffle mut+alloc+free+gc
10 8 2 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 6 5 11.8 _bin/cxx-opt+nopool/osh mut+alloc
12 10 2 9.8 _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.4 dash -
30 30 0 3.1 bash -
21 15 7 3.4 zsh -
17 12 5 33.1 bumpleak/osh mut
18 14 4 32.8 _bin/cxx-opt+bumproot/osh mut
21 15 6 33.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 20 9 26.9 osh-native mut+alloc
31 19 12 27.1 osh-native mut+alloc+free
20 19 1 8.4 osh-native mut+alloc+free+gc
20 17 3 8.3 osh-native mut+alloc+free+gc+exit
33 22 11 27.3 osh-nosouffle mut+alloc
36 27 9 27.5 osh-nosouffle mut+alloc+free
25 23 2 8.5 osh-nosouffle mut+alloc+free+gc
25 23 2 8.7 osh-nosouffle mut+alloc+free+gc+exit
48 30 18 36.2 _bin/cxx-opt+nopool/osh mut+alloc
30 26 4 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
104 100 4 3.4 bash -
213 162 51 56.9 bumpleak/osh mut
222 166 56 58.0 _bin/cxx-opt+bumproot/osh mut
243 174 69 58.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
262 194 68 48.8 osh-native mut+alloc
272 195 77 50.7 osh-native mut+alloc+free
229 182 47 9.0 osh-native mut+alloc+free+gc
227 174 53 9.0 osh-native mut+alloc+free+gc+exit
268 195 73 49.3 osh-nosouffle mut+alloc
274 204 70 51.3 osh-nosouffle mut+alloc+free
229 180 49 9.6 osh-nosouffle mut+alloc+free+gc
231 185 47 9.6 osh-nosouffle mut+alloc+free+gc+exit
285 202 83 64.3 _bin/cxx-opt+nopool/osh mut+alloc
251 199 52 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 6 4 3.9 dash -
17 9 9 4.8 bash -
15 6 10 4.1 zsh -
19 8 11 13.4 bumpleak/osh mut
18 9 9 12.8 _bin/cxx-opt+bumproot/osh mut
18 10 10 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 11 11.5 osh-native mut+alloc
22 9 13 11.8 osh-native mut+alloc+free
21 10 12 9.4 osh-native mut+alloc+free+gc
21 13 9 9.6 osh-native mut+alloc+free+gc+exit
20 8 13 12.1 osh-nosouffle mut+alloc
22 9 14 12.1 osh-nosouffle mut+alloc+free
23 9 14 10.0 osh-nosouffle mut+alloc+free+gc
23 12 12 10.1 osh-nosouffle mut+alloc+free+gc+exit
24 12 13 13.1 _bin/cxx-opt+nopool/osh mut+alloc
24 16 9 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc