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 35 5 12 12.0 18.0 471,252 1,282 6 413,132 5 206,566 osh-native
parse.configure-cpython 35 4 11 12.0 18.7 471,252 1,282 6 413,140 5 206,570 osh-nosouffle
parse.configure-coreutils 151 27 76 45.9 51.9 1,637,991 4,764 12 1,056,630 6 787,836 osh-native
parse.configure-coreutils 157 27 73 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.7 102,780 180 3 86,618 1 43,309 osh-native
parse.abuild 10 1 2 2.6 9.0 102,780 180 3 86,626 1 43,313 osh-nosouffle
ex.compute-fib 21 0 2 2.8 8.1 572,104 22,608 12 50,000 0 2,977 osh-native
ex.compute-fib 25 0 2 2.8 8.5 572,104 22,608 12 50,000 0 2,981 osh-nosouffle
ex.bashcomp-parse-help 222 0 4 11.6 9.0 990,250 15,258 21 50,000 0 3,957 osh-native
ex.bashcomp-parse-help 227 0 4 11.6 9.7 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 23 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 7 0 1.7 dash -
13 11 2 3.1 bash -
91 56 43 3.5 zsh -
16 12 4 28.9 bumpleak/osh mut
17 11 6 30.0 _bin/cxx-opt+bumproot/osh mut
19 10 10 28.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 14 12 25.6 osh-native mut+alloc
28 20 8 25.7 osh-native mut+alloc+free
35 32 3 18.0 osh-native mut+alloc+free+gc
34 31 3 18.2 osh-native mut+alloc+free+gc+exit
28 19 9 25.8 osh-nosouffle mut+alloc
31 24 7 26.2 osh-nosouffle mut+alloc+free
35 28 7 18.7 osh-nosouffle mut+alloc+free+gc
36 26 10 18.7 osh-nosouffle mut+alloc+free+gc+exit
39 20 19 32.3 _bin/cxx-opt+nopool/osh mut+alloc
50 36 14 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 23 0 1.6 dash -
43 41 2 3.5 bash -
329 179 175 3.9 zsh -
47 35 12 85.7 bumpleak/osh mut
49 38 10 86.1 _bin/cxx-opt+bumproot/osh mut
59 48 11 85.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
84 46 37 73.8 osh-native mut+alloc
93 55 38 75.6 osh-native mut+alloc+free
151 125 26 51.9 osh-native mut+alloc+free+gc
159 135 24 52.5 osh-native mut+alloc+free+gc+exit
92 61 31 74.2 osh-nosouffle mut+alloc
100 59 41 76.1 osh-nosouffle mut+alloc+free
157 133 24 52.1 osh-nosouffle mut+alloc+free+gc
162 134 29 52.8 osh-nosouffle mut+alloc+free+gc+exit
128 84 44 98.9 _bin/cxx-opt+nopool/osh mut+alloc
215 182 33 72.7 _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.7 dash -
4 2 2 3.3 bash -
6 5 1 3.5 zsh -
6 3 3 13.1 bumpleak/osh mut
7 4 3 11.6 _bin/cxx-opt+bumproot/osh mut
7 6 1 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 2 6 10.5 osh-native mut+alloc
9 4 5 10.6 osh-native mut+alloc+free
10 7 3 8.7 osh-native mut+alloc+free+gc
10 7 3 8.9 osh-native mut+alloc+free+gc+exit
9 3 6 10.9 osh-nosouffle mut+alloc
9 5 5 11.0 osh-nosouffle mut+alloc+free
10 6 5 9.0 osh-nosouffle mut+alloc+free+gc
11 8 2 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 6 5 12.0 _bin/cxx-opt+nopool/osh mut+alloc
13 7 6 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 8 2 1.6 dash -
31 30 1 3.3 bash -
21 13 8 3.4 zsh -
17 12 5 33.6 bumpleak/osh mut
19 17 2 32.9 _bin/cxx-opt+bumproot/osh mut
21 15 6 34.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 23 6 27.0 osh-native mut+alloc
31 23 8 27.1 osh-native mut+alloc+free
21 18 2 8.1 osh-native mut+alloc+free+gc
20 17 3 8.3 osh-native mut+alloc+free+gc+exit
34 22 13 27.3 osh-nosouffle mut+alloc
36 25 11 27.5 osh-nosouffle mut+alloc+free
25 23 2 8.5 osh-nosouffle mut+alloc+free+gc
25 23 2 8.7 osh-nosouffle mut+alloc+free+gc+exit
48 32 16 36.2 _bin/cxx-opt+nopool/osh mut+alloc
31 26 5 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 101 3 3.5 bash -
213 156 57 56.8 bumpleak/osh mut
221 164 57 56.7 _bin/cxx-opt+bumproot/osh mut
243 186 57 57.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
258 182 76 48.8 osh-native mut+alloc
268 201 67 50.7 osh-native mut+alloc+free
222 168 54 9.0 osh-native mut+alloc+free+gc
222 178 44 9.0 osh-native mut+alloc+free+gc+exit
262 188 74 49.3 osh-nosouffle mut+alloc
275 206 69 51.3 osh-nosouffle mut+alloc+free
227 177 50 9.7 osh-nosouffle mut+alloc+free+gc
230 182 47 9.7 osh-nosouffle mut+alloc+free+gc+exit
282 201 81 64.2 _bin/cxx-opt+nopool/osh mut+alloc
258 224 34 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 5 5 4.1 dash -
16 11 6 4.7 bash -
16 5 11 4.2 zsh -
18 9 9 12.7 bumpleak/osh mut
20 7 13 13.5 _bin/cxx-opt+bumproot/osh mut
20 9 12 14.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 7 13 11.5 osh-native mut+alloc
21 10 12 11.7 osh-native mut+alloc+free
21 13 9 9.6 osh-native mut+alloc+free+gc
22 11 11 9.6 osh-native mut+alloc+free+gc+exit
21 8 14 12.1 osh-nosouffle mut+alloc
23 8 15 12.3 osh-nosouffle mut+alloc+free
23 12 11 10.0 osh-nosouffle mut+alloc+free+gc
23 10 14 10.1 osh-nosouffle mut+alloc+free+gc+exit
24 12 12 13.1 _bin/cxx-opt+nopool/osh mut+alloc
25 14 12 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc