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,266 1,282 6 413,148 5 206,574 osh-native
parse.configure-cpython 37 4 11 12.0 18.7 471,266 1,282 6 413,156 5 206,578 osh-nosouffle
parse.configure-coreutils 135 24 62 45.9 51.6 1,638,005 4,764 12 1,056,646 6 787,844 osh-native
parse.configure-coreutils 145 25 63 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 10 1 2 2.6 9.2 102,794 180 3 86,642 1 43,321 osh-nosouffle
ex.compute-fib 20 0 1 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.7 572,118 22,608 12 50,000 0 2,989 osh-nosouffle
ex.bashcomp-parse-help 222 0 3 11.6 9.2 990,264 15,258 21 50,000 0 3,966 osh-native
ex.bashcomp-parse-help 231 0 4 11.6 9.7 990,263 15,258 21 50,000 0 3,968 osh-nosouffle
ex.abuild-print-help 20 1 2 3.0 9.6 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 6 1 1.7 dash -
13 12 1 3.4 bash -
92 50 49 3.5 zsh -
16 12 4 28.6 bumpleak/osh mut
16 11 5 29.6 _bin/cxx-opt+bumproot/osh mut
19 11 8 29.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 16 9 25.4 osh-native mut+alloc
27 19 8 25.8 osh-native mut+alloc+free
31 25 6 18.2 osh-native mut+alloc+free+gc
35 28 7 18.4 osh-native mut+alloc+free+gc+exit
28 18 10 25.8 osh-nosouffle mut+alloc
30 19 11 26.5 osh-nosouffle mut+alloc+free
37 31 6 18.7 osh-nosouffle mut+alloc+free+gc
36 32 4 18.6 osh-nosouffle mut+alloc+free+gc+exit
40 21 19 32.6 _bin/cxx-opt+nopool/osh mut+alloc
45 35 10 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 22 1 1.7 dash -
42 42 0 3.4 bash -
325 195 153 3.7 zsh -
46 37 9 86.1 bumpleak/osh mut
49 41 8 85.6 _bin/cxx-opt+bumproot/osh mut
59 50 9 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
82 49 33 73.8 osh-native mut+alloc
90 57 33 75.7 osh-native mut+alloc+free
135 111 24 51.6 osh-native mut+alloc+free+gc
138 117 21 52.4 osh-native mut+alloc+free+gc+exit
91 66 25 74.2 osh-nosouffle mut+alloc
104 61 43 75.9 osh-nosouffle mut+alloc+free
145 120 25 52.3 osh-nosouffle mut+alloc+free+gc
153 130 23 52.9 osh-nosouffle mut+alloc+free+gc+exit
125 83 42 98.5 _bin/cxx-opt+nopool/osh mut+alloc
193 151 42 73.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 3 1 3.1 bash -
6 4 2 3.3 zsh -
6 5 1 11.8 bumpleak/osh mut
6 2 3 12.5 _bin/cxx-opt+bumproot/osh mut
6 3 3 11.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 2 10.6 osh-native mut+alloc
8 2 6 10.7 osh-native mut+alloc+free
9 6 3 8.8 osh-native mut+alloc+free+gc
9 8 1 8.8 osh-native mut+alloc+free+gc+exit
9 4 5 10.9 osh-nosouffle mut+alloc
9 2 7 11.0 osh-nosouffle mut+alloc+free
10 8 2 9.2 osh-nosouffle mut+alloc+free+gc
10 7 3 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 7 4 11.9 _bin/cxx-opt+nopool/osh mut+alloc
11 9 3 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 9 0 1.4 dash -
33 32 1 3.1 bash -
21 15 6 3.3 zsh -
17 12 5 33.3 bumpleak/osh mut
18 16 2 33.6 _bin/cxx-opt+bumproot/osh mut
21 18 3 32.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 15 16 26.7 osh-native mut+alloc
30 20 10 27.0 osh-native mut+alloc+free
20 19 1 8.3 osh-native mut+alloc+free+gc
20 17 3 8.4 osh-native mut+alloc+free+gc+exit
33 22 11 27.3 osh-nosouffle mut+alloc
36 25 11 27.5 osh-nosouffle mut+alloc+free
25 22 3 8.7 osh-nosouffle mut+alloc+free+gc
25 23 2 8.8 osh-nosouffle mut+alloc+free+gc+exit
46 29 18 36.6 _bin/cxx-opt+nopool/osh mut+alloc
29 25 4 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 100 4 3.5 bash -
211 145 66 57.1 bumpleak/osh mut
222 163 59 57.6 _bin/cxx-opt+bumproot/osh mut
240 173 67 58.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
262 186 77 48.9 osh-native mut+alloc
264 189 75 50.7 osh-native mut+alloc+free
222 173 49 9.2 osh-native mut+alloc+free+gc
224 174 50 9.0 osh-native mut+alloc+free+gc+exit
266 199 67 49.3 osh-nosouffle mut+alloc
271 203 68 51.3 osh-nosouffle mut+alloc+free
231 172 59 9.7 osh-nosouffle mut+alloc+free+gc
244 199 45 9.3 osh-nosouffle mut+alloc+free+gc+exit
277 204 73 65.0 _bin/cxx-opt+nopool/osh mut+alloc
261 204 57 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
12 5 8 3.8 dash -
16 10 6 4.6 bash -
15 8 8 3.9 zsh -
17 8 10 14.2 bumpleak/osh mut
19 11 9 13.2 _bin/cxx-opt+bumproot/osh mut
18 14 5 13.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 7 13 11.5 osh-native mut+alloc
20 10 11 11.7 osh-native mut+alloc+free
20 9 12 9.6 osh-native mut+alloc+free+gc
20 11 10 9.7 osh-native mut+alloc+free+gc+exit
21 10 11 12.2 osh-nosouffle mut+alloc
21 12 10 12.3 osh-nosouffle mut+alloc+free
21 14 7 10.1 osh-nosouffle mut+alloc+free+gc
22 10 12 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 8 15 13.1 _bin/cxx-opt+nopool/osh mut+alloc
23 12 12 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc