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 4 13 12.0 18.4 471,276 1,282 6 413,160 5 206,580 osh-native
parse.configure-cpython 46 8 19 12.0 18.6 471,276 1,282 6 413,168 5 206,584 osh-nosouffle
parse.configure-coreutils 166 29 89 45.9 51.9 1,638,015 4,764 12 1,056,658 6 787,850 osh-native
parse.configure-coreutils 171 30 85 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.5 102,804 180 3 86,646 1 43,323 osh-native
parse.abuild 11 1 3 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 232 0 6 11.6 8.9 990,274 15,258 21 50,000 0 3,968 osh-native
ex.bashcomp-parse-help 233 0 5 11.6 9.6 990,273 15,258 21 50,000 0 3,974 osh-nosouffle
ex.abuild-print-help 22 1 2 3.0 9.3 117,259 277 3 84,008 1 42,004 osh-native
ex.abuild-print-help 23 1 2 3.0 10.0 117,258 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.8 dash -
13 12 1 3.3 bash -
90 52 44 3.5 zsh -
16 12 4 28.6 bumpleak/osh mut
17 11 6 30.1 _bin/cxx-opt+bumproot/osh mut
20 13 7 30.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
27 17 10 25.4 osh-native mut+alloc
29 18 11 25.8 osh-native mut+alloc+free
36 31 5 18.4 osh-native mut+alloc+free+gc
36 33 3 18.5 osh-native mut+alloc+free+gc+exit
29 21 8 26.0 osh-nosouffle mut+alloc
31 20 11 26.2 osh-nosouffle mut+alloc+free
46 38 9 18.6 osh-nosouffle mut+alloc+free+gc
45 37 8 18.6 osh-nosouffle mut+alloc+free+gc+exit
41 23 18 33.7 _bin/cxx-opt+nopool/osh mut+alloc
58 46 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 21 2 1.7 dash -
42 41 1 3.4 bash -
334 178 180 3.8 zsh -
47 36 11 85.3 bumpleak/osh mut
48 40 8 86.2 _bin/cxx-opt+bumproot/osh mut
59 42 17 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
84 53 31 73.7 osh-native mut+alloc
93 65 28 75.5 osh-native mut+alloc+free
166 139 27 51.9 osh-native mut+alloc+free+gc
178 155 23 52.4 osh-native mut+alloc+free+gc+exit
94 60 34 74.1 osh-nosouffle mut+alloc
105 67 38 75.9 osh-nosouffle mut+alloc+free
171 152 19 52.3 osh-nosouffle mut+alloc+free+gc
184 156 28 52.8 osh-nosouffle mut+alloc+free+gc+exit
129 82 47 99.6 _bin/cxx-opt+nopool/osh mut+alloc
241 211 30 72.8 _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.7 dash -
4 4 0 3.1 bash -
7 0 7 3.4 zsh -
6 6 0 13.0 bumpleak/osh mut
7 5 2 11.9 _bin/cxx-opt+bumproot/osh mut
7 4 3 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.6 osh-native mut+alloc
9 8 1 10.7 osh-native mut+alloc+free
10 5 5 8.5 osh-native mut+alloc+free+gc
11 9 2 8.9 osh-native mut+alloc+free+gc+exit
9 3 6 11.1 osh-nosouffle mut+alloc
9 7 2 11.1 osh-nosouffle mut+alloc+free
11 8 3 9.2 osh-nosouffle mut+alloc+free+gc
11 8 3 9.3 osh-nosouffle mut+alloc+free+gc+exit
12 7 5 11.9 _bin/cxx-opt+nopool/osh mut+alloc
13 11 2 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 1 1.6 dash -
31 29 2 3.1 bash -
22 17 5 3.4 zsh -
18 14 3 33.0 bumpleak/osh mut
18 13 6 32.6 _bin/cxx-opt+bumproot/osh mut
21 15 6 33.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 15 14 26.7 osh-native mut+alloc
31 22 9 27.0 osh-native mut+alloc+free
20 16 4 8.3 osh-native mut+alloc+free+gc
21 18 2 8.1 osh-native mut+alloc+free+gc+exit
34 25 9 27.3 osh-nosouffle mut+alloc
36 23 13 27.6 osh-nosouffle mut+alloc+free
25 22 3 8.8 osh-nosouffle mut+alloc+free+gc
26 23 3 8.7 osh-nosouffle mut+alloc+free+gc+exit
48 25 23 36.2 _bin/cxx-opt+nopool/osh mut+alloc
30 26 4 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 99 5 3.4 bash -
216 168 48 58.0 bumpleak/osh mut
227 178 49 57.8 _bin/cxx-opt+bumproot/osh mut
244 179 65 58.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
260 181 79 48.9 osh-native mut+alloc
274 196 78 50.7 osh-native mut+alloc+free
232 179 52 8.9 osh-native mut+alloc+free+gc
229 181 48 9.0 osh-native mut+alloc+free+gc+exit
266 196 70 49.3 osh-nosouffle mut+alloc
278 205 73 51.3 osh-nosouffle mut+alloc+free
233 190 43 9.6 osh-nosouffle mut+alloc+free+gc
236 192 44 9.7 osh-nosouffle mut+alloc+free+gc+exit
283 201 82 64.4 _bin/cxx-opt+nopool/osh mut+alloc
284 237 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
10 5 5 3.9 dash -
16 10 7 4.8 bash -
16 5 12 3.9 zsh -
18 9 10 13.8 bumpleak/osh mut
19 7 12 14.0 _bin/cxx-opt+bumproot/osh mut
19 6 14 13.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 9 13 11.5 osh-native mut+alloc
22 11 12 11.7 osh-native mut+alloc+free
22 10 12 9.3 osh-native mut+alloc+free+gc
22 13 10 9.6 osh-native mut+alloc+free+gc+exit
21 11 11 12.1 osh-nosouffle mut+alloc
23 13 11 12.3 osh-nosouffle mut+alloc+free
23 11 13 10.0 osh-nosouffle mut+alloc+free+gc
24 12 13 10.1 osh-nosouffle mut+alloc+free+gc+exit
25 16 10 13.1 _bin/cxx-opt+nopool/osh mut+alloc
26 14 12 10.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc