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 4 10 12.0 18.2 471,266 1,282 6 413,148 5 206,574 osh-native
parse.configure-cpython 34 4 10 12.0 18.6 471,266 1,282 6 413,156 5 206,578 osh-nosouffle
parse.configure-coreutils 134 23 60 45.9 51.9 1,638,005 4,764 12 1,056,646 6 787,844 osh-native
parse.configure-coreutils 142 24 60 45.9 52.3 1,638,004 4,764 12 1,056,654 6 787,848 osh-nosouffle
parse.abuild 9 1 2 2.6 8.8 102,794 180 3 86,634 1 43,317 osh-native
parse.abuild 9 1 2 2.6 9.2 102,794 180 3 86,642 1 43,321 osh-nosouffle
ex.compute-fib 20 0 2 2.8 8.3 572,118 22,608 12 50,000 0 2,984 osh-native
ex.compute-fib 25 0 2 2.8 8.8 572,118 22,608 12 50,000 0 2,989 osh-nosouffle
ex.bashcomp-parse-help 221 0 4 11.6 9.2 990,264 15,258 21 50,000 0 3,966 osh-native
ex.bashcomp-parse-help 228 0 3 11.6 9.6 990,263 15,258 21 50,000 0 3,968 osh-nosouffle
ex.abuild-print-help 20 1 2 3.0 9.4 117,222 277 3 83,996 1 41,998 osh-native
ex.abuild-print-help 21 1 2 3.0 10.1 117,221 277 3 84,004 1 42,002 osh-nosouffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 7 0 1.7 dash -
13 12 1 3.4 bash -
90 50 47 3.7 zsh -
17 13 4 29.0 bumpleak/osh mut
16 13 3 30.2 _bin/cxx-opt+bumproot/osh mut
19 15 4 31.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 13 12 25.4 osh-native mut+alloc
28 20 8 25.7 osh-native mut+alloc+free
32 25 7 18.2 osh-native mut+alloc+free+gc
33 24 9 18.4 osh-native mut+alloc+free+gc+exit
28 21 7 26.0 osh-nosouffle mut+alloc
30 13 17 26.2 osh-nosouffle mut+alloc+free
34 27 7 18.6 osh-nosouffle mut+alloc+free+gc
35 32 3 18.7 osh-nosouffle mut+alloc+free+gc+exit
39 24 15 32.1 _bin/cxx-opt+nopool/osh mut+alloc
45 32 13 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.6 dash -
42 41 1 3.5 bash -
326 177 171 3.7 zsh -
45 39 6 86.3 bumpleak/osh mut
49 40 9 86.0 _bin/cxx-opt+bumproot/osh mut
60 50 10 86.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
83 54 29 73.7 osh-native mut+alloc
95 60 35 75.5 osh-native mut+alloc+free
134 112 22 51.9 osh-native mut+alloc+free+gc
144 115 29 52.5 osh-native mut+alloc+free+gc+exit
93 65 28 74.3 osh-nosouffle mut+alloc
99 62 37 76.0 osh-nosouffle mut+alloc+free
142 120 22 52.3 osh-nosouffle mut+alloc+free+gc
155 137 18 52.8 osh-nosouffle mut+alloc+free+gc+exit
127 83 44 97.9 _bin/cxx-opt+nopool/osh mut+alloc
190 156 34 72.9 _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.8 dash -
4 3 1 3.3 bash -
6 2 4 3.4 zsh -
6 2 4 12.8 bumpleak/osh mut
6 6 0 13.2 _bin/cxx-opt+bumproot/osh mut
7 6 1 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.5 osh-native mut+alloc
8 4 4 10.7 osh-native mut+alloc+free
9 5 4 8.8 osh-native mut+alloc+free+gc
9 7 2 8.8 osh-native mut+alloc+free+gc+exit
8 4 4 10.9 osh-nosouffle mut+alloc
9 6 2 11.0 osh-nosouffle mut+alloc+free
9 7 3 9.2 osh-nosouffle mut+alloc+free+gc
10 8 2 9.4 osh-nosouffle mut+alloc+free+gc+exit
11 7 4 11.9 _bin/cxx-opt+nopool/osh mut+alloc
12 6 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
10 9 1 1.6 dash -
31 30 1 3.1 bash -
21 15 6 3.4 zsh -
16 12 4 32.0 bumpleak/osh mut
18 15 3 32.5 _bin/cxx-opt+bumproot/osh mut
21 18 3 33.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 17 11 27.1 osh-native mut+alloc
30 20 9 27.3 osh-native mut+alloc+free
20 20 0 8.3 osh-native mut+alloc+free+gc
20 17 3 8.1 osh-native mut+alloc+free+gc+exit
33 23 10 27.3 osh-nosouffle mut+alloc
35 24 10 27.5 osh-nosouffle mut+alloc+free
25 20 5 8.8 osh-nosouffle mut+alloc+free+gc
25 24 1 8.7 osh-nosouffle mut+alloc+free+gc+exit
46 27 19 36.2 _bin/cxx-opt+nopool/osh mut+alloc
29 24 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 -
212 162 50 57.2 bumpleak/osh mut
221 173 48 56.6 _bin/cxx-opt+bumproot/osh mut
237 173 64 56.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
255 185 70 48.9 osh-native mut+alloc
262 188 74 50.9 osh-native mut+alloc+free
221 164 57 9.2 osh-native mut+alloc+free+gc
221 175 46 9.0 osh-native mut+alloc+free+gc+exit
263 188 75 49.3 osh-nosouffle mut+alloc
270 196 74 51.4 osh-nosouffle mut+alloc+free
228 178 50 9.6 osh-nosouffle mut+alloc+free+gc
227 175 52 9.4 osh-nosouffle mut+alloc+free+gc+exit
278 197 81 64.2 _bin/cxx-opt+nopool/osh mut+alloc
251 203 48 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 2 7 4.1 dash -
16 8 9 4.8 bash -
15 9 7 3.9 zsh -
18 8 10 12.9 bumpleak/osh mut
17 7 11 12.7 _bin/cxx-opt+bumproot/osh mut
19 7 13 14.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 12 7 11.5 osh-native mut+alloc
20 11 10 11.8 osh-native mut+alloc+free
20 10 11 9.4 osh-native mut+alloc+free+gc
21 13 8 9.7 osh-native mut+alloc+free+gc+exit
20 13 7 12.2 osh-nosouffle mut+alloc
21 7 14 12.3 osh-nosouffle mut+alloc+free
21 13 9 10.1 osh-nosouffle mut+alloc+free+gc
22 10 12 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 11 12 13.2 _bin/cxx-opt+nopool/osh mut+alloc
23 11 12 10.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc