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 31 3 9 12.0 18.1 471,252 1,282 6 413,132 5 206,566 osh-native
parse.configure-cpython 37 6 12 12.0 18.6 471,252 1,282 6 413,140 5 206,570 osh-nosouffle
parse.configure-coreutils 150 28 73 45.9 51.7 1,637,991 4,764 12 1,056,630 6 787,836 osh-native
parse.configure-coreutils 161 27 75 45.9 52.0 1,637,990 4,764 12 1,056,638 6 787,840 osh-nosouffle
parse.abuild 9 1 2 2.6 8.8 102,780 180 3 86,618 1 43,309 osh-native
parse.abuild 12 1 3 2.6 9.0 102,780 180 3 86,626 1 43,313 osh-nosouffle
ex.compute-fib 20 0 1 2.8 8.4 572,104 22,608 12 50,000 0 2,977 osh-native
ex.compute-fib 25 0 2 2.8 8.7 572,104 22,608 12 50,000 0 2,981 osh-nosouffle
ex.bashcomp-parse-help 223 0 4 11.6 9.0 990,250 15,258 21 50,000 0 3,957 osh-native
ex.bashcomp-parse-help 229 0 4 11.6 9.6 990,249 15,258 21 50,000 0 3,966 osh-nosouffle
ex.abuild-print-help 20 1 2 3.0 9.4 117,208 277 3 83,980 1 41,990 osh-native
ex.abuild-print-help 21 1 2 3.0 10.1 117,207 277 3 83,988 1 41,994 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.7 dash -
13 12 1 3.3 bash -
90 48 49 3.5 zsh -
15 12 3 30.2 bumpleak/osh mut
16 13 3 29.7 _bin/cxx-opt+bumproot/osh mut
19 15 4 29.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 17 9 25.6 osh-native mut+alloc
28 18 10 25.8 osh-native mut+alloc+free
31 27 4 18.1 osh-native mut+alloc+free+gc
33 23 10 18.2 osh-native mut+alloc+free+gc+exit
29 20 9 25.8 osh-nosouffle mut+alloc
31 19 12 26.2 osh-nosouffle mut+alloc+free
37 28 9 18.6 osh-nosouffle mut+alloc+free+gc
36 29 8 18.7 osh-nosouffle mut+alloc+free+gc+exit
38 23 16 32.2 _bin/cxx-opt+nopool/osh mut+alloc
47 38 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.7 dash -
43 42 1 3.3 bash -
329 192 158 3.7 zsh -
45 36 9 85.8 bumpleak/osh mut
48 36 11 86.1 _bin/cxx-opt+bumproot/osh mut
60 44 16 86.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
83 51 32 73.7 osh-native mut+alloc
93 51 41 75.5 osh-native mut+alloc+free
150 130 20 51.7 osh-native mut+alloc+free+gc
152 133 19 52.5 osh-native mut+alloc+free+gc+exit
92 56 36 74.2 osh-nosouffle mut+alloc
100 74 26 76.0 osh-nosouffle mut+alloc+free
161 140 21 52.0 osh-nosouffle mut+alloc+free+gc
161 135 26 52.8 osh-nosouffle mut+alloc+free+gc+exit
123 85 38 98.1 _bin/cxx-opt+nopool/osh mut+alloc
218 181 37 74.2 _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.7 dash -
4 2 2 3.3 bash -
7 5 1 3.4 zsh -
6 5 1 12.4 bumpleak/osh mut
6 2 4 13.1 _bin/cxx-opt+bumproot/osh mut
7 4 3 11.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.6 osh-native mut+alloc
8 7 1 10.7 osh-native mut+alloc+free
9 6 3 8.8 osh-native mut+alloc+free+gc
9 8 1 9.0 osh-native mut+alloc+free+gc+exit
9 6 3 11.1 osh-nosouffle mut+alloc
9 4 5 11.1 osh-nosouffle mut+alloc+free
12 9 3 9.0 osh-nosouffle mut+alloc+free+gc
10 7 3 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 7 4 11.6 _bin/cxx-opt+nopool/osh mut+alloc
12 10 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 9 0 1.4 dash -
31 30 1 3.3 bash -
21 16 6 3.4 zsh -
16 13 3 31.9 bumpleak/osh mut
18 15 4 33.8 _bin/cxx-opt+bumproot/osh mut
22 14 7 32.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 20 9 26.9 osh-native mut+alloc
31 18 13 27.1 osh-native mut+alloc+free
20 19 1 8.4 osh-native mut+alloc+free+gc
20 18 2 8.3 osh-native mut+alloc+free+gc+exit
34 25 9 27.3 osh-nosouffle mut+alloc
36 27 9 27.7 osh-nosouffle mut+alloc+free
25 24 1 8.7 osh-nosouffle mut+alloc+free+gc
26 22 4 8.7 osh-nosouffle mut+alloc+free+gc+exit
45 21 24 36.5 _bin/cxx-opt+nopool/osh mut+alloc
30 29 1 9.8 _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
103 96 7 3.3 bash -
211 164 46 55.8 bumpleak/osh mut
221 167 54 56.1 _bin/cxx-opt+bumproot/osh mut
239 178 61 58.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
257 182 76 48.8 osh-native mut+alloc
266 198 68 50.7 osh-native mut+alloc+free
223 172 51 9.0 osh-native mut+alloc+free+gc
226 175 51 9.0 osh-native mut+alloc+free+gc+exit
265 203 62 49.3 osh-nosouffle mut+alloc
270 192 78 51.1 osh-nosouffle mut+alloc+free
229 175 54 9.6 osh-nosouffle mut+alloc+free+gc
230 188 42 9.4 osh-nosouffle mut+alloc+free+gc+exit
279 191 88 65.9 _bin/cxx-opt+nopool/osh mut+alloc
262 222 40 10.7 _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 8 8 4.8 bash -
15 10 6 3.8 zsh -
18 7 12 13.1 bumpleak/osh mut
18 8 11 12.5 _bin/cxx-opt+bumproot/osh mut
18 7 12 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 11 10 11.7 osh-native mut+alloc
21 11 10 11.7 osh-native mut+alloc+free
20 16 5 9.4 osh-native mut+alloc+free+gc
22 9 14 9.6 osh-native mut+alloc+free+gc+exit
20 9 12 12.1 osh-nosouffle mut+alloc
22 9 13 12.3 osh-nosouffle mut+alloc+free
21 10 12 10.1 osh-nosouffle mut+alloc+free+gc
22 12 11 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 12 12 13.1 _bin/cxx-opt+nopool/osh mut+alloc
24 14 10 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc