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 33 3 9 12.0 18.7 471,266 1,282 6 413,156 5 206,578 osh-nosouffle
parse.configure-coreutils 136 23 61 45.9 51.9 1,638,005 4,764 12 1,056,646 6 787,844 osh-native
parse.configure-coreutils 138 21 55 45.9 52.1 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.0 102,794 180 3 86,642 1 43,321 osh-nosouffle
ex.compute-fib 20 0 2 2.8 8.1 572,118 22,608 12 50,000 0 2,984 osh-native
ex.compute-fib 25 0 1 2.8 8.7 572,118 22,608 12 50,000 0 2,989 osh-nosouffle
ex.bashcomp-parse-help 222 0 4 11.6 9.0 990,264 15,258 21 50,000 0 3,966 osh-native
ex.bashcomp-parse-help 229 0 3 11.6 9.6 990,263 15,258 21 50,000 0 3,968 osh-nosouffle
ex.abuild-print-help 21 1 2 3.0 9.3 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 5 2 1.6 dash -
13 11 2 3.4 bash -
88 47 48 3.5 zsh -
15 13 2 29.2 bumpleak/osh mut
16 11 5 30.3 _bin/cxx-opt+bumproot/osh mut
19 14 5 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 17 8 25.4 osh-native mut+alloc
28 22 6 26.0 osh-native mut+alloc+free
32 25 7 18.2 osh-native mut+alloc+free+gc
32 26 6 18.4 osh-native mut+alloc+free+gc+exit
28 23 5 26.0 osh-nosouffle mut+alloc
29 15 15 26.2 osh-nosouffle mut+alloc+free
33 28 5 18.7 osh-nosouffle mut+alloc+free+gc
34 29 5 18.6 osh-nosouffle mut+alloc+free+gc+exit
39 27 12 33.7 _bin/cxx-opt+nopool/osh mut+alloc
46 36 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
25 24 1 1.7 dash -
42 41 1 3.5 bash -
322 187 157 3.7 zsh -
45 33 12 85.0 bumpleak/osh mut
49 39 10 84.8 _bin/cxx-opt+bumproot/osh mut
59 51 8 86.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
85 46 39 73.7 osh-native mut+alloc
92 62 30 75.6 osh-native mut+alloc+free
136 106 30 51.9 osh-native mut+alloc+free+gc
139 110 29 52.4 osh-native mut+alloc+free+gc+exit
92 54 38 74.1 osh-nosouffle mut+alloc
101 73 28 75.9 osh-nosouffle mut+alloc+free
138 109 29 52.1 osh-nosouffle mut+alloc+free+gc
142 122 20 52.8 osh-nosouffle mut+alloc+free+gc+exit
126 78 47 98.4 _bin/cxx-opt+nopool/osh mut+alloc
190 158 32 72.6 _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.6 dash -
4 4 0 3.1 bash -
6 6 0 3.4 zsh -
6 3 3 11.8 bumpleak/osh mut
6 4 3 12.2 _bin/cxx-opt+bumproot/osh mut
7 7 0 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 3 10.5 osh-native mut+alloc
8 6 2 10.7 osh-native mut+alloc+free
9 7 2 8.8 osh-native mut+alloc+free+gc
9 7 2 8.9 osh-native mut+alloc+free+gc+exit
8 6 2 11.0 osh-nosouffle mut+alloc
9 3 6 10.9 osh-nosouffle mut+alloc+free
9 7 3 9.0 osh-nosouffle mut+alloc+free+gc
10 6 4 9.4 osh-nosouffle mut+alloc+free+gc+exit
11 7 4 11.8 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 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
10 9 1 1.6 dash -
31 30 1 3.3 bash -
21 15 6 3.4 zsh -
16 11 5 32.6 bumpleak/osh mut
18 15 3 32.2 _bin/cxx-opt+bumproot/osh mut
20 15 6 33.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 21 7 26.7 osh-native mut+alloc
30 22 7 27.0 osh-native mut+alloc+free
20 16 4 8.1 osh-native mut+alloc+free+gc
20 17 3 8.3 osh-native mut+alloc+free+gc+exit
33 22 11 27.4 osh-nosouffle mut+alloc
35 19 16 27.6 osh-nosouffle mut+alloc+free
25 23 1 8.7 osh-nosouffle mut+alloc+free+gc
25 24 1 8.7 osh-nosouffle mut+alloc+free+gc+exit
46 27 18 36.7 _bin/cxx-opt+nopool/osh mut+alloc
30 28 2 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
103 100 3 3.3 bash -
210 162 49 57.9 bumpleak/osh mut
225 176 49 56.2 _bin/cxx-opt+bumproot/osh mut
240 186 54 57.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
255 173 81 48.8 osh-native mut+alloc
261 199 62 50.7 osh-native mut+alloc+free
222 170 52 9.0 osh-native mut+alloc+free+gc
225 174 51 8.9 osh-native mut+alloc+free+gc+exit
265 198 67 49.3 osh-nosouffle mut+alloc
271 199 72 51.3 osh-nosouffle mut+alloc+free
229 183 46 9.6 osh-nosouffle mut+alloc+free+gc
227 180 47 9.4 osh-nosouffle mut+alloc+free+gc+exit
278 208 70 65.1 _bin/cxx-opt+nopool/osh mut+alloc
247 203 44 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 -
15 9 7 4.8 bash -
15 7 8 3.9 zsh -
18 9 10 13.4 bumpleak/osh mut
17 11 7 14.4 _bin/cxx-opt+bumproot/osh mut
18 7 11 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 8 11 11.4 osh-native mut+alloc
20 9 12 11.7 osh-native mut+alloc+free
21 12 9 9.3 osh-native mut+alloc+free+gc
21 14 8 9.7 osh-native mut+alloc+free+gc+exit
21 7 14 12.2 osh-nosouffle mut+alloc
22 13 10 12.2 osh-nosouffle mut+alloc+free
21 12 10 10.1 osh-nosouffle mut+alloc+free+gc
22 11 11 10.2 osh-nosouffle mut+alloc+free+gc+exit
22 12 11 13.2 _bin/cxx-opt+nopool/osh mut+alloc
23 13 10 10.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc