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 35 5 12 12.0 18.2 471,266 1,282 6 413,148 5 206,574 osh-native
parse.configure-cpython 38 5 12 12.0 18.7 471,266 1,282 6 413,156 5 206,578 osh-nosouffle
parse.configure-coreutils 155 29 78 45.9 51.9 1,638,005 4,764 12 1,056,646 6 787,844 osh-native
parse.configure-coreutils 169 30 83 45.9 52.3 1,638,004 4,764 12 1,056,654 6 787,848 osh-nosouffle
parse.abuild 10 1 2 2.6 8.8 102,794 180 3 86,634 1 43,317 osh-native
parse.abuild 11 1 2 2.6 9.2 102,794 180 3 86,642 1 43,321 osh-nosouffle
ex.compute-fib 20 0 2 2.8 8.3 572,118 22,608 12 50,000 0 2,984 osh-native
ex.compute-fib 25 0 2 2.8 8.7 572,118 22,608 12 50,000 0 2,989 osh-nosouffle
ex.bashcomp-parse-help 227 0 5 11.6 9.2 990,264 15,258 21 50,000 0 3,966 osh-native
ex.bashcomp-parse-help 231 0 4 11.6 9.4 990,263 15,258 21 50,000 0 3,968 osh-nosouffle
ex.abuild-print-help 22 1 2 3.0 9.6 117,222 277 3 83,996 1 41,998 osh-native
ex.abuild-print-help 22 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
7 6 1 1.7 dash -
13 12 1 3.3 bash -
91 54 44 3.5 zsh -
16 11 5 28.8 bumpleak/osh mut
17 13 4 30.6 _bin/cxx-opt+bumproot/osh mut
19 14 6 30.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 13 13 25.3 osh-native mut+alloc
29 17 12 25.8 osh-native mut+alloc+free
35 28 7 18.2 osh-native mut+alloc+free+gc
33 23 10 18.2 osh-native mut+alloc+free+gc+exit
29 20 9 25.8 osh-nosouffle mut+alloc
31 23 8 26.2 osh-nosouffle mut+alloc+free
38 29 9 18.7 osh-nosouffle mut+alloc+free+gc
36 27 9 18.7 osh-nosouffle mut+alloc+free+gc+exit
39 21 18 32.8 _bin/cxx-opt+nopool/osh mut+alloc
47 36 11 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 22 1 1.7 dash -
43 40 3 3.5 bash -
335 187 175 3.8 zsh -
46 35 11 84.6 bumpleak/osh mut
49 39 10 86.1 _bin/cxx-opt+bumproot/osh mut
59 45 14 86.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
84 50 34 73.9 osh-native mut+alloc
96 59 37 75.6 osh-native mut+alloc+free
155 126 29 51.9 osh-native mut+alloc+free+gc
154 130 24 52.3 osh-native mut+alloc+free+gc+exit
93 63 30 74.2 osh-nosouffle mut+alloc
103 67 35 76.0 osh-nosouffle mut+alloc+free
169 139 31 52.3 osh-nosouffle mut+alloc+free+gc
165 142 22 52.8 osh-nosouffle mut+alloc+free+gc+exit
128 84 44 99.0 _bin/cxx-opt+nopool/osh mut+alloc
219 181 37 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.6 dash -
4 4 0 3.3 bash -
7 3 3 3.5 zsh -
6 5 1 13.2 bumpleak/osh mut
6 3 3 13.0 _bin/cxx-opt+bumproot/osh mut
7 4 3 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 5 10.7 osh-native mut+alloc
9 7 2 10.7 osh-native mut+alloc+free
10 9 1 8.8 osh-native mut+alloc+free+gc
10 7 3 8.7 osh-native mut+alloc+free+gc+exit
9 6 3 11.0 osh-nosouffle mut+alloc
10 5 4 11.0 osh-nosouffle mut+alloc+free
11 9 2 9.2 osh-nosouffle mut+alloc+free+gc
11 10 1 9.2 osh-nosouffle mut+alloc+free+gc+exit
12 7 5 11.7 _bin/cxx-opt+nopool/osh mut+alloc
13 10 3 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
10 9 1 1.4 dash -
37 36 1 3.1 bash -
21 12 9 3.5 zsh -
18 13 5 32.5 bumpleak/osh mut
18 14 4 32.5 _bin/cxx-opt+bumproot/osh mut
21 14 7 33.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 19 10 26.9 osh-native mut+alloc
31 21 10 27.2 osh-native mut+alloc+free
20 18 2 8.3 osh-native mut+alloc+free+gc
21 18 3 8.4 osh-native mut+alloc+free+gc+exit
34 23 11 27.3 osh-nosouffle mut+alloc
36 25 11 27.6 osh-nosouffle mut+alloc+free
25 22 3 8.7 osh-nosouffle mut+alloc+free+gc
25 24 1 8.8 osh-nosouffle mut+alloc+free+gc+exit
46 32 14 36.9 _bin/cxx-opt+nopool/osh mut+alloc
30 28 2 9.7 _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 97 7 3.4 bash -
213 159 54 56.9 bumpleak/osh mut
223 164 59 57.1 _bin/cxx-opt+bumproot/osh mut
240 177 63 58.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
258 184 74 48.8 osh-native mut+alloc
271 208 63 50.7 osh-native mut+alloc+free
227 193 34 9.2 osh-native mut+alloc+free+gc
228 177 51 9.0 osh-native mut+alloc+free+gc+exit
270 205 65 49.3 osh-nosouffle mut+alloc
275 197 78 51.4 osh-nosouffle mut+alloc+free
231 177 54 9.4 osh-nosouffle mut+alloc+free+gc
232 184 48 9.6 osh-nosouffle mut+alloc+free+gc+exit
290 213 77 64.6 _bin/cxx-opt+nopool/osh mut+alloc
255 211 44 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 4 6 3.9 dash -
16 9 7 4.8 bash -
16 7 9 3.9 zsh -
18 8 10 14.0 bumpleak/osh mut
19 11 9 12.7 _bin/cxx-opt+bumproot/osh mut
19 11 10 13.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 13 9 11.7 osh-native mut+alloc
22 9 13 11.8 osh-native mut+alloc+free
22 11 12 9.6 osh-native mut+alloc+free+gc
24 12 13 9.7 osh-native mut+alloc+free+gc+exit
21 12 10 12.1 osh-nosouffle mut+alloc
23 13 11 12.2 osh-nosouffle mut+alloc+free
22 14 9 10.0 osh-nosouffle mut+alloc+free+gc
27 14 14 10.1 osh-nosouffle mut+alloc+free+gc+exit
24 6 18 12.9 _bin/cxx-opt+nopool/osh mut+alloc
25 12 14 10.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc