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,252 1,282 6 413,132 5 206,566 osh-native
parse.configure-cpython 34 3 9 12.0 18.9 471,252 1,282 6 413,140 5 206,570 osh-nosouffle
parse.configure-coreutils 133 23 60 45.9 51.7 1,637,991 4,764 12 1,056,630 6 787,836 osh-native
parse.configure-coreutils 143 23 60 45.9 52.1 1,637,990 4,764 12 1,056,638 6 787,840 osh-nosouffle
parse.abuild 9 1 2 2.6 8.7 102,780 180 3 86,618 1 43,309 osh-native
parse.abuild 10 1 2 2.6 9.2 102,780 180 3 86,626 1 43,313 osh-nosouffle
ex.compute-fib 19 0 1 2.8 8.1 572,104 22,608 12 50,000 0 2,977 osh-native
ex.compute-fib 24 0 1 2.8 8.7 572,104 22,608 12 50,000 0 2,981 osh-nosouffle
ex.bashcomp-parse-help 220 0 4 11.6 9.0 990,250 15,258 21 50,000 0 3,957 osh-native
ex.bashcomp-parse-help 230 0 3 11.6 9.6 990,249 15,258 21 50,000 0 3,966 osh-nosouffle
ex.abuild-print-help 20 1 2 3.0 9.4 117,208 277 3 83,980 1 41,990 osh-native
ex.abuild-print-help 21 1 2 3.0 10.1 117,207 277 3 83,988 1 41,994 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 -
90 54 43 3.5 zsh -
15 11 4 29.9 bumpleak/osh mut
16 13 3 29.6 _bin/cxx-opt+bumproot/osh mut
19 13 7 31.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 15 10 25.6 osh-native mut+alloc
27 20 7 25.8 osh-native mut+alloc+free
31 26 5 18.1 osh-native mut+alloc+free+gc
32 26 6 18.2 osh-native mut+alloc+free+gc+exit
28 19 9 26.0 osh-nosouffle mut+alloc
30 23 7 26.5 osh-nosouffle mut+alloc+free
34 29 5 18.9 osh-nosouffle mut+alloc+free+gc
35 28 7 18.7 osh-nosouffle mut+alloc+free+gc+exit
38 23 16 33.5 _bin/cxx-opt+nopool/osh mut+alloc
44 33 11 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 23 0 1.6 dash -
42 42 0 3.4 bash -
321 185 158 3.7 zsh -
45 38 7 84.9 bumpleak/osh mut
48 38 10 85.5 _bin/cxx-opt+bumproot/osh mut
60 49 11 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
82 44 39 73.7 osh-native mut+alloc
90 53 36 75.6 osh-native mut+alloc+free
133 111 22 51.7 osh-native mut+alloc+free+gc
137 114 22 52.4 osh-native mut+alloc+free+gc+exit
95 68 27 74.1 osh-nosouffle mut+alloc
102 68 34 75.9 osh-nosouffle mut+alloc+free
143 112 31 52.1 osh-nosouffle mut+alloc+free+gc
149 126 23 52.8 osh-nosouffle mut+alloc+free+gc+exit
125 82 43 99.0 _bin/cxx-opt+nopool/osh mut+alloc
188 157 31 73.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 5 1 3.4 zsh -
6 4 3 12.1 bumpleak/osh mut
6 4 2 11.7 _bin/cxx-opt+bumproot/osh mut
7 5 2 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.5 osh-native mut+alloc
8 6 2 10.7 osh-native mut+alloc+free
9 6 3 8.7 osh-native mut+alloc+free+gc
9 8 1 8.9 osh-native mut+alloc+free+gc+exit
8 4 5 11.0 osh-nosouffle mut+alloc
9 3 6 11.0 osh-nosouffle mut+alloc+free
10 6 4 9.2 osh-nosouffle mut+alloc+free+gc
10 7 3 9.2 osh-nosouffle mut+alloc+free+gc+exit
11 9 2 12.0 _bin/cxx-opt+nopool/osh mut+alloc
12 9 3 9.6 _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
9 9 1 1.4 dash -
31 31 0 3.3 bash -
21 19 2 3.4 zsh -
17 11 6 32.3 bumpleak/osh mut
18 15 3 32.2 _bin/cxx-opt+bumproot/osh mut
20 17 4 33.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 18 10 26.9 osh-native mut+alloc
30 17 13 27.0 osh-native mut+alloc+free
19 18 1 8.1 osh-native mut+alloc+free+gc
20 16 3 8.3 osh-native mut+alloc+free+gc+exit
33 22 11 27.3 osh-nosouffle mut+alloc
35 25 9 27.5 osh-nosouffle mut+alloc+free
24 23 1 8.7 osh-nosouffle mut+alloc+free+gc
25 22 3 8.7 osh-nosouffle mut+alloc+free+gc+exit
46 27 19 36.1 _bin/cxx-opt+nopool/osh mut+alloc
29 23 6 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
105 101 4 3.4 bash -
214 165 49 57.1 bumpleak/osh mut
221 168 53 57.2 _bin/cxx-opt+bumproot/osh mut
238 183 55 57.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
253 171 82 48.8 osh-native mut+alloc
262 180 82 50.7 osh-native mut+alloc+free
220 170 50 9.0 osh-native mut+alloc+free+gc
222 173 49 8.8 osh-native mut+alloc+free+gc+exit
260 196 64 49.2 osh-nosouffle mut+alloc
267 206 61 51.3 osh-nosouffle mut+alloc+free
230 174 56 9.6 osh-nosouffle mut+alloc+free+gc
226 177 48 9.4 osh-nosouffle mut+alloc+free+gc+exit
278 203 75 65.8 _bin/cxx-opt+nopool/osh mut+alloc
249 202 47 10.8 _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 10 7 4.8 bash -
15 6 10 4.1 zsh -
18 8 10 13.2 bumpleak/osh mut
18 9 9 13.1 _bin/cxx-opt+bumproot/osh mut
18 9 9 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 8 13 11.4 osh-native mut+alloc
20 7 14 11.7 osh-native mut+alloc+free
20 9 11 9.4 osh-native mut+alloc+free+gc
21 10 11 9.6 osh-native mut+alloc+free+gc+exit
20 9 12 12.1 osh-nosouffle mut+alloc
21 13 9 12.2 osh-nosouffle mut+alloc+free
21 12 10 10.1 osh-nosouffle mut+alloc+free+gc
22 10 12 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 12 12 13.1 _bin/cxx-opt+nopool/osh mut+alloc
23 11 13 10.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc