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 3 10 12.0 18.2 471,252 1,282 6 413,132 5 206,566 osh-native
parse.configure-cpython 38 6 13 12.0 18.7 471,252 1,282 6 413,140 5 206,570 osh-nosouffle
parse.configure-coreutils 226 39 116 45.9 51.6 1,637,991 4,764 12 1,056,630 6 787,836 osh-native
parse.configure-coreutils 158 28 74 45.9 52.0 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 20 0 2 2.8 8.4 572,104 22,608 12 50,000 0 2,977 osh-native
ex.compute-fib 25 0 2 2.8 8.7 572,104 22,608 12 50,000 0 2,981 osh-nosouffle
ex.bashcomp-parse-help 224 0 4 11.6 9.0 990,250 15,258 21 50,000 0 3,957 osh-native
ex.bashcomp-parse-help 228 0 4 11.6 9.6 990,249 15,258 21 50,000 0 3,966 osh-nosouffle
ex.abuild-print-help 21 1 2 3.0 9.6 117,208 277 3 83,980 1 41,990 osh-native
ex.abuild-print-help 22 1 2 3.0 10.0 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.6 dash -
13 11 2 3.4 bash -
90 56 42 3.4 zsh -
16 10 5 30.0 bumpleak/osh mut
16 10 6 30.1 _bin/cxx-opt+bumproot/osh mut
19 16 3 30.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 19 7 25.6 osh-native mut+alloc
28 19 8 26.0 osh-native mut+alloc+free
32 23 9 18.2 osh-native mut+alloc+free+gc
33 26 6 18.3 osh-native mut+alloc+free+gc+exit
29 21 7 26.0 osh-nosouffle mut+alloc
31 20 11 26.2 osh-nosouffle mut+alloc+free
38 32 6 18.7 osh-nosouffle mut+alloc+free+gc
38 27 11 18.9 osh-nosouffle mut+alloc+free+gc+exit
39 28 11 32.2 _bin/cxx-opt+nopool/osh mut+alloc
47 36 11 22.6 _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 20 3 1.7 dash -
43 41 1 3.4 bash -
330 171 183 3.7 zsh -
47 40 7 85.7 bumpleak/osh mut
49 38 11 85.3 _bin/cxx-opt+bumproot/osh mut
60 47 13 86.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
84 49 35 73.7 osh-native mut+alloc
97 59 38 75.4 osh-native mut+alloc+free
226 198 28 51.6 osh-native mut+alloc+free+gc
149 125 24 52.4 osh-native mut+alloc+free+gc+exit
91 60 31 74.3 osh-nosouffle mut+alloc
102 71 31 75.9 osh-nosouffle mut+alloc+free
158 135 23 52.0 osh-nosouffle mut+alloc+free+gc
166 141 26 52.8 osh-nosouffle mut+alloc+free+gc+exit
129 73 57 99.0 _bin/cxx-opt+nopool/osh mut+alloc
215 171 44 71.1 _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.8 dash -
4 3 1 3.1 bash -
7 4 2 3.4 zsh -
6 4 2 11.7 bumpleak/osh mut
6 4 2 12.9 _bin/cxx-opt+bumproot/osh mut
8 3 4 13.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 2 6 10.4 osh-native mut+alloc
8 4 4 10.6 osh-native mut+alloc+free
9 6 3 8.7 osh-native mut+alloc+free+gc
9 6 4 8.9 osh-native mut+alloc+free+gc+exit
9 6 3 11.0 osh-nosouffle mut+alloc
9 7 2 11.0 osh-nosouffle mut+alloc+free
10 9 1 9.2 osh-nosouffle mut+alloc+free+gc
10 9 1 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 4 7 11.8 _bin/cxx-opt+nopool/osh mut+alloc
13 9 4 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
9 9 0 1.6 dash -
30 30 0 3.1 bash -
21 19 2 3.5 zsh -
17 14 3 31.6 bumpleak/osh mut
18 14 4 33.8 _bin/cxx-opt+bumproot/osh mut
22 17 5 32.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 18 11 27.1 osh-native mut+alloc
31 22 9 27.0 osh-native mut+alloc+free
20 17 3 8.4 osh-native mut+alloc+free+gc
20 19 1 8.1 osh-native mut+alloc+free+gc+exit
33 23 10 27.3 osh-nosouffle mut+alloc
36 24 12 27.5 osh-nosouffle mut+alloc+free
25 22 3 8.7 osh-nosouffle mut+alloc+free+gc
25 23 3 8.7 osh-nosouffle mut+alloc+free+gc+exit
46 30 16 36.5 _bin/cxx-opt+nopool/osh mut+alloc
30 29 1 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 100 3 3.5 bash -
213 153 60 56.2 bumpleak/osh mut
222 179 43 56.4 _bin/cxx-opt+bumproot/osh mut
240 183 57 56.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
260 196 64 48.8 osh-native mut+alloc
270 200 70 50.6 osh-native mut+alloc+free
224 179 45 9.0 osh-native mut+alloc+free+gc
223 169 54 8.9 osh-native mut+alloc+free+gc+exit
262 176 85 49.3 osh-nosouffle mut+alloc
270 205 65 51.3 osh-nosouffle mut+alloc+free
228 174 54 9.6 osh-nosouffle mut+alloc+free+gc
230 194 36 9.7 osh-nosouffle mut+alloc+free+gc+exit
281 209 72 65.2 _bin/cxx-opt+nopool/osh mut+alloc
252 205 47 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 7 10 4.7 bash -
16 8 9 4.1 zsh -
19 8 11 12.8 bumpleak/osh mut
20 9 12 13.5 _bin/cxx-opt+bumproot/osh mut
19 8 12 14.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 6 14 11.5 osh-native mut+alloc
21 10 12 11.7 osh-native mut+alloc+free
21 10 12 9.6 osh-native mut+alloc+free+gc
22 13 9 9.6 osh-native mut+alloc+free+gc+exit
21 10 12 11.9 osh-nosouffle mut+alloc
22 11 11 12.3 osh-nosouffle mut+alloc+free
22 10 13 10.0 osh-nosouffle mut+alloc+free+gc
23 12 12 10.2 osh-nosouffle mut+alloc+free+gc+exit
24 10 14 13.1 _bin/cxx-opt+nopool/osh mut+alloc
24 12 13 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc