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,253 1,282 6 413,134 5 206,567 osh-native
parse.configure-cpython 35 4 10 12.0 18.9 471,253 1,282 6 413,142 5 206,571 osh-nosouffle
parse.configure-coreutils 144 27 70 45.9 51.7 1,637,992 4,764 12 1,056,632 6 787,837 osh-native
parse.configure-coreutils 144 23 63 45.9 52.1 1,637,991 4,764 12 1,056,640 6 787,841 osh-nosouffle
parse.abuild 9 1 2 2.6 8.8 102,781 180 3 86,620 1 43,310 osh-native
parse.abuild 10 1 2 2.6 9.3 102,781 180 3 86,628 1 43,314 osh-nosouffle
ex.compute-fib 20 0 2 2.8 8.3 572,105 22,608 12 50,000 0 2,978 osh-native
ex.compute-fib 25 0 2 2.8 8.9 572,105 22,608 12 50,000 0 2,982 osh-nosouffle
ex.bashcomp-parse-help 221 0 3 11.6 9.2 990,251 15,258 21 50,000 0 3,958 osh-native
ex.bashcomp-parse-help 245 0 4 11.6 9.3 990,250 15,258 21 50,000 0 3,967 osh-nosouffle
ex.abuild-print-help 20 1 2 3.0 9.4 117,209 277 3 83,982 1 41,991 osh-native
ex.abuild-print-help 21 1 2 3.0 10.0 117,208 277 3 83,990 1 41,995 osh-nosouffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 6 1 1.6 dash -
13 12 1 3.4 bash -
89 55 41 3.5 zsh -
15 12 3 30.5 bumpleak/osh mut
16 12 4 29.3 _bin/cxx-opt+bumproot/osh mut
19 13 7 30.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 12 13 25.4 osh-native mut+alloc
27 16 11 25.8 osh-native mut+alloc+free
32 24 7 18.2 osh-native mut+alloc+free+gc
32 25 7 18.2 osh-native mut+alloc+free+gc+exit
28 19 9 25.8 osh-nosouffle mut+alloc
30 21 9 26.2 osh-nosouffle mut+alloc+free
35 27 8 18.9 osh-nosouffle mut+alloc+free+gc
35 28 7 18.7 osh-nosouffle mut+alloc+free+gc+exit
39 22 18 33.5 _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 42 1 3.4 bash -
331 186 168 3.7 zsh -
45 33 12 84.6 bumpleak/osh mut
47 37 11 85.3 _bin/cxx-opt+bumproot/osh mut
59 47 12 86.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
84 49 35 73.9 osh-native mut+alloc
93 59 35 75.6 osh-native mut+alloc+free
144 124 20 51.7 osh-native mut+alloc+free+gc
147 122 25 52.4 osh-native mut+alloc+free+gc+exit
93 65 28 74.3 osh-nosouffle mut+alloc
99 70 29 76.0 osh-nosouffle mut+alloc+free
144 125 19 52.1 osh-nosouffle mut+alloc+free+gc
151 128 23 53.0 osh-nosouffle mut+alloc+free+gc+exit
128 87 41 97.5 _bin/cxx-opt+nopool/osh mut+alloc
210 184 26 72.3 _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.6 dash -
4 2 1 3.1 bash -
6 5 1 3.4 zsh -
6 6 0 12.7 bumpleak/osh mut
7 3 4 12.4 _bin/cxx-opt+bumproot/osh mut
7 4 3 13.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 7 1 10.5 osh-native mut+alloc
8 4 4 10.6 osh-native mut+alloc+free
9 5 4 8.8 osh-native mut+alloc+free+gc
9 5 4 8.8 osh-native mut+alloc+free+gc+exit
9 7 2 11.0 osh-nosouffle mut+alloc
9 5 4 11.1 osh-nosouffle mut+alloc+free
10 6 4 9.3 osh-nosouffle mut+alloc+free+gc
10 6 5 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 6 5 11.9 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.4 _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 30 1 3.3 bash -
21 18 3 3.4 zsh -
16 14 2 31.9 bumpleak/osh mut
19 15 3 33.1 _bin/cxx-opt+bumproot/osh mut
21 16 5 33.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 15 13 26.7 osh-native mut+alloc
30 17 14 27.3 osh-native mut+alloc+free
20 16 4 8.3 osh-native mut+alloc+free+gc
20 19 1 8.1 osh-native mut+alloc+free+gc+exit
33 24 9 27.3 osh-nosouffle mut+alloc
36 20 16 27.5 osh-nosouffle mut+alloc+free
25 21 4 8.9 osh-nosouffle mut+alloc+free+gc
25 24 1 8.7 osh-nosouffle mut+alloc+free+gc+exit
46 31 15 36.2 _bin/cxx-opt+nopool/osh mut+alloc
31 25 6 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 99 5 3.3 bash -
216 169 47 56.7 bumpleak/osh mut
225 165 60 57.4 _bin/cxx-opt+bumproot/osh mut
239 178 61 57.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
259 195 64 48.9 osh-native mut+alloc
263 187 77 50.7 osh-native mut+alloc+free
221 169 52 9.2 osh-native mut+alloc+free+gc
223 181 42 9.2 osh-native mut+alloc+free+gc+exit
261 192 68 49.3 osh-nosouffle mut+alloc
270 204 67 51.2 osh-nosouffle mut+alloc+free
245 186 59 9.3 osh-nosouffle mut+alloc+free+gc
228 175 53 9.6 osh-nosouffle mut+alloc+free+gc+exit
280 205 74 65.1 _bin/cxx-opt+nopool/osh mut+alloc
252 206 46 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 7 3 3.9 dash -
17 10 7 4.7 bash -
16 6 11 3.9 zsh -
19 11 8 13.7 bumpleak/osh mut
18 5 13 12.8 _bin/cxx-opt+bumproot/osh mut
18 8 11 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 7 13 11.5 osh-native mut+alloc
21 7 15 11.7 osh-native mut+alloc+free
20 11 10 9.4 osh-native mut+alloc+free+gc
21 12 10 9.4 osh-native mut+alloc+free+gc+exit
21 12 10 12.1 osh-nosouffle mut+alloc
21 13 9 12.2 osh-nosouffle mut+alloc+free
21 13 9 10.0 osh-nosouffle mut+alloc+free+gc
22 12 11 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 13 11 13.2 _bin/cxx-opt+nopool/osh mut+alloc
24 11 13 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc