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.2 471,252 1,282 6 413,132 5 206,566 osh-native
parse.configure-cpython 34 3 9 12.0 18.6 471,252 1,282 6 413,140 5 206,570 osh-nosouffle
parse.configure-coreutils 132 26 60 45.9 51.7 1,637,991 4,764 12 1,056,630 6 787,836 osh-native
parse.configure-coreutils 143 24 59 45.9 52.1 1,637,990 4,764 12 1,056,638 6 787,840 osh-nosouffle
parse.abuild 10 1 2 2.6 8.5 102,780 180 3 86,618 1 43,309 osh-native
parse.abuild 9 1 2 2.6 9.2 102,780 180 3 86,626 1 43,313 osh-nosouffle
ex.compute-fib 20 0 2 2.8 8.4 576,705 22,608 12 50,000 0 2,976 osh-native
ex.compute-fib 25 0 1 2.8 8.7 576,705 22,608 12 50,000 0 2,981 osh-nosouffle
ex.bashcomp-parse-help 221 0 3 11.6 9.0 990,260 15,258 21 50,000 0 3,957 osh-native
ex.bashcomp-parse-help 227 0 3 11.6 9.7 990,259 15,258 21 50,000 0 3,966 osh-nosouffle
ex.abuild-print-help 20 1 2 3.0 9.6 117,247 277 3 83,980 1 41,990 osh-native
ex.abuild-print-help 21 1 2 3.0 10.1 117,246 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.4 bash -
88 47 48 3.5 zsh -
15 9 6 30.3 bumpleak/osh mut
17 11 6 30.6 _bin/cxx-opt+bumproot/osh mut
19 11 8 29.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 13 12 25.4 osh-native mut+alloc
27 14 13 25.7 osh-native mut+alloc+free
32 27 5 18.2 osh-native mut+alloc+free+gc
32 25 7 18.4 osh-native mut+alloc+free+gc+exit
28 17 11 26.0 osh-nosouffle mut+alloc
30 23 7 26.2 osh-nosouffle mut+alloc+free
34 28 5 18.6 osh-nosouffle mut+alloc+free+gc
34 29 5 18.9 osh-nosouffle mut+alloc+free+gc+exit
39 28 11 32.9 _bin/cxx-opt+nopool/osh mut+alloc
45 37 8 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 22 1 1.7 dash -
42 39 3 3.4 bash -
327 184 164 3.7 zsh -
46 37 9 84.3 bumpleak/osh mut
49 39 10 86.3 _bin/cxx-opt+bumproot/osh mut
59 48 11 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
81 51 30 73.5 osh-native mut+alloc
91 58 33 75.4 osh-native mut+alloc+free
132 111 21 51.7 osh-native mut+alloc+free+gc
135 111 24 52.4 osh-native mut+alloc+free+gc+exit
91 58 33 74.2 osh-nosouffle mut+alloc
100 69 31 76.0 osh-nosouffle mut+alloc+free
143 121 21 52.1 osh-nosouffle mut+alloc+free+gc
146 121 25 52.8 osh-nosouffle mut+alloc+free+gc+exit
128 70 58 99.2 _bin/cxx-opt+nopool/osh mut+alloc
194 160 34 72.3 _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 2 2 3.1 bash -
6 2 4 3.4 zsh -
6 4 3 12.3 bumpleak/osh mut
6 4 2 12.8 _bin/cxx-opt+bumproot/osh mut
7 4 3 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 2 10.4 osh-native mut+alloc
8 6 2 10.6 osh-native mut+alloc+free
10 7 3 8.5 osh-native mut+alloc+free+gc
9 7 2 8.8 osh-native mut+alloc+free+gc+exit
8 3 5 10.9 osh-nosouffle mut+alloc
9 5 4 11.1 osh-nosouffle mut+alloc+free
9 6 3 9.2 osh-nosouffle mut+alloc+free+gc
10 7 2 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 8 3 12.0 _bin/cxx-opt+nopool/osh mut+alloc
12 7 4 9.4 _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.4 dash -
30 30 0 3.3 bash -
21 17 4 3.5 zsh -
17 14 3 33.4 bumpleak/osh mut
18 13 5 32.3 _bin/cxx-opt+bumproot/osh mut
21 17 4 33.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 15 13 27.1 osh-native mut+alloc
31 22 8 27.1 osh-native mut+alloc+free
20 19 1 8.4 osh-native mut+alloc+free+gc
19 18 1 8.3 osh-native mut+alloc+free+gc+exit
33 24 9 27.4 osh-nosouffle mut+alloc
35 21 14 27.7 osh-nosouffle mut+alloc+free
25 22 3 8.7 osh-nosouffle mut+alloc+free+gc
24 21 3 8.5 osh-nosouffle mut+alloc+free+gc+exit
45 30 15 36.3 _bin/cxx-opt+nopool/osh mut+alloc
29 27 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
103 99 4 3.4 bash -
214 163 50 58.0 bumpleak/osh mut
219 170 49 57.2 _bin/cxx-opt+bumproot/osh mut
237 181 56 57.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
255 202 52 48.8 osh-native mut+alloc
264 194 70 50.7 osh-native mut+alloc+free
221 171 50 9.0 osh-native mut+alloc+free+gc
220 173 47 9.2 osh-native mut+alloc+free+gc+exit
262 192 69 49.2 osh-nosouffle mut+alloc
266 195 72 51.4 osh-nosouffle mut+alloc+free
227 177 50 9.7 osh-nosouffle mut+alloc+free+gc
227 184 43 9.3 osh-nosouffle mut+alloc+free+gc+exit
276 200 77 64.8 _bin/cxx-opt+nopool/osh mut+alloc
250 204 46 10.7 _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 -
15 8 8 4.7 bash -
15 6 10 3.9 zsh -
17 8 9 14.1 bumpleak/osh mut
18 7 11 12.7 _bin/cxx-opt+bumproot/osh mut
18 5 14 14.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 12 8 11.7 osh-native mut+alloc
20 9 12 11.7 osh-native mut+alloc+free
20 14 7 9.6 osh-native mut+alloc+free+gc
21 11 10 9.6 osh-native mut+alloc+free+gc+exit
21 7 14 12.2 osh-nosouffle mut+alloc
21 14 8 12.2 osh-nosouffle mut+alloc+free
21 11 10 10.1 osh-nosouffle mut+alloc+free+gc
21 14 8 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 12 11 13.0 _bin/cxx-opt+nopool/osh mut+alloc
23 10 14 10.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc