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 12 12.5 18.9 471,252 1,282 6 413,132 5 206,566 osh-native
parse.configure-cpython 39 6 14 12.5 19.3 471,252 1,282 6 413,140 5 206,570 osh-nosouffle
parse.configure-coreutils 160 30 87 46.4 52.3 1,637,991 4,764 12 1,056,630 6 787,836 osh-native
parse.configure-coreutils 173 29 89 46.4 52.7 1,637,990 4,764 12 1,056,638 6 787,840 osh-nosouffle
parse.abuild 10 1 2 3.1 9.3 102,780 180 3 86,618 1 43,309 osh-native
parse.abuild 10 1 2 3.1 9.8 102,780 180 3 86,626 1 43,313 osh-nosouffle
ex.compute-fib 21 0 2 3.3 8.9 572,104 22,608 12 50,000 0 2,977 osh-native
ex.compute-fib 26 0 2 3.3 9.3 572,104 22,608 12 50,000 0 2,981 osh-nosouffle
ex.bashcomp-parse-help 177 0 7 12.2 9.7 990,250 15,258 21 50,000 0 3,957 osh-native
ex.bashcomp-parse-help 183 0 7 12.2 10.0 990,249 15,258 21 50,000 0 3,966 osh-nosouffle
ex.abuild-print-help 20 1 2 3.7 9.8 117,208 277 3 83,980 1 41,990 osh-native
ex.abuild-print-help 22 1 2 3.7 10.5 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
5 5 0 1.7 dash -
12 11 1 3.3 bash -
71 43 33 3.7 zsh -
18 10 8 30.3 bumpleak/osh mut
20 12 8 29.8 _bin/cxx-opt+bumproot/osh mut
22 10 12 30.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
23 11 12 26.1 osh-native mut+alloc
28 15 14 26.5 osh-native mut+alloc+free
32 27 5 18.9 osh-native mut+alloc+free+gc
37 28 9 18.7 osh-native mut+alloc+free+gc+exit
27 17 9 26.2 osh-nosouffle mut+alloc
30 20 10 26.9 osh-nosouffle mut+alloc+free
39 32 6 19.3 osh-nosouffle mut+alloc+free+gc
41 31 10 19.3 osh-nosouffle mut+alloc+free+gc+exit
38 24 14 32.9 _bin/cxx-opt+nopool/osh mut+alloc
52 40 12 23.4 _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
18 18 0 1.7 dash -
39 37 2 3.5 bash -
243 145 117 3.8 zsh -
53 34 19 86.5 bumpleak/osh mut
58 34 24 85.8 _bin/cxx-opt+bumproot/osh mut
66 44 22 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
74 41 33 74.2 osh-native mut+alloc
90 58 32 76.0 osh-native mut+alloc+free
160 139 20 52.3 osh-native mut+alloc+free+gc
176 152 24 53.0 osh-native mut+alloc+free+gc+exit
82 59 23 74.7 osh-nosouffle mut+alloc
101 71 30 76.7 osh-nosouffle mut+alloc+free
173 150 23 52.7 osh-nosouffle mut+alloc+free+gc
172 148 24 53.5 osh-nosouffle mut+alloc+free+gc+exit
117 71 46 98.8 _bin/cxx-opt+nopool/osh mut+alloc
224 192 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 -
3 2 1 3.1 bash -
5 2 3 3.4 zsh -
6 3 3 11.6 bumpleak/osh mut
7 5 2 12.9 _bin/cxx-opt+bumproot/osh mut
7 6 1 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 3 5 11.1 osh-native mut+alloc
8 3 5 11.1 osh-native mut+alloc+free
10 8 2 9.3 osh-native mut+alloc+free+gc
10 5 5 9.3 osh-native mut+alloc+free+gc+exit
9 7 1 11.5 osh-nosouffle mut+alloc
9 4 6 11.7 osh-nosouffle mut+alloc+free
10 7 4 9.8 osh-nosouffle mut+alloc+free+gc
12 9 3 9.7 osh-nosouffle mut+alloc+free+gc+exit
10 8 2 12.4 _bin/cxx-opt+nopool/osh mut+alloc
12 9 3 10.0 _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 8 1 1.6 dash -
29 29 0 3.3 bash -
17 14 3 3.4 zsh -
21 11 10 32.5 bumpleak/osh mut
23 16 7 32.5 _bin/cxx-opt+bumproot/osh mut
26 17 9 34.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 17 11 27.5 osh-native mut+alloc
31 20 11 27.5 osh-native mut+alloc+free
21 18 3 8.9 osh-native mut+alloc+free+gc
22 19 3 8.7 osh-native mut+alloc+free+gc+exit
32 22 10 27.9 osh-nosouffle mut+alloc
36 27 9 28.0 osh-nosouffle mut+alloc+free
26 22 4 9.3 osh-nosouffle mut+alloc+free+gc
27 25 1 9.2 osh-nosouffle mut+alloc+free+gc+exit
43 28 15 36.8 _bin/cxx-opt+nopool/osh mut+alloc
29 25 4 10.4 _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
97 94 2 3.5 bash -
180 149 30 57.0 bumpleak/osh mut
185 147 37 57.9 _bin/cxx-opt+bumproot/osh mut
198 156 42 57.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
200 162 38 49.3 osh-native mut+alloc
213 184 29 51.4 osh-native mut+alloc+free
177 155 21 9.7 osh-native mut+alloc+free+gc
177 149 29 9.6 osh-native mut+alloc+free+gc+exit
208 174 34 49.7 osh-nosouffle mut+alloc
220 178 42 51.8 osh-nosouffle mut+alloc+free
183 167 16 10.0 osh-nosouffle mut+alloc+free+gc
182 160 22 10.2 osh-nosouffle mut+alloc+free+gc+exit
231 166 65 64.7 _bin/cxx-opt+nopool/osh mut+alloc
227 208 19 11.2 _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
8 5 3 4.1 dash -
14 8 7 4.8 bash -
13 6 7 4.1 zsh -
19 7 12 14.0 bumpleak/osh mut
18 5 13 13.1 _bin/cxx-opt+bumproot/osh mut
18 7 11 14.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
18 8 10 12.1 osh-native mut+alloc
20 10 10 12.3 osh-native mut+alloc+free
20 10 10 9.8 osh-native mut+alloc+free+gc
21 14 7 10.1 osh-native mut+alloc+free+gc+exit
21 11 10 12.8 osh-nosouffle mut+alloc
21 7 15 12.8 osh-nosouffle mut+alloc+free
22 10 12 10.5 osh-nosouffle mut+alloc+free+gc
21 11 10 10.6 osh-nosouffle mut+alloc+free+gc+exit
21 13 8 13.7 _bin/cxx-opt+nopool/osh mut+alloc
23 11 13 11.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc