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 6 13 12.0 18.2 471,269 1,282 6 413,154 5 206,577 osh-native
parse.configure-cpython 37 5 11 12.0 18.6 471,269 1,282 6 413,162 5 206,581 osh-nosouffle
parse.configure-coreutils 158 28 81 45.9 51.6 1,638,008 4,764 12 1,056,652 6 787,847 osh-native
parse.configure-coreutils 163 28 79 45.9 52.1 1,638,007 4,764 12 1,056,660 6 787,851 osh-nosouffle
parse.abuild 9 1 2 2.6 8.8 102,797 180 3 86,640 1 43,320 osh-native
parse.abuild 10 1 2 2.6 9.2 102,797 180 3 86,648 1 43,324 osh-nosouffle
ex.compute-fib 20 0 2 2.8 8.3 572,121 22,608 12 50,000 0 2,987 osh-native
ex.compute-fib 25 0 2 2.8 8.8 572,121 22,608 12 50,000 0 2,992 osh-nosouffle
ex.bashcomp-parse-help 239 0 4 11.6 9.2 990,267 15,258 21 50,000 0 3,965 osh-native
ex.bashcomp-parse-help 234 0 4 11.6 9.4 990,266 15,258 21 50,000 0 3,971 osh-nosouffle
ex.abuild-print-help 21 1 2 3.0 9.4 117,228 277 3 84,002 1 42,001 osh-native
ex.abuild-print-help 22 1 2 3.0 10.0 117,227 277 3 84,010 1 42,005 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 13 0 3.3 bash -
90 53 44 3.4 zsh -
16 13 3 29.9 bumpleak/osh mut
17 12 5 30.0 _bin/cxx-opt+bumproot/osh mut
20 17 3 29.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 17 8 25.6 osh-native mut+alloc
28 19 9 25.8 osh-native mut+alloc+free
35 28 7 18.2 osh-native mut+alloc+free+gc
35 29 6 18.4 osh-native mut+alloc+free+gc+exit
29 16 12 26.0 osh-nosouffle mut+alloc
31 20 11 26.3 osh-nosouffle mut+alloc+free
37 30 7 18.6 osh-nosouffle mut+alloc+free+gc
38 30 8 18.7 osh-nosouffle mut+alloc+free+gc+exit
39 22 17 32.1 _bin/cxx-opt+nopool/osh mut+alloc
51 40 11 22.5 _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.6 dash -
43 43 0 3.4 bash -
327 191 160 3.7 zsh -
46 34 12 86.5 bumpleak/osh mut
49 39 10 85.4 _bin/cxx-opt+bumproot/osh mut
60 47 14 86.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
84 48 36 73.5 osh-native mut+alloc
94 64 30 75.5 osh-native mut+alloc+free
158 133 25 51.6 osh-native mut+alloc+free+gc
166 143 23 52.4 osh-native mut+alloc+free+gc+exit
94 60 34 74.2 osh-nosouffle mut+alloc
104 79 25 76.2 osh-nosouffle mut+alloc+free
163 145 18 52.1 osh-nosouffle mut+alloc+free+gc
173 137 36 53.0 osh-nosouffle mut+alloc+free+gc+exit
129 80 48 98.0 _bin/cxx-opt+nopool/osh mut+alloc
231 196 35 72.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.7 dash -
4 3 1 3.1 bash -
7 4 2 3.5 zsh -
7 2 5 12.3 bumpleak/osh mut
7 3 4 12.3 _bin/cxx-opt+bumproot/osh mut
7 3 4 15.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.5 osh-native mut+alloc
9 5 4 10.7 osh-native mut+alloc+free
9 5 4 8.8 osh-native mut+alloc+free+gc
10 8 2 8.8 osh-native mut+alloc+free+gc+exit
9 7 2 11.0 osh-nosouffle mut+alloc
9 6 4 11.1 osh-nosouffle mut+alloc+free
10 8 2 9.2 osh-nosouffle mut+alloc+free+gc
10 9 1 9.2 osh-nosouffle mut+alloc+free+gc+exit
11 5 7 12.0 _bin/cxx-opt+nopool/osh mut+alloc
13 10 2 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 -
31 31 0 3.3 bash -
21 16 5 3.4 zsh -
17 13 4 32.8 bumpleak/osh mut
18 13 5 32.2 _bin/cxx-opt+bumproot/osh mut
21 17 4 33.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 18 11 26.9 osh-native mut+alloc
31 24 7 27.1 osh-native mut+alloc+free
20 18 2 8.3 osh-native mut+alloc+free+gc
20 17 3 8.5 osh-native mut+alloc+free+gc+exit
34 23 11 27.3 osh-nosouffle mut+alloc
38 24 14 27.5 osh-nosouffle mut+alloc+free
25 22 3 8.8 osh-nosouffle mut+alloc+free+gc
25 23 2 8.7 osh-nosouffle mut+alloc+free+gc+exit
46 23 23 36.1 _bin/cxx-opt+nopool/osh mut+alloc
31 24 7 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 97 7 3.4 bash -
214 162 52 56.5 bumpleak/osh mut
224 171 52 57.6 _bin/cxx-opt+bumproot/osh mut
260 211 49 57.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
260 189 71 48.8 osh-native mut+alloc
265 193 72 50.9 osh-native mut+alloc+free
239 193 46 9.2 osh-native mut+alloc+free+gc
223 181 42 9.2 osh-native mut+alloc+free+gc+exit
266 202 64 49.2 osh-nosouffle mut+alloc
276 200 76 51.4 osh-nosouffle mut+alloc+free
234 178 56 9.4 osh-nosouffle mut+alloc+free+gc
231 172 59 9.6 osh-nosouffle mut+alloc+free+gc+exit
283 206 77 64.9 _bin/cxx-opt+nopool/osh mut+alloc
261 206 55 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 10 7 4.7 bash -
16 5 11 4.1 zsh -
19 7 12 12.9 bumpleak/osh mut
20 7 13 13.8 _bin/cxx-opt+bumproot/osh mut
20 8 13 14.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 7 14 11.7 osh-native mut+alloc
21 9 13 11.7 osh-native mut+alloc+free
21 8 13 9.4 osh-native mut+alloc+free+gc
21 13 9 9.4 osh-native mut+alloc+free+gc+exit
20 9 12 12.1 osh-nosouffle mut+alloc
22 10 12 12.2 osh-nosouffle mut+alloc+free
22 12 10 10.0 osh-nosouffle mut+alloc+free+gc
22 13 10 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 10 13 13.1 _bin/cxx-opt+nopool/osh mut+alloc
24 11 14 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc