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 31 3 9 12.0 18.2 471,276 1,282 6 413,160 5 206,580 osh-native
parse.configure-cpython 35 4 10 12.0 18.7 471,276 1,282 6 413,168 5 206,584 osh-nosouffle
parse.configure-coreutils 133 24 60 45.9 51.9 1,638,015 4,764 12 1,056,658 6 787,850 osh-native
parse.configure-coreutils 145 24 61 45.9 52.1 1,638,014 4,764 12 1,056,666 6 787,854 osh-nosouffle
parse.abuild 9 1 2 2.6 8.8 102,804 180 3 86,646 1 43,323 osh-native
parse.abuild 10 1 2 2.6 9.2 102,804 180 3 86,654 1 43,327 osh-nosouffle
ex.compute-fib 20 0 1 2.8 8.4 572,128 22,608 12 50,000 0 2,991 osh-native
ex.compute-fib 25 0 2 2.8 8.9 572,128 22,608 12 50,000 0 2,995 osh-nosouffle
ex.bashcomp-parse-help 229 0 4 11.6 9.2 990,274 15,258 21 50,000 0 3,968 osh-native
ex.bashcomp-parse-help 229 0 4 11.6 9.6 990,273 15,258 21 50,000 0 3,974 osh-nosouffle
ex.abuild-print-help 21 1 2 3.0 9.3 117,259 277 3 84,008 1 42,004 osh-native
ex.abuild-print-help 22 1 2 3.0 10.1 117,258 277 3 84,016 1 42,008 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 12 1 3.3 bash -
90 50 47 3.5 zsh -
16 10 5 30.0 bumpleak/osh mut
16 12 4 30.3 _bin/cxx-opt+bumproot/osh mut
19 15 4 29.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 15 11 25.4 osh-native mut+alloc
28 16 11 25.6 osh-native mut+alloc+free
31 25 6 18.2 osh-native mut+alloc+free+gc
32 26 6 18.2 osh-native mut+alloc+free+gc+exit
28 14 15 25.8 osh-nosouffle mut+alloc
30 22 8 26.3 osh-nosouffle mut+alloc+free
35 29 6 18.7 osh-nosouffle mut+alloc+free+gc
34 26 8 18.7 osh-nosouffle mut+alloc+free+gc+exit
39 21 18 32.8 _bin/cxx-opt+nopool/osh mut+alloc
46 37 9 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 -
42 42 0 3.5 bash -
325 174 175 3.7 zsh -
45 38 7 86.2 bumpleak/osh mut
47 37 10 86.1 _bin/cxx-opt+bumproot/osh mut
60 48 12 86.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
83 46 37 73.7 osh-native mut+alloc
93 52 41 75.5 osh-native mut+alloc+free
133 107 26 51.9 osh-native mut+alloc+free+gc
142 123 19 52.4 osh-native mut+alloc+free+gc+exit
93 57 36 74.3 osh-nosouffle mut+alloc
103 65 38 76.0 osh-nosouffle mut+alloc+free
145 123 22 52.1 osh-nosouffle mut+alloc+free+gc
151 127 23 52.8 osh-nosouffle mut+alloc+free+gc+exit
125 84 41 99.4 _bin/cxx-opt+nopool/osh mut+alloc
201 163 38 73.5 _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 3 1 3.1 bash -
6 3 3 3.5 zsh -
6 4 2 11.1 bumpleak/osh mut
6 3 2 12.9 _bin/cxx-opt+bumproot/osh mut
7 5 2 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 7 1 10.6 osh-native mut+alloc
8 4 4 10.6 osh-native mut+alloc+free
9 8 1 8.8 osh-native mut+alloc+free+gc
9 5 4 8.8 osh-native mut+alloc+free+gc+exit
9 5 4 11.0 osh-nosouffle mut+alloc
9 7 2 11.0 osh-nosouffle mut+alloc+free
10 5 5 9.2 osh-nosouffle mut+alloc+free+gc
10 9 1 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 6 5 11.9 _bin/cxx-opt+nopool/osh mut+alloc
12 7 5 9.7 _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 -
34 33 1 3.3 bash -
22 16 6 3.3 zsh -
17 9 8 32.0 bumpleak/osh mut
18 13 5 32.5 _bin/cxx-opt+bumproot/osh mut
21 14 6 33.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 19 12 26.9 osh-native mut+alloc
30 23 7 27.3 osh-native mut+alloc+free
20 15 5 8.4 osh-native mut+alloc+free+gc
20 19 1 8.1 osh-native mut+alloc+free+gc+exit
33 18 16 27.3 osh-nosouffle mut+alloc
35 22 13 27.5 osh-nosouffle mut+alloc+free
25 24 1 8.9 osh-nosouffle mut+alloc+free+gc
27 24 3 8.7 osh-nosouffle mut+alloc+free+gc+exit
49 33 16 36.2 _bin/cxx-opt+nopool/osh mut+alloc
29 26 3 9.8 _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 100 4 3.5 bash -
212 167 44 56.9 bumpleak/osh mut
224 164 60 56.9 _bin/cxx-opt+bumproot/osh mut
242 185 57 58.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
256 194 63 48.8 osh-native mut+alloc
282 211 71 50.7 osh-native mut+alloc+free
229 177 51 9.2 osh-native mut+alloc+free+gc
228 186 42 9.0 osh-native mut+alloc+free+gc+exit
265 179 86 49.2 osh-nosouffle mut+alloc
274 219 55 51.3 osh-nosouffle mut+alloc+free
229 184 45 9.6 osh-nosouffle mut+alloc+free+gc
228 172 56 9.7 osh-nosouffle mut+alloc+free+gc+exit
284 197 87 64.6 _bin/cxx-opt+nopool/osh mut+alloc
250 189 61 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 8 8 4.7 bash -
16 7 9 3.9 zsh -
18 8 10 12.7 bumpleak/osh mut
18 9 10 13.0 _bin/cxx-opt+bumproot/osh mut
20 6 14 14.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 9 11 11.5 osh-native mut+alloc
20 12 9 11.7 osh-native mut+alloc+free
21 12 9 9.3 osh-native mut+alloc+free+gc
21 11 10 9.7 osh-native mut+alloc+free+gc+exit
22 7 16 12.2 osh-nosouffle mut+alloc
22 11 12 12.2 osh-nosouffle mut+alloc+free
22 11 11 10.1 osh-nosouffle mut+alloc+free+gc
22 14 8 10.2 osh-nosouffle mut+alloc+free+gc+exit
24 8 16 13.1 _bin/cxx-opt+nopool/osh mut+alloc
24 13 11 10.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc