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.2 471,252 1,282 6 413,132 5 206,566 osh-native
parse.configure-cpython 45 4 14 12.0 18.7 471,252 1,282 6 413,140 5 206,570 osh-nosouffle
parse.configure-coreutils 147 27 72 45.9 51.7 1,637,991 4,764 12 1,056,630 6 787,836 osh-native
parse.configure-coreutils 153 28 69 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.5 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 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.7 576,705 22,608 12 50,000 0 2,981 osh-nosouffle
ex.bashcomp-parse-help 223 0 4 11.6 9.0 990,260 15,258 21 50,000 0 3,957 osh-native
ex.bashcomp-parse-help 230 0 4 11.6 9.4 990,259 15,258 21 50,000 0 3,966 osh-nosouffle
ex.abuild-print-help 21 1 2 3.0 9.4 117,247 277 3 83,980 1 41,990 osh-native
ex.abuild-print-help 23 1 2 3.0 10.0 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 7 0 1.6 dash -
13 12 1 3.1 bash -
92 56 43 3.4 zsh -
15 10 6 29.9 bumpleak/osh mut
17 12 5 29.5 _bin/cxx-opt+bumproot/osh mut
20 12 8 29.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 12 14 25.4 osh-native mut+alloc
28 16 12 25.8 osh-native mut+alloc+free
33 23 10 18.2 osh-native mut+alloc+free+gc
34 20 13 18.2 osh-native mut+alloc+free+gc+exit
30 11 19 25.8 osh-nosouffle mut+alloc
35 24 11 26.3 osh-nosouffle mut+alloc+free
45 36 9 18.7 osh-nosouffle mut+alloc+free+gc
36 28 8 18.7 osh-nosouffle mut+alloc+free+gc+exit
40 28 12 32.4 _bin/cxx-opt+nopool/osh mut+alloc
48 39 9 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 22 1 1.7 dash -
42 42 0 3.5 bash -
329 194 159 3.7 zsh -
50 42 8 85.1 bumpleak/osh mut
49 39 10 85.7 _bin/cxx-opt+bumproot/osh mut
59 46 13 86.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
85 59 26 73.6 osh-native mut+alloc
91 62 29 75.4 osh-native mut+alloc+free
147 126 21 51.7 osh-native mut+alloc+free+gc
155 126 29 52.5 osh-native mut+alloc+free+gc+exit
98 65 33 74.1 osh-nosouffle mut+alloc
103 67 36 75.7 osh-nosouffle mut+alloc+free
153 127 26 52.3 osh-nosouffle mut+alloc+free+gc
167 141 25 52.8 osh-nosouffle mut+alloc+free+gc+exit
124 72 52 99.5 _bin/cxx-opt+nopool/osh mut+alloc
217 184 33 74.0 _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 4 0 3.1 bash -
7 4 3 3.3 zsh -
6 4 2 12.8 bumpleak/osh mut
6 2 4 12.9 _bin/cxx-opt+bumproot/osh mut
7 4 4 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 2 10.7 osh-native mut+alloc
9 5 4 10.6 osh-native mut+alloc+free
10 7 3 8.5 osh-native mut+alloc+free+gc
10 8 2 8.9 osh-native mut+alloc+free+gc+exit
9 5 4 11.0 osh-nosouffle mut+alloc
9 6 4 11.0 osh-nosouffle mut+alloc+free
10 9 1 9.0 osh-nosouffle mut+alloc+free+gc
10 8 3 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 6 6 11.8 _bin/cxx-opt+nopool/osh mut+alloc
13 9 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
10 9 1 1.4 dash -
31 31 0 3.3 bash -
21 17 5 3.4 zsh -
18 13 5 33.2 bumpleak/osh mut
19 15 4 32.5 _bin/cxx-opt+bumproot/osh mut
21 18 4 32.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 17 11 27.0 osh-native mut+alloc
31 18 13 27.3 osh-native mut+alloc+free
20 15 5 8.3 osh-native mut+alloc+free+gc
20 18 2 8.3 osh-native mut+alloc+free+gc+exit
34 20 14 27.4 osh-nosouffle mut+alloc
36 25 11 27.7 osh-nosouffle mut+alloc+free
25 23 2 8.7 osh-nosouffle mut+alloc+free+gc
26 22 4 8.7 osh-nosouffle mut+alloc+free+gc+exit
46 30 16 36.3 _bin/cxx-opt+nopool/osh mut+alloc
30 25 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 102 2 3.4 bash -
214 152 62 56.2 bumpleak/osh mut
223 184 39 56.4 _bin/cxx-opt+bumproot/osh mut
238 159 79 57.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
259 186 73 48.6 osh-native mut+alloc
265 190 75 50.8 osh-native mut+alloc+free
223 172 51 9.0 osh-native mut+alloc+free+gc
223 177 46 9.0 osh-native mut+alloc+free+gc+exit
262 195 67 49.3 osh-nosouffle mut+alloc
268 202 66 51.3 osh-nosouffle mut+alloc+free
230 183 47 9.4 osh-nosouffle mut+alloc+free+gc
228 172 56 9.4 osh-nosouffle mut+alloc+free+gc+exit
278 184 94 64.6 _bin/cxx-opt+nopool/osh mut+alloc
256 210 46 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 4 3.9 dash -
16 9 7 4.8 bash -
16 8 9 3.9 zsh -
18 9 10 14.0 bumpleak/osh mut
19 8 11 13.1 _bin/cxx-opt+bumproot/osh mut
20 10 11 13.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 8 12 11.5 osh-native mut+alloc
22 10 12 11.7 osh-native mut+alloc+free
21 11 10 9.4 osh-native mut+alloc+free+gc
22 13 10 9.6 osh-native mut+alloc+free+gc+exit
21 11 11 12.1 osh-nosouffle mut+alloc
23 6 17 12.3 osh-nosouffle mut+alloc+free
23 9 14 10.0 osh-nosouffle mut+alloc+free+gc
23 14 9 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 11 13 12.9 _bin/cxx-opt+nopool/osh mut+alloc
25 13 12 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc