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 33 4 10 12.0 18.4 471,252 1,282 6 413,132 5 206,566 osh-native
parse.configure-cpython 40 4 10 12.0 18.6 471,252 1,282 6 413,140 5 206,570 osh-nosouffle
parse.configure-coreutils 153 30 78 45.9 51.6 1,637,991 4,764 12 1,056,630 6 787,836 osh-native
parse.configure-coreutils 158 28 76 45.9 52.3 1,637,990 4,764 12 1,056,638 6 787,840 osh-nosouffle
parse.abuild 10 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.3 102,780 180 3 86,626 1 43,313 osh-nosouffle
ex.compute-fib 20 0 2 2.8 8.3 576,705 22,608 12 50,000 0 2,976 osh-native
ex.compute-fib 25 0 2 2.8 8.8 576,705 22,608 12 50,000 0 2,981 osh-nosouffle
ex.bashcomp-parse-help 221 0 4 11.6 9.2 990,260 15,258 21 50,000 0 3,957 osh-native
ex.bashcomp-parse-help 229 0 4 11.6 9.6 990,259 15,258 21 50,000 0 3,966 osh-nosouffle
ex.abuild-print-help 21 1 2 3.0 9.4 117,272 277 3 83,980 1 41,990 osh-native
ex.abuild-print-help 22 1 2 3.0 10.1 117,271 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 7 0 1.7 dash -
13 12 1 3.3 bash -
90 48 49 3.4 zsh -
16 14 2 30.1 bumpleak/osh mut
16 13 3 29.9 _bin/cxx-opt+bumproot/osh mut
20 14 6 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
27 16 11 25.3 osh-native mut+alloc
29 19 10 25.7 osh-native mut+alloc+free
33 25 9 18.4 osh-native mut+alloc+free+gc
34 23 11 18.5 osh-native mut+alloc+free+gc+exit
28 15 14 26.0 osh-nosouffle mut+alloc
31 24 7 26.3 osh-nosouffle mut+alloc+free
40 34 6 18.6 osh-nosouffle mut+alloc+free+gc
36 28 8 18.7 osh-nosouffle mut+alloc+free+gc+exit
39 21 18 32.4 _bin/cxx-opt+nopool/osh mut+alloc
47 31 16 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.7 dash -
51 50 1 3.3 bash -
327 189 160 3.7 zsh -
46 37 8 86.4 bumpleak/osh mut
49 40 9 85.4 _bin/cxx-opt+bumproot/osh mut
59 37 22 85.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
87 59 27 73.7 osh-native mut+alloc
93 59 34 75.6 osh-native mut+alloc+free
153 136 17 51.6 osh-native mut+alloc+free+gc
153 131 22 52.4 osh-native mut+alloc+free+gc+exit
94 60 33 74.1 osh-nosouffle mut+alloc
102 71 31 75.9 osh-nosouffle mut+alloc+free
158 139 19 52.3 osh-nosouffle mut+alloc+free+gc
167 147 20 52.8 osh-nosouffle mut+alloc+free+gc+exit
125 83 42 97.9 _bin/cxx-opt+nopool/osh mut+alloc
224 188 36 72.8 _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 2 1 3.1 bash -
7 4 2 3.4 zsh -
7 5 1 11.9 bumpleak/osh mut
7 6 1 12.2 _bin/cxx-opt+bumproot/osh mut
7 3 4 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 4 10.5 osh-native mut+alloc
9 9 0 10.6 osh-native mut+alloc+free
10 8 2 8.7 osh-native mut+alloc+free+gc
10 6 4 8.9 osh-native mut+alloc+free+gc+exit
9 5 4 11.0 osh-nosouffle mut+alloc
10 5 5 11.1 osh-nosouffle mut+alloc+free
10 7 3 9.3 osh-nosouffle mut+alloc+free+gc
10 8 3 9.3 osh-nosouffle mut+alloc+free+gc+exit
12 5 7 11.8 _bin/cxx-opt+nopool/osh mut+alloc
13 9 4 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 30 1 3.1 bash -
21 16 6 3.5 zsh -
17 15 2 33.1 bumpleak/osh mut
18 14 4 33.7 _bin/cxx-opt+bumproot/osh mut
21 16 5 33.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 21 7 27.0 osh-native mut+alloc
30 20 10 27.4 osh-native mut+alloc+free
20 18 2 8.3 osh-native mut+alloc+free+gc
21 19 2 8.3 osh-native mut+alloc+free+gc+exit
35 23 12 27.4 osh-nosouffle mut+alloc
35 24 11 27.7 osh-nosouffle mut+alloc+free
25 23 2 8.8 osh-nosouffle mut+alloc+free+gc
25 22 3 8.8 osh-nosouffle mut+alloc+free+gc+exit
46 30 16 36.5 _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 99 5 3.4 bash -
214 146 67 55.8 bumpleak/osh mut
224 170 54 56.1 _bin/cxx-opt+bumproot/osh mut
238 166 72 58.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
256 195 61 48.8 osh-native mut+alloc
264 201 63 50.7 osh-native mut+alloc+free
221 167 54 9.2 osh-native mut+alloc+free+gc
223 166 57 9.2 osh-native mut+alloc+free+gc+exit
262 186 76 49.3 osh-nosouffle mut+alloc
270 198 72 51.2 osh-nosouffle mut+alloc+free
229 190 39 9.6 osh-nosouffle mut+alloc+free+gc
229 182 47 9.6 osh-nosouffle mut+alloc+free+gc+exit
278 205 73 65.4 _bin/cxx-opt+nopool/osh mut+alloc
257 218 39 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 3 6 3.9 dash -
16 6 11 4.8 bash -
16 6 10 3.8 zsh -
18 8 10 14.2 bumpleak/osh mut
19 9 10 13.2 _bin/cxx-opt+bumproot/osh mut
19 10 10 14.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 9 12 11.5 osh-native mut+alloc
22 12 11 11.7 osh-native mut+alloc+free
21 11 11 9.4 osh-native mut+alloc+free+gc
22 12 10 9.6 osh-native mut+alloc+free+gc+exit
21 8 13 12.1 osh-nosouffle mut+alloc
22 9 14 12.1 osh-nosouffle mut+alloc+free
22 10 13 10.1 osh-nosouffle mut+alloc+free+gc
23 9 15 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 12 13 13.1 _bin/cxx-opt+nopool/osh mut+alloc
25 16 9 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc