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 33 4 10 12.0 18.4 471,269 1,282 6 413,154 5 206,577 osh-native
parse.configure-cpython 36 4 11 12.0 18.7 471,269 1,282 6 413,162 5 206,581 osh-nosouffle
parse.configure-coreutils 145 26 70 45.9 51.5 1,638,008 4,764 12 1,056,652 6 787,847 osh-native
parse.configure-coreutils 159 27 74 45.9 52.1 1,638,007 4,764 12 1,056,660 6 787,851 osh-nosouffle
parse.abuild 9 1 2 2.6 8.5 102,797 180 3 86,640 1 43,320 osh-native
parse.abuild 10 1 2 2.6 9.0 102,797 180 3 86,648 1 43,324 osh-nosouffle
ex.compute-fib 20 0 1 2.8 8.3 572,121 22,608 12 50,000 0 2,987 osh-native
ex.compute-fib 25 0 2 2.8 8.7 572,121 22,608 12 50,000 0 2,992 osh-nosouffle
ex.bashcomp-parse-help 223 0 4 11.6 9.2 990,267 15,258 21 50,000 0 3,965 osh-native
ex.bashcomp-parse-help 226 0 4 11.6 9.7 990,266 15,258 21 50,000 0 3,971 osh-nosouffle
ex.abuild-print-help 20 1 2 3.0 9.4 117,225 277 3 84,002 1 42,001 osh-native
ex.abuild-print-help 22 1 2 3.0 10.1 117,224 277 3 84,010 1 42,005 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.7 dash -
13 11 2 3.4 bash -
90 49 48 3.5 zsh -
15 12 4 30.1 bumpleak/osh mut
16 11 5 29.4 _bin/cxx-opt+bumproot/osh mut
20 11 8 30.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 15 11 25.4 osh-native mut+alloc
28 16 11 25.8 osh-native mut+alloc+free
33 25 7 18.4 osh-native mut+alloc+free+gc
34 26 8 18.2 osh-native mut+alloc+free+gc+exit
28 18 10 26.0 osh-nosouffle mut+alloc
31 23 8 26.2 osh-nosouffle mut+alloc+free
36 27 9 18.7 osh-nosouffle mut+alloc+free+gc
35 28 7 18.7 osh-nosouffle mut+alloc+free+gc+exit
40 20 20 33.1 _bin/cxx-opt+nopool/osh mut+alloc
47 37 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 22 1 1.7 dash -
42 42 0 3.4 bash -
327 185 165 3.5 zsh -
46 37 8 86.1 bumpleak/osh mut
48 37 11 86.1 _bin/cxx-opt+bumproot/osh mut
60 45 15 86.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
84 52 32 73.7 osh-native mut+alloc
92 69 23 75.5 osh-native mut+alloc+free
145 126 19 51.5 osh-native mut+alloc+free+gc
150 130 20 52.3 osh-native mut+alloc+free+gc+exit
93 54 40 74.1 osh-nosouffle mut+alloc
102 73 30 76.2 osh-nosouffle mut+alloc+free
159 126 33 52.1 osh-nosouffle mut+alloc+free+gc
168 140 28 52.8 osh-nosouffle mut+alloc+free+gc+exit
127 81 46 98.2 _bin/cxx-opt+nopool/osh mut+alloc
216 184 32 73.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 2 0 1.7 dash -
4 2 2 3.1 bash -
6 5 1 3.4 zsh -
6 3 3 12.6 bumpleak/osh mut
6 4 2 13.2 _bin/cxx-opt+bumproot/osh mut
7 4 3 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.5 osh-native mut+alloc
8 5 4 10.6 osh-native mut+alloc+free
9 6 3 8.5 osh-native mut+alloc+free+gc
9 4 5 8.8 osh-native mut+alloc+free+gc+exit
9 8 1 11.1 osh-nosouffle mut+alloc
9 6 3 11.1 osh-nosouffle mut+alloc+free
10 7 3 9.0 osh-nosouffle mut+alloc+free+gc
10 6 5 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 9 3 12.0 _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 8 2 1.6 dash -
31 29 2 3.1 bash -
21 15 6 3.4 zsh -
16 12 4 32.1 bumpleak/osh mut
18 13 5 33.1 _bin/cxx-opt+bumproot/osh mut
21 13 8 33.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 16 12 26.9 osh-native mut+alloc
31 22 9 27.0 osh-native mut+alloc+free
20 19 1 8.3 osh-native mut+alloc+free+gc
20 15 5 8.3 osh-native mut+alloc+free+gc+exit
33 22 11 27.3 osh-nosouffle mut+alloc
36 26 10 27.5 osh-nosouffle mut+alloc+free
25 21 4 8.7 osh-nosouffle mut+alloc+free+gc
25 21 4 8.7 osh-nosouffle mut+alloc+free+gc+exit
45 31 14 36.2 _bin/cxx-opt+nopool/osh mut+alloc
30 24 6 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
105 102 3 3.5 bash -
212 160 52 56.1 bumpleak/osh mut
218 165 53 57.4 _bin/cxx-opt+bumproot/osh mut
241 171 70 58.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
256 181 75 48.8 osh-native mut+alloc
265 191 74 50.9 osh-native mut+alloc+free
223 175 48 9.2 osh-native mut+alloc+free+gc
223 178 45 9.0 osh-native mut+alloc+free+gc+exit
265 200 65 49.2 osh-nosouffle mut+alloc
268 193 76 51.4 osh-nosouffle mut+alloc+free
226 165 61 9.7 osh-nosouffle mut+alloc+free+gc
228 186 42 9.6 osh-nosouffle mut+alloc+free+gc+exit
278 199 79 64.0 _bin/cxx-opt+nopool/osh mut+alloc
261 220 41 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 3 7 3.9 dash -
16 9 7 5.0 bash -
16 5 12 3.8 zsh -
19 6 14 13.6 bumpleak/osh mut
19 11 8 13.8 _bin/cxx-opt+bumproot/osh mut
20 9 11 13.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 6 14 11.5 osh-native mut+alloc
21 12 10 11.7 osh-native mut+alloc+free
20 12 10 9.4 osh-native mut+alloc+free+gc
21 13 9 9.7 osh-native mut+alloc+free+gc+exit
21 11 10 12.1 osh-nosouffle mut+alloc
22 14 9 12.2 osh-nosouffle mut+alloc+free
22 7 16 10.1 osh-nosouffle mut+alloc+free+gc
22 13 10 10.2 osh-nosouffle mut+alloc+free+gc+exit
23 10 14 13.1 _bin/cxx-opt+nopool/osh mut+alloc
24 17 8 10.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc