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.4 471,265 1,282 6 413,146 5 206,573 osh-native
parse.configure-cpython 34 3 9 12.0 18.7 471,265 1,282 6 413,154 5 206,577 osh-nosouffle
parse.configure-coreutils 129 23 56 45.9 51.7 1,638,004 4,764 12 1,056,644 6 787,843 osh-native
parse.configure-coreutils 141 24 59 45.9 52.3 1,638,003 4,764 12 1,056,652 6 787,847 osh-nosouffle
parse.abuild 9 1 2 2.6 8.7 102,793 180 3 86,632 1 43,316 osh-native
parse.abuild 10 1 2 2.6 9.2 102,793 180 3 86,640 1 43,320 osh-nosouffle
ex.compute-fib 20 0 1 2.8 8.4 572,117 22,608 12 50,000 0 2,984 osh-native
ex.compute-fib 25 0 2 2.8 8.7 572,117 22,608 12 50,000 0 2,987 osh-nosouffle
ex.bashcomp-parse-help 221 0 3 11.6 8.9 990,263 15,258 21 50,000 0 3,965 osh-native
ex.bashcomp-parse-help 227 0 3 11.6 9.7 990,262 15,258 21 50,000 0 3,967 osh-nosouffle
ex.abuild-print-help 20 1 2 3.0 9.4 117,221 277 3 83,994 1 41,997 osh-native
ex.abuild-print-help 21 1 2 3.0 10.1 117,220 277 3 84,002 1 42,001 osh-nosouffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 6 1 1.7 dash -
13 11 2 3.3 bash -
90 54 43 3.5 zsh -
15 13 3 29.9 bumpleak/osh mut
16 13 4 30.4 _bin/cxx-opt+bumproot/osh mut
19 15 4 30.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 12 14 25.4 osh-native mut+alloc
27 14 13 25.8 osh-native mut+alloc+free
31 25 6 18.4 osh-native mut+alloc+free+gc
31 27 4 18.2 osh-native mut+alloc+free+gc+exit
28 17 11 26.0 osh-nosouffle mut+alloc
30 18 12 26.2 osh-nosouffle mut+alloc+free
34 27 7 18.7 osh-nosouffle mut+alloc+free+gc
34 30 5 18.6 osh-nosouffle mut+alloc+free+gc+exit
39 21 18 33.7 _bin/cxx-opt+nopool/osh mut+alloc
44 34 10 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
22 19 3 1.7 dash -
42 42 0 3.5 bash -
331 188 166 3.7 zsh -
46 37 9 86.5 bumpleak/osh mut
48 40 8 86.2 _bin/cxx-opt+bumproot/osh mut
59 45 14 86.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
82 55 27 73.7 osh-native mut+alloc
89 55 34 75.5 osh-native mut+alloc+free
129 109 20 51.7 osh-native mut+alloc+free+gc
137 119 18 52.4 osh-native mut+alloc+free+gc+exit
91 61 30 74.1 osh-nosouffle mut+alloc
99 64 35 76.0 osh-nosouffle mut+alloc+free
141 113 28 52.3 osh-nosouffle mut+alloc+free+gc
148 125 23 53.1 osh-nosouffle mut+alloc+free+gc+exit
126 85 41 98.8 _bin/cxx-opt+nopool/osh mut+alloc
191 160 31 74.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 4 0 3.0 bash -
6 2 4 3.4 zsh -
6 3 3 12.6 bumpleak/osh mut
6 4 2 12.7 _bin/cxx-opt+bumproot/osh mut
6 3 3 11.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 3 10.5 osh-native mut+alloc
8 4 4 10.6 osh-native mut+alloc+free
9 8 1 8.7 osh-native mut+alloc+free+gc
10 5 5 8.8 osh-native mut+alloc+free+gc+exit
8 5 4 11.0 osh-nosouffle mut+alloc
9 7 2 11.1 osh-nosouffle mut+alloc+free
10 6 4 9.2 osh-nosouffle mut+alloc+free+gc
10 7 3 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 8 3 11.9 _bin/cxx-opt+nopool/osh mut+alloc
11 7 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.6 dash -
30 29 1 3.1 bash -
21 17 4 3.4 zsh -
17 13 4 33.0 bumpleak/osh mut
18 14 4 35.7 _bin/cxx-opt+bumproot/osh mut
21 18 3 33.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 14 14 26.9 osh-native mut+alloc
30 22 8 27.3 osh-native mut+alloc+free
20 16 4 8.4 osh-native mut+alloc+free+gc
20 17 3 8.3 osh-native mut+alloc+free+gc+exit
33 24 9 27.4 osh-nosouffle mut+alloc
36 27 9 27.4 osh-nosouffle mut+alloc+free
25 21 4 8.7 osh-nosouffle mut+alloc+free+gc
25 24 1 8.7 osh-nosouffle mut+alloc+free+gc+exit
46 30 16 36.4 _bin/cxx-opt+nopool/osh mut+alloc
30 24 6 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
103 100 3 3.4 bash -
212 169 43 56.2 bumpleak/osh mut
220 158 62 55.9 _bin/cxx-opt+bumproot/osh mut
240 186 54 58.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
255 184 72 48.8 osh-native mut+alloc
266 191 75 50.6 osh-native mut+alloc+free
221 166 55 8.9 osh-native mut+alloc+free+gc
221 188 33 9.2 osh-native mut+alloc+free+gc+exit
263 187 76 49.2 osh-nosouffle mut+alloc
270 197 73 51.1 osh-nosouffle mut+alloc+free
227 177 50 9.7 osh-nosouffle mut+alloc+free+gc
225 186 39 9.6 osh-nosouffle mut+alloc+free+gc+exit
279 220 59 66.0 _bin/cxx-opt+nopool/osh mut+alloc
251 197 53 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.9 dash -
16 6 11 4.8 bash -
16 6 10 3.9 zsh -
17 10 8 12.2 bumpleak/osh mut
18 6 12 14.2 _bin/cxx-opt+bumproot/osh mut
20 9 12 14.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 9 11 11.5 osh-native mut+alloc
21 10 12 11.7 osh-native mut+alloc+free
20 10 11 9.4 osh-native mut+alloc+free+gc
21 11 11 9.7 osh-native mut+alloc+free+gc+exit
20 13 8 12.2 osh-nosouffle mut+alloc
21 9 13 12.2 osh-nosouffle mut+alloc+free
21 11 11 10.1 osh-nosouffle mut+alloc+free+gc
21 13 9 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 11 13 13.1 _bin/cxx-opt+nopool/osh mut+alloc
24 14 10 10.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc