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 30 4 10 12.0 18.6 471,263 1,282 6 413,142 5 206,571 osh-native
parse.configure-cpython 33 4 11 12.0 18.9 471,263 1,282 6 413,150 5 206,575 osh-nosouffle
parse.configure-coreutils 133 21 65 45.9 51.7 1,638,002 4,764 12 1,056,640 6 787,841 osh-native
parse.configure-coreutils 138 22 63 45.9 52.3 1,638,001 4,764 12 1,056,648 6 787,845 osh-nosouffle
parse.abuild 8 1 2 2.6 8.8 102,791 180 3 86,628 1 43,314 osh-native
parse.abuild 9 1 2 2.6 9.2 102,791 180 3 86,636 1 43,318 osh-nosouffle
ex.compute-fib 19 0 2 2.8 8.3 572,115 22,608 12 50,000 0 2,982 osh-native
ex.compute-fib 24 0 2 2.8 8.7 572,115 22,608 12 50,000 0 2,985 osh-nosouffle
ex.bashcomp-parse-help 174 0 5 11.6 9.2 990,261 15,258 21 50,000 0 3,965 osh-native
ex.bashcomp-parse-help 179 0 5 11.6 9.7 990,260 15,258 21 50,000 0 3,969 osh-nosouffle
ex.abuild-print-help 17 1 2 3.0 9.4 117,219 277 3 83,990 1 41,995 osh-native
ex.abuild-print-help 18 1 2 3.0 10.1 117,218 277 3 83,998 1 41,999 osh-nosouffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
5 5 0 1.7 dash -
12 11 1 3.4 bash -
67 47 25 3.5 zsh -
16 10 6 29.3 bumpleak/osh mut
17 14 3 29.6 _bin/cxx-opt+bumproot/osh mut
20 12 7 29.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 16 6 25.7 osh-native mut+alloc
25 17 8 25.8 osh-native mut+alloc+free
30 25 5 18.6 osh-native mut+alloc+free+gc
31 26 5 18.4 osh-native mut+alloc+free+gc+exit
25 20 4 25.8 osh-nosouffle mut+alloc
28 17 10 26.3 osh-nosouffle mut+alloc+free
33 28 5 18.9 osh-nosouffle mut+alloc+free+gc
34 29 5 18.7 osh-nosouffle mut+alloc+free+gc+exit
33 21 12 32.8 _bin/cxx-opt+nopool/osh mut+alloc
46 36 10 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
18 17 1 1.7 dash -
38 38 0 3.4 bash -
238 148 106 3.8 zsh -
50 34 15 86.4 bumpleak/osh mut
53 35 18 84.9 _bin/cxx-opt+bumproot/osh mut
61 44 17 84.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
70 43 26 73.8 osh-native mut+alloc
83 63 19 75.5 osh-native mut+alloc+free
133 117 16 51.7 osh-native mut+alloc+free+gc
141 121 20 52.3 osh-native mut+alloc+free+gc+exit
79 63 16 74.2 osh-nosouffle mut+alloc
90 67 22 76.0 osh-nosouffle mut+alloc+free
138 117 21 52.3 osh-nosouffle mut+alloc+free+gc
145 120 25 52.8 osh-nosouffle mut+alloc+free+gc+exit
109 68 41 99.0 _bin/cxx-opt+nopool/osh mut+alloc
193 167 26 72.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
1 1 0 1.7 dash -
3 3 0 3.1 bash -
5 3 2 3.4 zsh -
6 3 3 11.5 bumpleak/osh mut
6 3 3 12.3 _bin/cxx-opt+bumproot/osh mut
7 1 6 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
7 3 4 10.5 osh-native mut+alloc
7 6 1 10.6 osh-native mut+alloc+free
8 5 4 8.8 osh-native mut+alloc+free+gc
9 8 1 8.9 osh-native mut+alloc+free+gc+exit
7 2 5 11.1 osh-nosouffle mut+alloc
8 5 3 11.3 osh-nosouffle mut+alloc+free
9 6 3 9.2 osh-nosouffle mut+alloc+free+gc
9 9 0 9.3 osh-nosouffle mut+alloc+free+gc+exit
9 8 1 12.0 _bin/cxx-opt+nopool/osh mut+alloc
11 9 2 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
9 9 0 1.6 dash -
29 29 0 3.0 bash -
16 16 1 3.3 zsh -
19 13 5 32.9 bumpleak/osh mut
20 14 6 33.8 _bin/cxx-opt+bumproot/osh mut
23 15 8 33.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 19 6 27.0 osh-native mut+alloc
28 18 9 27.3 osh-native mut+alloc+free
19 17 2 8.3 osh-native mut+alloc+free+gc
19 19 0 8.4 osh-native mut+alloc+free+gc+exit
29 21 9 27.4 osh-nosouffle mut+alloc
32 28 4 27.4 osh-nosouffle mut+alloc+free
24 23 1 8.7 osh-nosouffle mut+alloc+free+gc
24 24 0 8.8 osh-nosouffle mut+alloc+free+gc+exit
39 25 14 36.5 _bin/cxx-opt+nopool/osh mut+alloc
28 27 1 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
96 93 3 3.5 bash -
172 145 27 57.0 bumpleak/osh mut
183 151 31 56.4 _bin/cxx-opt+bumproot/osh mut
188 160 28 57.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
195 157 38 48.9 osh-native mut+alloc
203 167 36 50.9 osh-native mut+alloc+free
174 156 17 9.2 osh-native mut+alloc+free+gc
171 149 22 9.0 osh-native mut+alloc+free+gc+exit
198 153 45 49.2 osh-nosouffle mut+alloc
205 173 32 51.2 osh-nosouffle mut+alloc+free
179 159 20 9.7 osh-nosouffle mut+alloc+free+gc
177 153 24 9.3 osh-nosouffle mut+alloc+free+gc+exit
222 183 38 66.2 _bin/cxx-opt+nopool/osh mut+alloc
201 181 20 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
7 5 2 3.9 dash -
13 9 4 4.7 bash -
12 6 6 4.1 zsh -
16 11 5 13.5 bumpleak/osh mut
16 9 8 13.6 _bin/cxx-opt+bumproot/osh mut
17 11 6 13.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
16 7 10 11.5 osh-native mut+alloc
17 12 6 11.7 osh-native mut+alloc+free
17 10 8 9.4 osh-native mut+alloc+free+gc
18 10 8 9.6 osh-native mut+alloc+free+gc+exit
17 8 10 12.1 osh-nosouffle mut+alloc
18 11 8 12.3 osh-nosouffle mut+alloc+free
18 12 7 10.1 osh-nosouffle mut+alloc+free+gc
19 11 8 10.2 osh-nosouffle mut+alloc+free+gc+exit
18 11 8 13.1 _bin/cxx-opt+nopool/osh mut+alloc
20 10 10 10.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc