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 33 4 10 12.0 18.2 471,276 1,282 6 413,160 5 206,580 osh-native
parse.configure-cpython 35 4 10 12.0 18.9 471,276 1,282 6 413,168 5 206,584 osh-nosouffle
parse.configure-coreutils 150 27 74 45.9 51.6 1,638,015 4,764 12 1,056,658 6 787,850 osh-native
parse.configure-coreutils 160 27 76 45.9 52.3 1,638,014 4,764 12 1,056,666 6 787,854 osh-nosouffle
parse.abuild 10 1 2 2.6 8.8 102,804 180 3 86,646 1 43,323 osh-native
parse.abuild 10 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.1 572,128 22,608 12 50,000 0 2,991 osh-native
ex.compute-fib 24 0 2 2.8 8.7 572,128 22,608 12 50,000 0 2,995 osh-nosouffle
ex.bashcomp-parse-help 223 0 4 11.6 9.2 990,274 15,258 21 50,000 0 3,968 osh-native
ex.bashcomp-parse-help 229 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 7 0 1.6 dash -
13 11 2 3.3 bash -
91 52 47 3.5 zsh -
16 11 5 30.3 bumpleak/osh mut
16 14 2 29.3 _bin/cxx-opt+bumproot/osh mut
19 13 6 29.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 18 8 25.4 osh-native mut+alloc
27 15 12 26.0 osh-native mut+alloc+free
33 25 8 18.2 osh-native mut+alloc+free+gc
34 25 9 18.2 osh-native mut+alloc+free+gc+exit
29 16 13 26.0 osh-nosouffle mut+alloc
31 18 13 26.3 osh-nosouffle mut+alloc+free
35 25 10 18.9 osh-nosouffle mut+alloc+free+gc
36 32 4 18.7 osh-nosouffle mut+alloc+free+gc+exit
40 25 14 33.6 _bin/cxx-opt+nopool/osh mut+alloc
49 37 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 23 0 1.7 dash -
42 40 2 3.5 bash -
328 194 158 3.7 zsh -
46 39 7 85.2 bumpleak/osh mut
49 40 9 84.5 _bin/cxx-opt+bumproot/osh mut
60 42 18 86.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
83 49 34 73.5 osh-native mut+alloc
92 62 30 75.4 osh-native mut+alloc+free
150 123 27 51.6 osh-native mut+alloc+free+gc
158 123 35 52.5 osh-native mut+alloc+free+gc+exit
93 57 36 74.2 osh-nosouffle mut+alloc
102 71 32 76.0 osh-nosouffle mut+alloc+free
160 138 22 52.3 osh-nosouffle mut+alloc+free+gc
165 139 27 52.9 osh-nosouffle mut+alloc+free+gc+exit
129 80 49 98.9 _bin/cxx-opt+nopool/osh mut+alloc
210 182 28 72.0 _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 -
7 2 4 3.4 zsh -
6 4 2 11.9 bumpleak/osh mut
6 3 4 13.3 _bin/cxx-opt+bumproot/osh mut
7 5 2 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.5 osh-native mut+alloc
9 8 1 10.6 osh-native mut+alloc+free
10 9 1 8.8 osh-native mut+alloc+free+gc
10 6 3 8.8 osh-native mut+alloc+free+gc+exit
9 5 4 11.0 osh-nosouffle mut+alloc
9 5 5 11.1 osh-nosouffle mut+alloc+free
10 6 4 9.2 osh-nosouffle mut+alloc+free+gc
10 6 4 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 4 7 11.9 _bin/cxx-opt+nopool/osh mut+alloc
12 9 4 9.7 _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 9 1 1.6 dash -
31 31 0 3.3 bash -
21 17 4 3.4 zsh -
17 11 6 32.8 bumpleak/osh mut
19 11 7 33.3 _bin/cxx-opt+bumproot/osh mut
21 15 6 33.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 18 9 26.7 osh-native mut+alloc
30 23 8 27.0 osh-native mut+alloc+free
20 19 1 8.1 osh-native mut+alloc+free+gc
20 19 1 8.3 osh-native mut+alloc+free+gc+exit
34 25 9 27.3 osh-nosouffle mut+alloc
35 21 14 27.4 osh-nosouffle mut+alloc+free
24 22 3 8.7 osh-nosouffle mut+alloc+free+gc
25 22 3 8.8 osh-nosouffle mut+alloc+free+gc+exit
46 30 16 36.2 _bin/cxx-opt+nopool/osh mut+alloc
30 24 6 10.0 _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.5 bash -
211 168 43 55.8 bumpleak/osh mut
223 179 44 57.9 _bin/cxx-opt+bumproot/osh mut
239 174 65 57.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
256 192 64 49.0 osh-native mut+alloc
267 193 74 50.9 osh-native mut+alloc+free
223 173 50 9.2 osh-native mut+alloc+free+gc
224 178 46 9.2 osh-native mut+alloc+free+gc+exit
265 195 70 49.2 osh-nosouffle mut+alloc
275 202 73 51.3 osh-nosouffle mut+alloc+free
229 186 42 9.6 osh-nosouffle mut+alloc+free+gc
230 173 57 9.8 osh-nosouffle mut+alloc+free+gc+exit
279 197 81 65.3 _bin/cxx-opt+nopool/osh mut+alloc
256 209 47 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 6 4 4.1 dash -
16 9 7 4.8 bash -
16 10 7 4.1 zsh -
18 8 11 12.5 bumpleak/osh mut
18 8 11 14.4 _bin/cxx-opt+bumproot/osh mut
19 8 12 13.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 10 10 11.5 osh-native mut+alloc
21 9 12 11.8 osh-native mut+alloc+free
21 11 11 9.4 osh-native mut+alloc+free+gc
21 10 12 9.6 osh-native mut+alloc+free+gc+exit
21 9 12 12.1 osh-nosouffle mut+alloc
22 10 13 12.2 osh-nosouffle mut+alloc+free
22 12 10 10.0 osh-nosouffle mut+alloc+free+gc
22 10 13 10.2 osh-nosouffle mut+alloc+free+gc+exit
24 11 13 13.1 _bin/cxx-opt+nopool/osh mut+alloc
25 14 12 10.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc