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 32 4 10 12.0 18.2 471,276 1,282 6 413,160 5 206,580 osh-native
parse.configure-cpython 38 5 12 12.0 18.7 471,276 1,282 6 413,168 5 206,584 osh-nosouffle
parse.configure-coreutils 148 29 74 45.9 51.7 1,638,015 4,764 12 1,056,658 6 787,850 osh-native
parse.configure-coreutils 165 29 81 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 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.5 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 224 0 4 11.6 9.0 990,274 15,258 21 50,000 0 3,968 osh-native
ex.bashcomp-parse-help 230 0 4 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.4 117,235 277 3 84,008 1 42,004 osh-native
ex.abuild-print-help 22 1 2 3.0 10.1 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 6 1 1.6 dash -
13 12 1 3.3 bash -
91 61 37 3.4 zsh -
15 12 4 29.8 bumpleak/osh mut
17 14 3 30.7 _bin/cxx-opt+bumproot/osh mut
19 12 8 30.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 19 7 25.4 osh-native mut+alloc
28 13 15 26.0 osh-native mut+alloc+free
32 26 6 18.2 osh-native mut+alloc+free+gc
34 28 6 18.4 osh-native mut+alloc+free+gc+exit
28 14 14 26.1 osh-nosouffle mut+alloc
31 20 11 26.2 osh-nosouffle mut+alloc+free
38 30 8 18.7 osh-nosouffle mut+alloc+free+gc
39 31 8 18.7 osh-nosouffle mut+alloc+free+gc+exit
39 26 13 32.3 _bin/cxx-opt+nopool/osh mut+alloc
51 41 10 22.7 _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 20 3 1.6 dash -
43 42 1 3.5 bash -
334 179 178 3.7 zsh -
46 37 9 86.1 bumpleak/osh mut
49 41 8 85.4 _bin/cxx-opt+bumproot/osh mut
59 42 17 85.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
87 59 28 73.7 osh-native mut+alloc
92 61 31 75.4 osh-native mut+alloc+free
148 126 22 51.7 osh-native mut+alloc+free+gc
151 116 35 52.5 osh-native mut+alloc+free+gc+exit
92 70 22 74.1 osh-nosouffle mut+alloc
102 61 41 76.0 osh-nosouffle mut+alloc+free
165 144 21 52.3 osh-nosouffle mut+alloc+free+gc
164 136 28 53.1 osh-nosouffle mut+alloc+free+gc+exit
124 80 44 98.2 _bin/cxx-opt+nopool/osh mut+alloc
217 183 33 72.6 _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 1 3.1 bash -
7 2 4 3.4 zsh -
7 7 0 12.0 bumpleak/osh mut
6 3 3 12.6 _bin/cxx-opt+bumproot/osh mut
7 3 4 11.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.4 osh-native mut+alloc
9 6 3 10.7 osh-native mut+alloc+free
10 8 2 8.5 osh-native mut+alloc+free+gc
10 8 2 9.0 osh-native mut+alloc+free+gc+exit
9 6 3 11.0 osh-nosouffle mut+alloc
9 7 2 11.1 osh-nosouffle mut+alloc+free
11 7 4 9.2 osh-nosouffle mut+alloc+free+gc
11 8 3 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 8 4 11.9 _bin/cxx-opt+nopool/osh mut+alloc
13 9 4 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 0 1.6 dash -
30 29 1 3.3 bash -
21 12 9 3.4 zsh -
18 14 4 32.9 bumpleak/osh mut
19 13 6 32.5 _bin/cxx-opt+bumproot/osh mut
21 17 4 33.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 24 5 26.9 osh-native mut+alloc
31 19 12 27.1 osh-native mut+alloc+free
20 17 3 8.5 osh-native mut+alloc+free+gc
21 20 1 8.1 osh-native mut+alloc+free+gc+exit
34 21 13 27.3 osh-nosouffle mut+alloc
36 22 14 27.5 osh-nosouffle mut+alloc+free
25 22 3 8.8 osh-nosouffle mut+alloc+free+gc
25 22 3 8.7 osh-nosouffle mut+alloc+free+gc+exit
46 32 13 36.3 _bin/cxx-opt+nopool/osh mut+alloc
30 27 3 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
104 98 6 3.4 bash -
213 159 54 56.0 bumpleak/osh mut
223 171 52 58.0 _bin/cxx-opt+bumproot/osh mut
242 176 66 58.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
257 186 71 48.8 osh-native mut+alloc
268 198 70 50.9 osh-native mut+alloc+free
224 178 46 9.0 osh-native mut+alloc+free+gc
227 166 61 8.9 osh-native mut+alloc+free+gc+exit
267 193 74 49.2 osh-nosouffle mut+alloc
276 202 74 51.2 osh-nosouffle mut+alloc+free
230 185 45 9.6 osh-nosouffle mut+alloc+free+gc
234 178 56 9.7 osh-nosouffle mut+alloc+free+gc+exit
282 202 80 65.5 _bin/cxx-opt+nopool/osh mut+alloc
256 204 52 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 5 3.9 dash -
16 8 8 4.8 bash -
16 10 7 4.1 zsh -
18 5 14 12.7 bumpleak/osh mut
18 10 9 14.1 _bin/cxx-opt+bumproot/osh mut
19 7 13 13.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 8 13 11.5 osh-native mut+alloc
22 10 13 11.8 osh-native mut+alloc+free
22 11 12 9.4 osh-native mut+alloc+free+gc
23 13 10 9.6 osh-native mut+alloc+free+gc+exit
22 10 12 12.1 osh-nosouffle mut+alloc
23 8 16 12.2 osh-nosouffle mut+alloc+free
22 12 11 10.1 osh-nosouffle mut+alloc+free+gc
23 11 14 10.2 osh-nosouffle mut+alloc+free+gc+exit
23 12 12 13.1 _bin/cxx-opt+nopool/osh mut+alloc
25 14 11 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc