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 4 10 12.0 18.2 471,252 1,282 6 413,132 5 206,566 osh-native
parse.configure-cpython 37 3 10 12.0 18.9 471,252 1,282 6 413,140 5 206,570 osh-nosouffle
parse.configure-coreutils 134 23 61 45.9 51.6 1,637,991 4,764 12 1,056,630 6 787,836 osh-native
parse.configure-coreutils 152 26 68 45.9 52.3 1,637,990 4,764 12 1,056,638 6 787,840 osh-nosouffle
parse.abuild 9 1 2 2.6 8.8 102,780 180 3 86,618 1 43,309 osh-native
parse.abuild 9 1 2 2.6 9.0 102,780 180 3 86,626 1 43,313 osh-nosouffle
ex.compute-fib 20 0 1 2.8 8.3 576,705 22,608 12 50,000 0 2,976 osh-native
ex.compute-fib 25 0 1 2.8 8.8 576,705 22,608 12 50,000 0 2,981 osh-nosouffle
ex.bashcomp-parse-help 222 0 4 11.6 9.2 990,260 15,258 21 50,000 0 3,957 osh-native
ex.bashcomp-parse-help 228 0 4 11.6 9.6 990,259 15,258 21 50,000 0 3,966 osh-nosouffle
ex.abuild-print-help 20 1 2 3.0 9.4 117,247 277 3 83,980 1 41,990 osh-native
ex.abuild-print-help 21 1 2 3.0 10.1 117,246 277 3 83,988 1 41,994 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.6 dash -
13 12 1 3.4 bash -
88 45 50 3.5 zsh -
15 11 4 29.8 bumpleak/osh mut
17 14 3 29.2 _bin/cxx-opt+bumproot/osh mut
19 12 7 29.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 16 10 25.4 osh-native mut+alloc
27 16 11 25.8 osh-native mut+alloc+free
31 24 7 18.2 osh-native mut+alloc+free+gc
33 24 9 18.2 osh-native mut+alloc+free+gc+exit
29 17 12 26.0 osh-nosouffle mut+alloc
30 20 10 26.3 osh-nosouffle mut+alloc+free
37 32 5 18.9 osh-nosouffle mut+alloc+free+gc
36 26 10 18.6 osh-nosouffle mut+alloc+free+gc+exit
39 26 14 32.2 _bin/cxx-opt+nopool/osh mut+alloc
47 36 11 22.9 _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 41 1 3.5 bash -
326 175 175 3.7 zsh -
48 36 12 85.6 bumpleak/osh mut
48 43 5 84.8 _bin/cxx-opt+bumproot/osh mut
60 49 11 86.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
83 50 33 73.8 osh-native mut+alloc
91 56 36 75.6 osh-native mut+alloc+free
134 111 23 51.6 osh-native mut+alloc+free+gc
141 115 26 52.2 osh-native mut+alloc+free+gc+exit
93 64 28 74.2 osh-nosouffle mut+alloc
104 77 27 75.9 osh-nosouffle mut+alloc+free
152 134 17 52.3 osh-nosouffle mut+alloc+free+gc
159 138 21 52.8 osh-nosouffle mut+alloc+free+gc+exit
128 80 47 98.5 _bin/cxx-opt+nopool/osh mut+alloc
200 164 36 72.8 _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 3 1 3.1 bash -
6 3 3 3.3 zsh -
6 4 2 11.3 bumpleak/osh mut
7 4 2 12.5 _bin/cxx-opt+bumproot/osh mut
7 4 3 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.4 osh-native mut+alloc
8 4 4 10.6 osh-native mut+alloc+free
9 6 3 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 4 4 10.9 osh-nosouffle mut+alloc+free
9 7 2 9.0 osh-nosouffle mut+alloc+free+gc
10 5 5 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 5 6 11.9 _bin/cxx-opt+nopool/osh mut+alloc
12 10 2 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.4 dash -
31 29 2 3.3 bash -
21 14 7 3.4 zsh -
18 11 7 33.4 bumpleak/osh mut
19 14 5 33.7 _bin/cxx-opt+bumproot/osh mut
21 19 2 32.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 18 10 27.0 osh-native mut+alloc
30 22 8 27.4 osh-native mut+alloc+free
20 18 2 8.3 osh-native mut+alloc+free+gc
20 17 3 8.4 osh-native mut+alloc+free+gc+exit
33 20 14 27.4 osh-nosouffle mut+alloc
35 25 10 27.7 osh-nosouffle mut+alloc+free
25 21 4 8.8 osh-nosouffle mut+alloc+free+gc
25 23 2 8.8 osh-nosouffle mut+alloc+free+gc+exit
46 29 17 36.7 _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
102 99 3 3.5 bash -
214 159 55 57.8 bumpleak/osh mut
219 160 59 57.2 _bin/cxx-opt+bumproot/osh mut
240 181 59 58.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
255 183 72 48.8 osh-native mut+alloc
264 192 72 50.7 osh-native mut+alloc+free
222 165 57 9.2 osh-native mut+alloc+free+gc
221 166 55 9.2 osh-native mut+alloc+free+gc+exit
269 202 66 49.2 osh-nosouffle mut+alloc
269 195 74 51.1 osh-nosouffle mut+alloc+free
228 191 37 9.6 osh-nosouffle mut+alloc+free+gc
226 175 51 9.6 osh-nosouffle mut+alloc+free+gc+exit
277 188 89 65.1 _bin/cxx-opt+nopool/osh mut+alloc
252 194 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
9 5 4 3.9 dash -
16 10 7 4.8 bash -
15 8 8 3.9 zsh -
19 6 13 13.8 bumpleak/osh mut
18 8 10 12.5 _bin/cxx-opt+bumproot/osh mut
18 8 11 13.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 10 10 11.5 osh-native mut+alloc
21 9 12 11.8 osh-native mut+alloc+free
20 10 11 9.4 osh-native mut+alloc+free+gc
21 10 11 9.6 osh-native mut+alloc+free+gc+exit
20 12 9 11.8 osh-nosouffle mut+alloc
21 13 9 12.2 osh-nosouffle mut+alloc+free
21 10 12 10.1 osh-nosouffle mut+alloc+free+gc
22 13 10 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 13 11 13.2 _bin/cxx-opt+nopool/osh mut+alloc
23 14 10 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc