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 35 5 13 12.0 18.4 471,263 1,282 6 413,142 5 206,571 osh-native
parse.configure-cpython 36 4 11 12.0 18.7 471,263 1,282 6 413,150 5 206,575 osh-nosouffle
parse.configure-coreutils 136 25 63 45.9 51.7 1,638,002 4,764 12 1,056,640 6 787,841 osh-native
parse.configure-coreutils 142 23 59 45.9 52.1 1,638,001 4,764 12 1,056,648 6 787,845 osh-nosouffle
parse.abuild 10 1 3 2.6 8.7 102,791 180 3 86,628 1 43,314 osh-native
parse.abuild 10 1 2 2.6 9.3 102,791 180 3 86,636 1 43,318 osh-nosouffle
ex.compute-fib 21 0 2 2.8 8.3 572,115 22,608 12 50,000 0 2,982 osh-native
ex.compute-fib 25 0 2 2.8 8.7 572,115 22,608 12 50,000 0 2,985 osh-nosouffle
ex.bashcomp-parse-help 229 0 4 11.6 9.2 990,261 15,258 21 50,000 0 3,965 osh-native
ex.bashcomp-parse-help 230 0 4 11.6 9.7 990,260 15,258 21 50,000 0 3,969 osh-nosouffle
ex.abuild-print-help 22 1 3 3.0 9.3 117,219 277 3 83,990 1 41,995 osh-native
ex.abuild-print-help 23 1 3 3.0 10.0 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
6 6 0 1.7 dash -
13 12 1 3.3 bash -
89 55 41 3.5 zsh -
15 11 4 29.6 bumpleak/osh mut
16 11 5 28.9 _bin/cxx-opt+bumproot/osh mut
19 14 5 29.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 15 10 25.4 osh-native mut+alloc
27 15 12 25.8 osh-native mut+alloc+free
35 28 8 18.4 osh-native mut+alloc+free+gc
35 31 4 18.4 osh-native mut+alloc+free+gc+exit
29 20 9 26.1 osh-nosouffle mut+alloc
31 21 10 26.5 osh-nosouffle mut+alloc+free
36 28 8 18.7 osh-nosouffle mut+alloc+free+gc
39 33 6 18.6 osh-nosouffle mut+alloc+free+gc+exit
39 24 15 32.8 _bin/cxx-opt+nopool/osh mut+alloc
44 35 9 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 22 1 1.8 dash -
42 42 0 3.4 bash -
324 192 154 3.7 zsh -
45 36 9 84.7 bumpleak/osh mut
49 34 15 85.4 _bin/cxx-opt+bumproot/osh mut
58 48 10 85.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
81 46 34 73.5 osh-native mut+alloc
91 49 42 75.5 osh-native mut+alloc+free
136 118 18 51.7 osh-native mut+alloc+free+gc
142 118 24 52.3 osh-native mut+alloc+free+gc+exit
92 58 35 74.1 osh-nosouffle mut+alloc
99 64 35 76.0 osh-nosouffle mut+alloc+free
142 113 29 52.1 osh-nosouffle mut+alloc+free+gc
147 124 23 52.8 osh-nosouffle mut+alloc+free+gc+exit
125 75 51 99.0 _bin/cxx-opt+nopool/osh mut+alloc
192 149 43 71.4 _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 2 1.7 dash -
4 3 1 3.1 bash -
7 3 3 3.4 zsh -
6 3 4 12.8 bumpleak/osh mut
7 6 1 12.8 _bin/cxx-opt+bumproot/osh mut
7 5 2 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.5 osh-native mut+alloc
8 4 4 10.5 osh-native mut+alloc+free
10 7 3 8.7 osh-native mut+alloc+free+gc
31 25 6 8.7 osh-native mut+alloc+free+gc+exit
9 6 3 11.0 osh-nosouffle mut+alloc
9 4 4 11.0 osh-nosouffle mut+alloc+free
10 6 4 9.3 osh-nosouffle mut+alloc+free+gc
10 7 3 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 5 7 12.0 _bin/cxx-opt+nopool/osh mut+alloc
12 10 2 9.4 _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 2 3.3 bash -
21 15 6 3.4 zsh -
17 13 4 32.8 bumpleak/osh mut
18 15 3 32.3 _bin/cxx-opt+bumproot/osh mut
21 15 6 33.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 19 10 27.0 osh-native mut+alloc
31 24 7 27.0 osh-native mut+alloc+free
21 19 1 8.3 osh-native mut+alloc+free+gc
21 17 4 8.3 osh-native mut+alloc+free+gc+exit
34 23 11 27.3 osh-nosouffle mut+alloc
36 28 8 27.5 osh-nosouffle mut+alloc+free
25 23 2 8.7 osh-nosouffle mut+alloc+free+gc
25 23 2 8.7 osh-nosouffle mut+alloc+free+gc+exit
46 26 20 36.2 _bin/cxx-opt+nopool/osh mut+alloc
30 26 4 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 99 5 3.4 bash -
215 165 50 56.2 bumpleak/osh mut
221 160 61 56.6 _bin/cxx-opt+bumproot/osh mut
241 183 58 58.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
314 229 85 48.8 osh-native mut+alloc
270 198 72 50.6 osh-native mut+alloc+free
229 175 54 9.2 osh-native mut+alloc+free+gc
224 183 41 9.0 osh-native mut+alloc+free+gc+exit
268 194 74 49.3 osh-nosouffle mut+alloc
278 213 65 51.1 osh-nosouffle mut+alloc+free
230 183 47 9.7 osh-nosouffle mut+alloc+free+gc
242 191 50 9.6 osh-nosouffle mut+alloc+free+gc+exit
284 200 84 65.9 _bin/cxx-opt+nopool/osh mut+alloc
261 206 55 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 6 4 3.9 dash -
16 9 8 4.8 bash -
16 9 7 3.8 zsh -
17 11 7 13.9 bumpleak/osh mut
18 8 10 14.2 _bin/cxx-opt+bumproot/osh mut
18 9 10 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 11 10 11.5 osh-native mut+alloc
22 11 11 11.7 osh-native mut+alloc+free
22 14 9 9.3 osh-native mut+alloc+free+gc
23 15 8 9.7 osh-native mut+alloc+free+gc+exit
21 13 9 12.1 osh-nosouffle mut+alloc
33 14 20 12.2 osh-nosouffle mut+alloc+free
23 11 13 10.0 osh-nosouffle mut+alloc+free+gc
23 16 8 10.2 osh-nosouffle mut+alloc+free+gc+exit
24 12 12 13.2 _bin/cxx-opt+nopool/osh mut+alloc
26 14 12 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc