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 36 6 13 12.0 18.2 471,276 1,282 6 413,160 5 206,580 osh-native
parse.configure-cpython 38 6 13 12.0 18.7 471,276 1,282 6 413,168 5 206,584 osh-nosouffle
parse.configure-coreutils 143 27 69 45.9 51.9 1,638,015 4,764 12 1,056,658 6 787,850 osh-native
parse.configure-coreutils 162 28 78 45.9 52.1 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 10 1 2 2.6 9.0 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 26 0 2 2.8 8.8 572,128 22,608 12 50,000 0 2,995 osh-nosouffle
ex.bashcomp-parse-help 221 0 4 11.6 8.9 990,274 15,258 21 50,000 0 3,968 osh-native
ex.bashcomp-parse-help 227 0 3 11.6 9.7 990,273 15,258 21 50,000 0 3,974 osh-nosouffle
ex.abuild-print-help 20 1 2 3.0 9.6 117,235 277 3 84,008 1 42,004 osh-native
ex.abuild-print-help 21 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.7 dash -
13 12 1 3.3 bash -
88 55 40 3.5 zsh -
15 9 6 29.4 bumpleak/osh mut
17 13 3 28.9 _bin/cxx-opt+bumproot/osh mut
19 15 4 29.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 16 10 25.6 osh-native mut+alloc
28 19 9 25.8 osh-native mut+alloc+free
36 30 6 18.2 osh-native mut+alloc+free+gc
38 28 10 18.2 osh-native mut+alloc+free+gc+exit
29 22 7 26.0 osh-nosouffle mut+alloc
31 14 17 26.2 osh-nosouffle mut+alloc+free
38 31 7 18.7 osh-nosouffle mut+alloc+free+gc
41 33 8 18.7 osh-nosouffle mut+alloc+free+gc+exit
39 22 17 32.3 _bin/cxx-opt+nopool/osh mut+alloc
47 37 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 23 0 1.6 dash -
42 40 2 3.5 bash -
334 186 172 3.7 zsh -
44 33 11 86.3 bumpleak/osh mut
49 43 6 85.1 _bin/cxx-opt+bumproot/osh mut
59 47 12 86.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
83 55 27 73.5 osh-native mut+alloc
92 68 24 75.5 osh-native mut+alloc+free
143 118 25 51.9 osh-native mut+alloc+free+gc
146 122 24 52.5 osh-native mut+alloc+free+gc+exit
92 63 29 74.2 osh-nosouffle mut+alloc
103 66 37 75.9 osh-nosouffle mut+alloc+free
162 130 32 52.1 osh-nosouffle mut+alloc+free+gc
165 141 24 53.0 osh-nosouffle mut+alloc+free+gc+exit
126 87 39 99.5 _bin/cxx-opt+nopool/osh mut+alloc
229 196 33 73.5 _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 2 1 3.1 bash -
7 4 3 3.4 zsh -
6 3 3 11.4 bumpleak/osh mut
6 5 1 12.7 _bin/cxx-opt+bumproot/osh mut
7 4 3 13.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 2 10.7 osh-native mut+alloc
8 6 2 10.7 osh-native mut+alloc+free
9 6 3 8.7 osh-native mut+alloc+free+gc
9 8 1 8.8 osh-native mut+alloc+free+gc+exit
9 6 3 11.0 osh-nosouffle mut+alloc
9 6 3 11.0 osh-nosouffle mut+alloc+free
10 8 2 9.0 osh-nosouffle mut+alloc+free+gc
11 9 1 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 9 3 11.9 _bin/cxx-opt+nopool/osh mut+alloc
13 10 3 9.6 _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 -
30 29 1 3.1 bash -
21 17 4 3.4 zsh -
17 11 5 32.5 bumpleak/osh mut
18 14 4 32.7 _bin/cxx-opt+bumproot/osh mut
20 18 3 33.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 19 10 26.7 osh-native mut+alloc
30 15 15 27.1 osh-native mut+alloc+free
20 18 2 8.1 osh-native mut+alloc+free+gc
20 18 2 8.3 osh-native mut+alloc+free+gc+exit
34 22 12 27.3 osh-nosouffle mut+alloc
35 27 8 27.6 osh-nosouffle mut+alloc+free
26 25 1 8.8 osh-nosouffle mut+alloc+free+gc
25 23 2 8.7 osh-nosouffle mut+alloc+free+gc+exit
46 26 20 36.6 _bin/cxx-opt+nopool/osh mut+alloc
30 23 7 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
105 103 2 3.4 bash -
213 157 55 56.5 bumpleak/osh mut
220 166 54 57.6 _bin/cxx-opt+bumproot/osh mut
238 190 48 58.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
256 183 74 48.8 osh-native mut+alloc
261 192 68 50.9 osh-native mut+alloc+free
221 176 45 8.9 osh-native mut+alloc+free+gc
222 172 50 8.8 osh-native mut+alloc+free+gc+exit
262 199 62 49.2 osh-nosouffle mut+alloc
269 195 74 51.3 osh-nosouffle mut+alloc+free
227 179 49 9.7 osh-nosouffle mut+alloc+free+gc
228 191 37 9.8 osh-nosouffle mut+alloc+free+gc+exit
277 206 71 66.0 _bin/cxx-opt+nopool/osh mut+alloc
249 209 40 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 3 6 4.1 dash -
16 11 6 4.7 bash -
16 10 7 3.9 zsh -
17 9 8 12.4 bumpleak/osh mut
19 8 12 13.5 _bin/cxx-opt+bumproot/osh mut
20 9 11 14.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 7 13 11.7 osh-native mut+alloc
20 10 11 11.5 osh-native mut+alloc+free
20 13 8 9.6 osh-native mut+alloc+free+gc
21 9 12 9.7 osh-native mut+alloc+free+gc+exit
20 10 11 12.1 osh-nosouffle mut+alloc
22 10 13 12.2 osh-nosouffle mut+alloc+free
21 12 10 10.0 osh-nosouffle mut+alloc+free+gc
22 15 8 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 11 12 13.1 _bin/cxx-opt+nopool/osh mut+alloc
23 10 14 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc