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 40 8 16 12.0 18.2 471,252 1,282 6 413,132 5 206,566 osh-native
parse.configure-cpython 38 6 13 12.0 18.7 471,252 1,282 6 413,140 5 206,570 osh-nosouffle
parse.configure-coreutils 151 28 76 45.9 51.6 1,637,991 4,764 12 1,056,630 6 787,836 osh-native
parse.configure-coreutils 163 28 78 45.9 52.3 1,637,990 4,764 12 1,056,638 6 787,840 osh-nosouffle
parse.abuild 10 1 2 2.6 8.7 102,780 180 3 86,618 1 43,309 osh-native
parse.abuild 10 1 2 2.6 9.2 102,780 180 3 86,626 1 43,313 osh-nosouffle
ex.compute-fib 21 0 2 2.8 8.3 576,705 22,608 12 50,000 0 2,976 osh-native
ex.compute-fib 26 0 2 2.8 8.7 576,705 22,608 12 50,000 0 2,981 osh-nosouffle
ex.bashcomp-parse-help 224 0 5 11.6 9.0 990,260 15,258 21 50,000 0 3,957 osh-native
ex.bashcomp-parse-help 235 0 6 11.6 9.4 990,259 15,258 21 50,000 0 3,966 osh-nosouffle
ex.abuild-print-help 22 1 2 3.0 9.4 117,247 277 3 83,980 1 41,990 osh-native
ex.abuild-print-help 23 1 2 3.0 9.8 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 11 2 3.3 bash -
92 46 54 3.5 zsh -
16 13 3 30.3 bumpleak/osh mut
17 11 6 29.2 _bin/cxx-opt+bumproot/osh mut
20 12 8 30.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 19 7 25.3 osh-native mut+alloc
28 18 10 25.7 osh-native mut+alloc+free
40 32 7 18.2 osh-native mut+alloc+free+gc
34 26 8 18.2 osh-native mut+alloc+free+gc+exit
29 18 11 25.8 osh-nosouffle mut+alloc
31 22 8 26.5 osh-nosouffle mut+alloc+free
38 32 6 18.7 osh-nosouffle mut+alloc+free+gc
40 30 10 18.7 osh-nosouffle mut+alloc+free+gc+exit
40 26 14 33.6 _bin/cxx-opt+nopool/osh mut+alloc
55 44 11 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 2 1.7 dash -
43 40 3 3.5 bash -
336 189 173 3.7 zsh -
46 36 10 84.8 bumpleak/osh mut
48 38 10 85.3 _bin/cxx-opt+bumproot/osh mut
59 46 13 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
84 53 31 73.7 osh-native mut+alloc
93 58 35 75.4 osh-native mut+alloc+free
151 131 20 51.6 osh-native mut+alloc+free+gc
162 137 25 52.4 osh-native mut+alloc+free+gc+exit
94 61 33 74.2 osh-nosouffle mut+alloc
104 76 27 76.0 osh-nosouffle mut+alloc+free
163 138 25 52.3 osh-nosouffle mut+alloc+free+gc
168 137 31 52.8 osh-nosouffle mut+alloc+free+gc+exit
127 81 46 99.2 _bin/cxx-opt+nopool/osh mut+alloc
228 196 32 71.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.6 dash -
4 4 0 3.3 bash -
7 4 3 3.4 zsh -
6 5 1 11.6 bumpleak/osh mut
7 5 2 12.0 _bin/cxx-opt+bumproot/osh mut
7 4 3 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.4 osh-native mut+alloc
9 5 4 10.5 osh-native mut+alloc+free
10 7 2 8.7 osh-native mut+alloc+free+gc
10 7 3 8.9 osh-native mut+alloc+free+gc+exit
9 4 5 11.0 osh-nosouffle mut+alloc
10 6 4 11.0 osh-nosouffle mut+alloc+free
10 7 4 9.2 osh-nosouffle mut+alloc+free+gc
11 8 3 9.4 osh-nosouffle mut+alloc+free+gc+exit
12 6 6 11.8 _bin/cxx-opt+nopool/osh mut+alloc
13 8 5 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
10 10 0 1.6 dash -
31 29 2 3.3 bash -
21 16 5 3.5 zsh -
17 13 4 33.8 bumpleak/osh mut
18 14 4 31.9 _bin/cxx-opt+bumproot/osh mut
22 18 3 32.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 18 12 27.0 osh-native mut+alloc
31 15 16 27.3 osh-native mut+alloc+free
21 17 3 8.3 osh-native mut+alloc+free+gc
20 16 4 8.3 osh-native mut+alloc+free+gc+exit
35 22 13 27.3 osh-nosouffle mut+alloc
37 25 12 27.7 osh-nosouffle mut+alloc+free
26 22 4 8.7 osh-nosouffle mut+alloc+free+gc
25 23 2 8.7 osh-nosouffle mut+alloc+free+gc+exit
49 27 21 36.8 _bin/cxx-opt+nopool/osh mut+alloc
32 30 2 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 98 6 3.5 bash -
216 167 49 57.3 bumpleak/osh mut
224 179 45 57.8 _bin/cxx-opt+bumproot/osh mut
243 175 68 58.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
262 196 67 48.9 osh-native mut+alloc
268 194 74 50.7 osh-native mut+alloc+free
224 177 48 9.0 osh-native mut+alloc+free+gc
228 174 54 9.0 osh-native mut+alloc+free+gc+exit
271 200 71 49.4 osh-nosouffle mut+alloc
283 209 74 51.2 osh-nosouffle mut+alloc+free
235 191 44 9.4 osh-nosouffle mut+alloc+free+gc
235 190 45 9.6 osh-nosouffle mut+alloc+free+gc+exit
283 203 80 64.7 _bin/cxx-opt+nopool/osh mut+alloc
276 218 58 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 3 7 3.9 dash -
17 9 8 4.8 bash -
16 10 7 3.8 zsh -
20 10 11 13.6 bumpleak/osh mut
20 7 13 13.4 _bin/cxx-opt+bumproot/osh mut
20 9 12 13.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 8 13 11.5 osh-native mut+alloc
22 8 15 11.8 osh-native mut+alloc+free
22 12 11 9.4 osh-native mut+alloc+free+gc
23 11 13 9.7 osh-native mut+alloc+free+gc+exit
22 13 10 12.1 osh-nosouffle mut+alloc
23 15 9 12.2 osh-nosouffle mut+alloc+free
23 12 12 9.8 osh-nosouffle mut+alloc+free+gc
24 15 9 10.1 osh-nosouffle mut+alloc+free+gc+exit
25 10 16 13.2 _bin/cxx-opt+nopool/osh mut+alloc
26 14 12 10.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc