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,252 1,282 6 413,132 5 206,566 osh-native
parse.configure-cpython 34 4 10 12.0 18.7 471,252 1,282 6 413,140 5 206,570 osh-nosouffle
parse.configure-coreutils 139 25 63 45.9 51.9 1,637,991 4,764 12 1,056,630 6 787,836 osh-native
parse.configure-coreutils 149 26 66 45.9 52.2 1,637,990 4,764 12 1,056,638 6 787,840 osh-nosouffle
parse.abuild 9 1 2 2.6 8.5 102,780 180 3 86,618 1 43,309 osh-native
parse.abuild 10 1 2 2.6 9.3 102,780 180 3 86,626 1 43,313 osh-nosouffle
ex.compute-fib 20 0 1 2.8 8.5 576,705 22,608 12 50,000 0 2,976 osh-native
ex.compute-fib 24 0 1 2.8 8.5 576,705 22,608 12 50,000 0 2,981 osh-nosouffle
ex.bashcomp-parse-help 224 0 4 11.6 9.2 990,260 15,258 21 50,000 0 3,957 osh-native
ex.bashcomp-parse-help 230 0 4 11.6 9.4 990,259 15,258 21 50,000 0 3,966 osh-nosouffle
ex.abuild-print-help 20 1 2 3.0 9.4 117,272 277 3 83,980 1 41,990 osh-native
ex.abuild-print-help 22 1 2 3.0 10.0 117,271 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 5 2 1.8 dash -
13 11 2 3.3 bash -
90 55 41 3.4 zsh -
15 9 6 30.6 bumpleak/osh mut
16 11 5 29.7 _bin/cxx-opt+bumproot/osh mut
19 13 6 30.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 14 11 25.6 osh-native mut+alloc
27 20 7 26.0 osh-native mut+alloc+free
32 21 11 18.2 osh-native mut+alloc+free+gc
34 26 8 18.2 osh-native mut+alloc+free+gc+exit
28 22 6 26.0 osh-nosouffle mut+alloc
31 21 10 26.3 osh-nosouffle mut+alloc+free
34 25 9 18.7 osh-nosouffle mut+alloc+free+gc
35 27 8 18.6 osh-nosouffle mut+alloc+free+gc+exit
39 25 14 32.2 _bin/cxx-opt+nopool/osh mut+alloc
44 35 9 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 23 0 1.6 dash -
42 41 1 3.4 bash -
328 195 155 3.5 zsh -
46 39 7 86.0 bumpleak/osh mut
48 40 8 86.1 _bin/cxx-opt+bumproot/osh mut
59 47 12 86.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
86 50 36 73.7 osh-native mut+alloc
95 56 40 75.5 osh-native mut+alloc+free
139 110 29 51.9 osh-native mut+alloc+free+gc
144 123 21 52.3 osh-native mut+alloc+free+gc+exit
92 58 34 74.1 osh-nosouffle mut+alloc
101 68 33 76.0 osh-nosouffle mut+alloc+free
149 121 28 52.2 osh-nosouffle mut+alloc+free+gc
153 117 36 53.0 osh-nosouffle mut+alloc+free+gc+exit
128 76 52 99.3 _bin/cxx-opt+nopool/osh mut+alloc
221 191 30 73.2 _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 4 2 3.4 zsh -
7 5 2 12.5 bumpleak/osh mut
7 4 3 12.3 _bin/cxx-opt+bumproot/osh mut
7 4 3 11.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 2 10.4 osh-native mut+alloc
8 6 2 10.5 osh-native mut+alloc+free
9 7 2 8.5 osh-native mut+alloc+free+gc
9 8 1 8.8 osh-native mut+alloc+free+gc+exit
8 3 5 10.9 osh-nosouffle mut+alloc
9 5 4 11.1 osh-nosouffle mut+alloc+free
10 5 4 9.3 osh-nosouffle mut+alloc+free+gc
10 7 3 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 5 7 11.9 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 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 -
30 29 1 3.3 bash -
21 15 6 3.4 zsh -
17 13 4 33.0 bumpleak/osh mut
19 14 5 33.0 _bin/cxx-opt+bumproot/osh mut
21 17 4 32.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 19 9 27.0 osh-native mut+alloc
31 19 11 27.3 osh-native mut+alloc+free
20 17 3 8.5 osh-native mut+alloc+free+gc
20 17 3 8.3 osh-native mut+alloc+free+gc+exit
33 21 12 27.4 osh-nosouffle mut+alloc
36 23 13 27.8 osh-nosouffle mut+alloc+free
24 23 1 8.5 osh-nosouffle mut+alloc+free+gc
25 23 2 8.8 osh-nosouffle mut+alloc+free+gc+exit
46 29 17 36.3 _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
105 104 1 3.4 bash -
214 156 58 56.0 bumpleak/osh mut
224 179 45 56.8 _bin/cxx-opt+bumproot/osh mut
238 185 53 57.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
256 174 82 48.8 osh-native mut+alloc
266 188 78 50.7 osh-native mut+alloc+free
224 172 52 9.2 osh-native mut+alloc+free+gc
222 182 40 9.2 osh-native mut+alloc+free+gc+exit
264 200 64 49.3 osh-nosouffle mut+alloc
272 206 66 51.1 osh-nosouffle mut+alloc+free
230 185 45 9.4 osh-nosouffle mut+alloc+free+gc
229 179 50 9.4 osh-nosouffle mut+alloc+free+gc+exit
280 210 71 64.1 _bin/cxx-opt+nopool/osh mut+alloc
252 200 52 10.7 _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 6 3.9 dash -
16 11 6 4.8 bash -
15 7 9 3.9 zsh -
18 9 10 13.1 bumpleak/osh mut
19 6 14 13.8 _bin/cxx-opt+bumproot/osh mut
18 7 12 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 7 13 11.7 osh-native mut+alloc
21 13 8 11.7 osh-native mut+alloc+free
20 14 7 9.4 osh-native mut+alloc+free+gc
21 11 11 9.7 osh-native mut+alloc+free+gc+exit
21 12 10 12.1 osh-nosouffle mut+alloc
22 11 12 12.2 osh-nosouffle mut+alloc+free
22 14 8 10.0 osh-nosouffle mut+alloc+free+gc
22 14 9 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 9 14 13.1 _bin/cxx-opt+nopool/osh mut+alloc
23 13 11 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc