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 3 9 12.0 18.1 471,253 1,282 6 413,134 5 206,567 osh-native
parse.configure-cpython 35 4 10 12.0 18.7 471,253 1,282 6 413,142 5 206,571 osh-nosouffle
parse.configure-coreutils 131 23 58 45.9 51.9 1,637,992 4,764 12 1,056,632 6 787,837 osh-native
parse.configure-coreutils 149 23 64 45.9 52.0 1,637,991 4,764 12 1,056,640 6 787,841 osh-nosouffle
parse.abuild 9 1 2 2.6 8.7 102,781 180 3 86,620 1 43,310 osh-native
parse.abuild 10 1 2 2.6 9.2 102,781 180 3 86,628 1 43,314 osh-nosouffle
ex.compute-fib 20 0 1 2.8 8.3 572,105 22,608 12 50,000 0 2,978 osh-native
ex.compute-fib 25 0 1 2.8 8.7 572,105 22,608 12 50,000 0 2,982 osh-nosouffle
ex.bashcomp-parse-help 222 0 4 11.6 9.0 990,251 15,258 21 50,000 0 3,958 osh-native
ex.bashcomp-parse-help 227 0 3 11.6 9.7 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.1 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
7 5 1 1.6 dash -
13 12 1 3.3 bash -
90 48 49 3.5 zsh -
15 11 4 30.3 bumpleak/osh mut
16 11 5 30.4 _bin/cxx-opt+bumproot/osh mut
18 15 3 29.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 14 11 25.4 osh-native mut+alloc
27 18 9 25.8 osh-native mut+alloc+free
31 23 8 18.1 osh-native mut+alloc+free+gc
33 25 8 18.4 osh-native mut+alloc+free+gc+exit
28 16 13 26.0 osh-nosouffle mut+alloc
30 22 8 26.2 osh-nosouffle mut+alloc+free
35 28 7 18.7 osh-nosouffle mut+alloc+free+gc
35 28 7 18.7 osh-nosouffle mut+alloc+free+gc+exit
39 24 16 33.2 _bin/cxx-opt+nopool/osh mut+alloc
45 33 12 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.6 dash -
43 41 2 3.4 bash -
324 189 159 3.8 zsh -
45 38 7 85.3 bumpleak/osh mut
49 40 9 85.2 _bin/cxx-opt+bumproot/osh mut
59 44 15 86.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
81 53 28 73.5 osh-native mut+alloc
90 58 32 75.5 osh-native mut+alloc+free
131 107 24 51.9 osh-native mut+alloc+free+gc
137 114 23 52.4 osh-native mut+alloc+free+gc+exit
93 62 31 74.1 osh-nosouffle mut+alloc
102 70 31 75.9 osh-nosouffle mut+alloc+free
149 130 19 52.0 osh-nosouffle mut+alloc+free+gc
147 120 27 53.1 osh-nosouffle mut+alloc+free+gc+exit
125 80 45 98.2 _bin/cxx-opt+nopool/osh mut+alloc
192 158 34 73.4 _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 2 2 3.1 bash -
6 2 4 3.4 zsh -
6 4 2 11.9 bumpleak/osh mut
6 3 3 13.1 _bin/cxx-opt+bumproot/osh mut
7 4 3 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.6 osh-native mut+alloc
8 2 6 10.6 osh-native mut+alloc+free
9 7 2 8.7 osh-native mut+alloc+free+gc
9 6 3 8.8 osh-native mut+alloc+free+gc+exit
8 4 4 10.9 osh-nosouffle mut+alloc
9 6 3 11.1 osh-nosouffle mut+alloc+free
10 9 1 9.2 osh-nosouffle mut+alloc+free+gc
10 6 4 9.2 osh-nosouffle mut+alloc+free+gc+exit
11 7 4 11.8 _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
10 10 0 1.6 dash -
31 30 1 3.1 bash -
21 16 5 3.5 zsh -
17 14 3 33.1 bumpleak/osh mut
18 14 4 32.2 _bin/cxx-opt+bumproot/osh mut
21 16 4 33.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 18 10 26.7 osh-native mut+alloc
30 24 6 27.2 osh-native mut+alloc+free
20 16 4 8.3 osh-native mut+alloc+free+gc
19 15 4 8.3 osh-native mut+alloc+free+gc+exit
33 24 10 27.4 osh-nosouffle mut+alloc
36 20 16 27.4 osh-nosouffle mut+alloc+free
25 20 5 8.7 osh-nosouffle mut+alloc+free+gc
25 23 2 8.5 osh-nosouffle mut+alloc+free+gc+exit
45 30 15 36.7 _bin/cxx-opt+nopool/osh mut+alloc
30 25 5 9.8 _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 100 5 3.4 bash -
212 155 57 55.9 bumpleak/osh mut
221 161 60 56.2 _bin/cxx-opt+bumproot/osh mut
237 171 65 57.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
254 174 80 48.8 osh-native mut+alloc
264 198 66 50.6 osh-native mut+alloc+free
222 171 51 9.0 osh-native mut+alloc+free+gc
225 190 35 9.0 osh-native mut+alloc+free+gc+exit
262 200 62 49.2 osh-nosouffle mut+alloc
271 192 79 51.0 osh-nosouffle mut+alloc+free
227 187 40 9.7 osh-nosouffle mut+alloc+free+gc
230 191 39 9.4 osh-nosouffle mut+alloc+free+gc+exit
278 184 94 64.0 _bin/cxx-opt+nopool/osh mut+alloc
250 203 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 4 5 3.8 dash -
16 10 6 4.7 bash -
15 7 9 4.1 zsh -
18 10 8 12.9 bumpleak/osh mut
17 9 9 14.1 _bin/cxx-opt+bumproot/osh mut
18 9 10 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 7 13 11.7 osh-native mut+alloc
20 5 16 11.8 osh-native mut+alloc+free
20 11 9 9.4 osh-native mut+alloc+free+gc
21 12 9 9.6 osh-native mut+alloc+free+gc+exit
20 8 13 12.2 osh-nosouffle mut+alloc
21 7 15 12.2 osh-nosouffle mut+alloc+free
21 9 13 10.1 osh-nosouffle mut+alloc+free+gc
22 10 13 10.0 osh-nosouffle mut+alloc+free+gc+exit
23 9 14 13.2 _bin/cxx-opt+nopool/osh mut+alloc
23 11 13 10.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc