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 33 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 163 33 86 45.9 51.7 1,638,005 4,764 12 1,056,646 6 787,844 osh-native
parse.configure-coreutils 153 29 69 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.7 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.3 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.2 990,264 15,258 21 50,000 0 3,966 osh-native
ex.bashcomp-parse-help 227 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.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
7 7 0 1.8 dash -
13 12 1 3.3 bash -
92 58 40 3.5 zsh -
16 11 6 30.3 bumpleak/osh mut
17 14 3 30.4 _bin/cxx-opt+bumproot/osh mut
19 12 7 30.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
27 18 8 25.7 osh-native mut+alloc
28 15 13 25.8 osh-native mut+alloc+free
33 25 8 18.2 osh-native mut+alloc+free+gc
33 24 9 18.2 osh-native mut+alloc+free+gc+exit
28 17 12 25.8 osh-nosouffle mut+alloc
30 24 6 26.3 osh-nosouffle mut+alloc+free
33 27 7 18.7 osh-nosouffle mut+alloc+free+gc
34 28 6 18.6 osh-nosouffle mut+alloc+free+gc+exit
40 23 17 32.8 _bin/cxx-opt+nopool/osh mut+alloc
45 34 11 22.6 _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 -
43 43 0 3.4 bash -
341 181 183 3.7 zsh -
46 38 8 86.5 bumpleak/osh mut
51 41 10 85.6 _bin/cxx-opt+bumproot/osh mut
60 46 14 86.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
83 47 36 73.7 osh-native mut+alloc
94 51 43 75.6 osh-native mut+alloc+free
163 135 27 51.7 osh-native mut+alloc+free+gc
148 120 27 52.3 osh-native mut+alloc+free+gc+exit
92 62 29 74.1 osh-nosouffle mut+alloc
104 59 45 75.9 osh-nosouffle mut+alloc+free
153 132 21 52.3 osh-nosouffle mut+alloc+free+gc
167 139 28 52.8 osh-nosouffle mut+alloc+free+gc+exit
128 80 47 98.8 _bin/cxx-opt+nopool/osh mut+alloc
212 178 34 73.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 1 1 1.7 dash -
4 4 0 3.3 bash -
7 4 3 3.3 zsh -
6 4 3 11.3 bumpleak/osh mut
6 5 1 11.1 _bin/cxx-opt+bumproot/osh mut
7 5 2 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.5 osh-native mut+alloc
8 5 3 10.6 osh-native mut+alloc+free
9 6 3 8.7 osh-native mut+alloc+free+gc
9 7 2 8.9 osh-native mut+alloc+free+gc+exit
9 4 5 10.9 osh-nosouffle mut+alloc
9 5 4 11.0 osh-nosouffle mut+alloc+free
9 7 2 9.0 osh-nosouffle mut+alloc+free+gc
10 7 3 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 4 7 11.9 _bin/cxx-opt+nopool/osh mut+alloc
12 9 3 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 -
30 29 1 3.3 bash -
21 12 9 3.4 zsh -
17 12 5 31.8 bumpleak/osh mut
18 13 5 32.0 _bin/cxx-opt+bumproot/osh mut
21 14 7 34.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 16 13 26.9 osh-native mut+alloc
31 22 9 27.1 osh-native mut+alloc+free
20 19 1 8.3 osh-native mut+alloc+free+gc
22 18 4 8.1 osh-native mut+alloc+free+gc+exit
33 18 15 27.3 osh-nosouffle mut+alloc
36 24 11 27.7 osh-nosouffle mut+alloc+free
25 23 2 8.7 osh-nosouffle mut+alloc+free+gc
25 22 3 8.7 osh-nosouffle mut+alloc+free+gc+exit
46 32 14 36.1 _bin/cxx-opt+nopool/osh mut+alloc
30 27 3 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
103 96 7 3.4 bash -
214 166 48 56.9 bumpleak/osh mut
222 173 49 56.5 _bin/cxx-opt+bumproot/osh mut
236 177 59 57.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
261 192 69 48.7 osh-native mut+alloc
269 199 70 50.7 osh-native mut+alloc+free
222 171 50 9.2 osh-native mut+alloc+free+gc
223 169 54 9.0 osh-native mut+alloc+free+gc+exit
319 233 87 49.3 osh-nosouffle mut+alloc
275 194 81 51.3 osh-nosouffle mut+alloc+free
227 177 50 9.6 osh-nosouffle mut+alloc+free+gc
227 184 43 9.8 osh-nosouffle mut+alloc+free+gc+exit
280 186 94 64.9 _bin/cxx-opt+nopool/osh mut+alloc
250 203 47 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 5 3.9 dash -
16 5 11 4.8 bash -
15 6 9 3.9 zsh -
19 9 10 13.7 bumpleak/osh mut
18 11 7 12.6 _bin/cxx-opt+bumproot/osh mut
18 8 11 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 10 10 11.5 osh-native mut+alloc
21 8 13 11.7 osh-native mut+alloc+free
20 13 8 9.6 osh-native mut+alloc+free+gc
21 10 11 9.6 osh-native mut+alloc+free+gc+exit
20 13 8 12.1 osh-nosouffle mut+alloc
22 8 15 12.1 osh-nosouffle mut+alloc+free
21 14 8 10.1 osh-nosouffle mut+alloc+free+gc
22 13 10 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 13 10 13.1 _bin/cxx-opt+nopool/osh mut+alloc
23 16 8 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc