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 34 4 11 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.7 471,276 1,282 6 413,168 5 206,584 osh-nosouffle
parse.configure-coreutils 153 30 78 45.9 51.6 1,638,015 4,764 12 1,056,658 6 787,850 osh-native
parse.configure-coreutils 161 27 76 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.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 21 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.5 572,128 22,608 12 50,000 0 2,995 osh-nosouffle
ex.bashcomp-parse-help 225 0 5 11.6 9.2 990,274 15,258 21 50,000 0 3,968 osh-native
ex.bashcomp-parse-help 231 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.6 117,259 277 3 84,008 1 42,004 osh-native
ex.abuild-print-help 22 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 6 1 1.7 dash -
13 12 1 3.3 bash -
90 50 47 3.4 zsh -
15 11 4 29.5 bumpleak/osh mut
16 12 4 29.5 _bin/cxx-opt+bumproot/osh mut
19 15 4 30.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 16 10 25.4 osh-native mut+alloc
28 19 9 25.8 osh-native mut+alloc+free
34 23 11 18.2 osh-native mut+alloc+free+gc
34 24 10 18.1 osh-native mut+alloc+free+gc+exit
29 20 8 26.0 osh-nosouffle mut+alloc
31 24 7 26.3 osh-nosouffle mut+alloc+free
35 29 6 18.7 osh-nosouffle mut+alloc+free+gc
37 28 8 18.7 osh-nosouffle mut+alloc+free+gc+exit
40 24 16 32.3 _bin/cxx-opt+nopool/osh mut+alloc
48 34 15 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 22 1 1.6 dash -
43 41 2 3.4 bash -
323 183 163 3.5 zsh -
46 38 8 85.5 bumpleak/osh mut
50 40 10 86.5 _bin/cxx-opt+bumproot/osh mut
59 42 17 85.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
86 52 34 73.7 osh-native mut+alloc
92 62 31 75.6 osh-native mut+alloc+free
153 129 25 51.6 osh-native mut+alloc+free+gc
166 135 31 52.4 osh-native mut+alloc+free+gc+exit
94 58 36 74.2 osh-nosouffle mut+alloc
102 72 29 76.0 osh-nosouffle mut+alloc+free
161 143 18 52.3 osh-nosouffle mut+alloc+free+gc
166 144 22 52.8 osh-nosouffle mut+alloc+free+gc+exit
128 82 46 97.9 _bin/cxx-opt+nopool/osh mut+alloc
218 188 30 72.7 _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 2 2 3.1 bash -
7 5 2 3.4 zsh -
7 2 5 12.3 bumpleak/osh mut
6 5 1 13.0 _bin/cxx-opt+bumproot/osh mut
7 3 4 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 3 5 10.5 osh-native mut+alloc
9 4 4 10.6 osh-native mut+alloc+free
9 7 2 8.8 osh-native mut+alloc+free+gc
9 7 2 9.0 osh-native mut+alloc+free+gc+exit
9 5 4 11.0 osh-nosouffle mut+alloc
9 6 3 11.0 osh-nosouffle mut+alloc+free
10 9 1 9.2 osh-nosouffle mut+alloc+free+gc
10 7 3 9.4 osh-nosouffle mut+alloc+free+gc+exit
11 6 5 12.0 _bin/cxx-opt+nopool/osh mut+alloc
12 9 3 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 8 1 1.4 dash -
31 29 2 3.3 bash -
21 15 6 3.5 zsh -
17 13 4 33.0 bumpleak/osh mut
19 12 6 32.7 _bin/cxx-opt+bumproot/osh mut
21 15 6 32.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 17 12 27.0 osh-native mut+alloc
31 21 10 27.1 osh-native mut+alloc+free
21 18 3 8.3 osh-native mut+alloc+free+gc
20 16 4 8.4 osh-native mut+alloc+free+gc+exit
33 27 6 27.5 osh-nosouffle mut+alloc
35 26 9 27.5 osh-nosouffle mut+alloc+free
25 22 3 8.5 osh-nosouffle mut+alloc+free+gc
25 21 4 8.8 osh-nosouffle mut+alloc+free+gc+exit
47 27 20 36.3 _bin/cxx-opt+nopool/osh mut+alloc
30 25 5 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 102 2 3.5 bash -
214 156 58 56.3 bumpleak/osh mut
222 165 57 56.6 _bin/cxx-opt+bumproot/osh mut
240 183 57 56.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
259 191 68 48.9 osh-native mut+alloc
266 210 56 50.7 osh-native mut+alloc+free
225 176 49 9.2 osh-native mut+alloc+free+gc
225 182 43 9.2 osh-native mut+alloc+free+gc+exit
262 202 60 49.4 osh-nosouffle mut+alloc
272 201 71 51.3 osh-nosouffle mut+alloc+free
231 171 60 9.6 osh-nosouffle mut+alloc+free+gc
231 185 46 9.7 osh-nosouffle mut+alloc+free+gc+exit
281 203 79 64.8 _bin/cxx-opt+nopool/osh mut+alloc
258 196 62 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 5 4 3.9 dash -
16 11 5 4.8 bash -
16 10 6 3.9 zsh -
20 8 12 13.7 bumpleak/osh mut
18 8 11 12.6 _bin/cxx-opt+bumproot/osh mut
20 9 12 14.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 8 13 11.7 osh-native mut+alloc
21 12 10 11.7 osh-native mut+alloc+free
21 10 11 9.6 osh-native mut+alloc+free+gc
21 11 11 9.6 osh-native mut+alloc+free+gc+exit
21 9 13 12.2 osh-nosouffle mut+alloc
22 11 12 12.3 osh-nosouffle mut+alloc+free
22 11 11 10.0 osh-nosouffle mut+alloc+free+gc
23 10 13 10.2 osh-nosouffle mut+alloc+free+gc+exit
23 12 12 13.2 _bin/cxx-opt+nopool/osh mut+alloc
25 16 10 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc