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 37 7 14 12.0 18.1 471,276 1,282 6 413,160 5 206,580 osh-native
parse.configure-cpython 39 6 13 12.0 18.7 471,276 1,282 6 413,168 5 206,584 osh-nosouffle
parse.configure-coreutils 151 29 76 45.9 51.9 1,638,015 4,764 12 1,056,658 6 787,850 osh-native
parse.configure-coreutils 173 31 86 45.9 52.1 1,638,014 4,764 12 1,056,666 6 787,854 osh-nosouffle
parse.abuild 10 1 3 2.6 8.8 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 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.7 572,128 22,608 12 50,000 0 2,995 osh-nosouffle
ex.bashcomp-parse-help 223 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.7 990,273 15,258 21 50,000 0 3,974 osh-nosouffle
ex.abuild-print-help 21 1 2 3.0 9.4 117,259 277 3 84,008 1 42,004 osh-native
ex.abuild-print-help 23 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.8 dash -
13 12 1 3.3 bash -
91 54 45 3.4 zsh -
16 14 2 28.9 bumpleak/osh mut
17 11 6 28.9 _bin/cxx-opt+bumproot/osh mut
20 18 2 30.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 19 7 25.6 osh-native mut+alloc
28 19 9 25.8 osh-native mut+alloc+free
37 27 10 18.1 osh-native mut+alloc+free+gc
37 33 4 18.5 osh-native mut+alloc+free+gc+exit
29 15 14 26.0 osh-nosouffle mut+alloc
32 25 7 26.3 osh-nosouffle mut+alloc+free
39 31 8 18.7 osh-nosouffle mut+alloc+free+gc
40 31 8 18.7 osh-nosouffle mut+alloc+free+gc+exit
39 28 11 32.4 _bin/cxx-opt+nopool/osh mut+alloc
49 35 14 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 23 0 1.7 dash -
47 46 1 3.3 bash -
334 205 153 3.8 zsh -
45 38 7 86.1 bumpleak/osh mut
50 44 6 85.9 _bin/cxx-opt+bumproot/osh mut
59 49 10 85.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
85 59 26 73.6 osh-native mut+alloc
93 66 26 75.5 osh-native mut+alloc+free
151 130 20 51.9 osh-native mut+alloc+free+gc
168 136 32 52.3 osh-native mut+alloc+free+gc+exit
92 57 35 74.2 osh-nosouffle mut+alloc
103 72 31 75.9 osh-nosouffle mut+alloc+free
173 143 30 52.1 osh-nosouffle mut+alloc+free+gc
181 153 28 52.8 osh-nosouffle mut+alloc+free+gc+exit
129 82 48 98.5 _bin/cxx-opt+nopool/osh mut+alloc
222 191 31 72.1 _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 1 3 3.1 bash -
7 4 3 3.4 zsh -
6 4 2 12.7 bumpleak/osh mut
6 3 3 12.8 _bin/cxx-opt+bumproot/osh mut
7 5 3 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 3 5 10.6 osh-native mut+alloc
9 4 5 10.7 osh-native mut+alloc+free
10 7 3 8.8 osh-native mut+alloc+free+gc
10 6 4 8.8 osh-native mut+alloc+free+gc+exit
9 8 1 11.0 osh-nosouffle mut+alloc
10 4 6 11.1 osh-nosouffle mut+alloc+free
11 7 4 9.2 osh-nosouffle mut+alloc+free+gc
11 6 6 9.4 osh-nosouffle mut+alloc+free+gc+exit
11 7 4 12.0 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 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
10 9 1 1.7 dash -
31 30 1 3.3 bash -
22 15 7 3.4 zsh -
18 13 5 32.5 bumpleak/osh mut
18 14 4 31.9 _bin/cxx-opt+bumproot/osh mut
21 18 4 32.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 19 10 26.9 osh-native mut+alloc
32 18 14 27.3 osh-native mut+alloc+free
21 20 1 8.3 osh-native mut+alloc+free+gc
21 17 4 8.3 osh-native mut+alloc+free+gc+exit
34 20 14 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
26 22 4 8.9 osh-nosouffle mut+alloc+free+gc+exit
46 27 18 36.1 _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
105 99 6 3.4 bash -
214 158 56 55.9 bumpleak/osh mut
224 178 46 58.2 _bin/cxx-opt+bumproot/osh mut
241 173 68 57.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
260 193 67 48.9 osh-native mut+alloc
266 185 81 50.7 osh-native mut+alloc+free
223 169 54 9.0 osh-native mut+alloc+free+gc
224 184 40 9.2 osh-native mut+alloc+free+gc+exit
262 189 73 49.6 osh-nosouffle mut+alloc
276 201 75 51.3 osh-nosouffle mut+alloc+free
230 182 48 9.7 osh-nosouffle mut+alloc+free+gc
229 177 53 9.8 osh-nosouffle mut+alloc+free+gc+exit
285 208 77 65.2 _bin/cxx-opt+nopool/osh mut+alloc
254 200 54 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.8 dash -
16 10 7 4.7 bash -
16 7 9 3.9 zsh -
18 8 10 12.8 bumpleak/osh mut
19 10 9 12.9 _bin/cxx-opt+bumproot/osh mut
19 8 12 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 8 13 11.7 osh-native mut+alloc
21 11 11 11.5 osh-native mut+alloc+free
21 11 10 9.4 osh-native mut+alloc+free+gc
22 10 13 9.6 osh-native mut+alloc+free+gc+exit
21 7 15 12.2 osh-nosouffle mut+alloc
23 10 14 12.2 osh-nosouffle mut+alloc+free
23 11 12 10.0 osh-nosouffle mut+alloc+free+gc
24 15 9 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 13 11 13.1 _bin/cxx-opt+nopool/osh mut+alloc
25 12 14 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc