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 4 10 12.0 18.2 471,276 1,282 6 413,160 5 206,580 osh-native
parse.configure-cpython 33 3 9 12.0 18.9 471,276 1,282 6 413,168 5 206,584 osh-nosouffle
parse.configure-coreutils 133 23 58 45.9 51.6 1,638,015 4,764 12 1,056,658 6 787,850 osh-native
parse.configure-coreutils 147 26 66 45.9 52.3 1,638,014 4,764 12 1,056,666 6 787,854 osh-nosouffle
parse.abuild 9 1 2 2.6 8.7 102,804 180 3 86,646 1 43,323 osh-native
parse.abuild 9 1 2 2.6 9.2 102,804 180 3 86,654 1 43,327 osh-nosouffle
ex.compute-fib 20 0 2 2.8 8.3 572,128 22,608 12 50,000 0 2,991 osh-native
ex.compute-fib 25 0 2 2.8 8.8 572,128 22,608 12 50,000 0 2,995 osh-nosouffle
ex.bashcomp-parse-help 221 0 3 11.6 9.2 990,274 15,258 21 50,000 0 3,968 osh-native
ex.bashcomp-parse-help 227 0 4 11.6 9.6 990,273 15,258 21 50,000 0 3,974 osh-nosouffle
ex.abuild-print-help 21 1 2 3.0 9.4 117,235 277 3 84,008 1 42,004 osh-native
ex.abuild-print-help 22 1 2 3.0 10.0 117,234 277 3 84,016 1 42,008 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.6 dash -
13 12 1 3.3 bash -
92 52 47 3.5 zsh -
15 10 5 29.7 bumpleak/osh mut
16 12 4 29.6 _bin/cxx-opt+bumproot/osh mut
20 16 3 29.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 17 9 25.4 osh-native mut+alloc
28 21 7 25.7 osh-native mut+alloc+free
31 23 8 18.2 osh-native mut+alloc+free+gc
32 24 8 18.2 osh-native mut+alloc+free+gc+exit
28 17 11 26.1 osh-nosouffle mut+alloc
30 17 12 26.5 osh-nosouffle mut+alloc+free
33 25 8 18.9 osh-nosouffle mut+alloc+free+gc
34 27 7 18.7 osh-nosouffle mut+alloc+free+gc+exit
39 22 17 32.7 _bin/cxx-opt+nopool/osh mut+alloc
45 37 8 22.4 _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.7 dash -
42 40 2 3.5 bash -
326 185 163 3.7 zsh -
46 35 11 86.1 bumpleak/osh mut
48 40 8 84.8 _bin/cxx-opt+bumproot/osh mut
59 45 14 86.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
85 51 34 73.7 osh-native mut+alloc
92 68 23 75.4 osh-native mut+alloc+free
133 104 29 51.6 osh-native mut+alloc+free+gc
139 114 25 52.5 osh-native mut+alloc+free+gc+exit
91 64 27 74.1 osh-nosouffle mut+alloc
100 72 28 75.9 osh-nosouffle mut+alloc+free
147 121 26 52.3 osh-nosouffle mut+alloc+free+gc
152 128 24 52.8 osh-nosouffle mut+alloc+free+gc+exit
128 77 50 98.7 _bin/cxx-opt+nopool/osh mut+alloc
191 160 31 71.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 1 1 1.7 dash -
4 3 1 3.3 bash -
6 4 2 3.4 zsh -
6 5 1 12.8 bumpleak/osh mut
6 6 0 13.2 _bin/cxx-opt+bumproot/osh mut
6 4 2 13.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 2 10.5 osh-native mut+alloc
8 4 3 10.5 osh-native mut+alloc+free
9 9 0 8.7 osh-native mut+alloc+free+gc
9 6 3 8.9 osh-native mut+alloc+free+gc+exit
8 7 1 11.1 osh-nosouffle mut+alloc
9 5 3 11.1 osh-nosouffle mut+alloc+free
9 8 1 9.2 osh-nosouffle mut+alloc+free+gc
10 6 4 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 6 5 11.9 _bin/cxx-opt+nopool/osh mut+alloc
11 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.3 bash -
21 16 5 3.4 zsh -
17 11 6 32.8 bumpleak/osh mut
19 14 5 33.4 _bin/cxx-opt+bumproot/osh mut
21 18 3 33.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 8 26.9 osh-native mut+alloc
31 23 8 27.3 osh-native mut+alloc+free
20 18 2 8.3 osh-native mut+alloc+free+gc
20 19 1 8.4 osh-native mut+alloc+free+gc+exit
34 20 14 27.4 osh-nosouffle mut+alloc
35 27 8 27.4 osh-nosouffle mut+alloc+free
25 23 2 8.8 osh-nosouffle mut+alloc+free+gc
25 23 2 8.8 osh-nosouffle mut+alloc+free+gc+exit
46 27 19 36.3 _bin/cxx-opt+nopool/osh mut+alloc
30 29 1 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 -
211 162 49 57.1 bumpleak/osh mut
219 183 36 57.4 _bin/cxx-opt+bumproot/osh mut
242 189 53 58.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
254 183 71 48.8 osh-native mut+alloc
261 181 80 50.9 osh-native mut+alloc+free
221 174 47 9.2 osh-native mut+alloc+free+gc
221 172 49 9.2 osh-native mut+alloc+free+gc+exit
265 195 69 49.3 osh-nosouffle mut+alloc
268 200 68 51.4 osh-nosouffle mut+alloc+free
227 183 44 9.6 osh-nosouffle mut+alloc+free+gc
230 171 59 9.8 osh-nosouffle mut+alloc+free+gc+exit
275 200 74 65.2 _bin/cxx-opt+nopool/osh mut+alloc
246 197 49 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 4 6 3.9 dash -
16 7 10 4.8 bash -
16 7 9 3.9 zsh -
18 6 12 14.0 bumpleak/osh mut
20 8 12 13.7 _bin/cxx-opt+bumproot/osh mut
19 8 12 13.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 9 11 11.7 osh-native mut+alloc
21 9 13 11.7 osh-native mut+alloc+free
21 10 11 9.4 osh-native mut+alloc+free+gc
25 14 11 9.6 osh-native mut+alloc+free+gc+exit
24 13 12 12.1 osh-nosouffle mut+alloc
23 12 12 12.2 osh-nosouffle mut+alloc+free
22 12 11 10.0 osh-nosouffle mut+alloc+free+gc
24 11 13 10.2 osh-nosouffle mut+alloc+free+gc+exit
23 12 12 13.2 _bin/cxx-opt+nopool/osh mut+alloc
25 18 7 10.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc