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 35 4 10 12.0 18.7 471,252 1,282 6 413,140 5 206,570 osh-nosouffle
parse.configure-coreutils 134 23 60 45.9 51.7 1,637,991 4,764 12 1,056,630 6 787,836 osh-native
parse.configure-coreutils 144 24 60 45.9 52.1 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 10 1 2 2.6 9.2 102,780 180 3 86,626 1 43,313 osh-nosouffle
ex.compute-fib 20 0 2 2.8 8.3 572,104 22,608 12 50,000 0 2,977 osh-native
ex.compute-fib 25 0 2 2.8 8.8 572,104 22,608 12 50,000 0 2,981 osh-nosouffle
ex.bashcomp-parse-help 221 0 3 11.6 9.2 990,250 15,258 21 50,000 0 3,957 osh-native
ex.bashcomp-parse-help 225 0 4 11.6 9.3 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.0 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 5 2 1.6 dash -
13 12 1 3.1 bash -
89 49 47 3.5 zsh -
15 10 5 30.2 bumpleak/osh mut
16 11 5 30.4 _bin/cxx-opt+bumproot/osh mut
19 15 4 30.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 17 9 25.4 osh-native mut+alloc
27 20 7 25.8 osh-native mut+alloc+free
31 25 6 18.1 osh-native mut+alloc+free+gc
33 26 7 18.2 osh-native mut+alloc+free+gc+exit
28 18 11 26.1 osh-nosouffle mut+alloc
31 20 10 26.3 osh-nosouffle mut+alloc+free
35 27 8 18.7 osh-nosouffle mut+alloc+free+gc
35 30 5 18.6 osh-nosouffle mut+alloc+free+gc+exit
39 24 15 32.8 _bin/cxx-opt+nopool/osh mut+alloc
47 37 9 22.8 _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
24 23 1 1.7 dash -
43 42 1 3.5 bash -
321 175 168 3.7 zsh -
44 35 9 86.4 bumpleak/osh mut
47 36 11 85.8 _bin/cxx-opt+bumproot/osh mut
59 46 13 84.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
91 54 37 73.8 osh-native mut+alloc
90 59 31 75.5 osh-native mut+alloc+free
134 108 26 51.7 osh-native mut+alloc+free+gc
137 112 25 52.4 osh-native mut+alloc+free+gc+exit
93 60 33 74.0 osh-nosouffle mut+alloc
102 76 26 76.0 osh-nosouffle mut+alloc+free
144 120 24 52.1 osh-nosouffle mut+alloc+free+gc
151 127 24 52.8 osh-nosouffle mut+alloc+free+gc+exit
127 85 42 99.0 _bin/cxx-opt+nopool/osh mut+alloc
199 166 33 74.7 _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 3 1 3.3 bash -
6 3 4 3.4 zsh -
6 3 3 11.2 bumpleak/osh mut
6 2 5 12.2 _bin/cxx-opt+bumproot/osh mut
7 4 3 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 3 10.6 osh-native mut+alloc
8 4 5 10.6 osh-native mut+alloc+free
9 8 1 8.8 osh-native mut+alloc+free+gc
9 5 4 8.9 osh-native mut+alloc+free+gc+exit
9 4 4 10.9 osh-nosouffle mut+alloc
9 5 4 11.0 osh-nosouffle mut+alloc+free
10 9 1 9.2 osh-nosouffle mut+alloc+free+gc
10 5 5 9.2 osh-nosouffle mut+alloc+free+gc+exit
11 5 6 11.9 _bin/cxx-opt+nopool/osh mut+alloc
12 8 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 -
31 29 2 3.3 bash -
21 17 4 3.4 zsh -
16 14 3 33.7 bumpleak/osh mut
19 15 4 32.6 _bin/cxx-opt+bumproot/osh mut
21 15 6 32.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 8 26.9 osh-native mut+alloc
31 18 13 27.0 osh-native mut+alloc+free
20 17 3 8.3 osh-native mut+alloc+free+gc
20 16 4 8.1 osh-native mut+alloc+free+gc+exit
33 23 11 27.4 osh-nosouffle mut+alloc
35 28 7 27.5 osh-nosouffle mut+alloc+free
25 20 5 8.8 osh-nosouffle mut+alloc+free+gc
25 22 2 8.9 osh-nosouffle mut+alloc+free+gc+exit
46 28 18 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
103 100 3 3.5 bash -
211 152 59 56.6 bumpleak/osh mut
219 175 44 57.6 _bin/cxx-opt+bumproot/osh mut
239 177 62 58.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
256 179 77 48.9 osh-native mut+alloc
263 191 72 50.7 osh-native mut+alloc+free
221 170 51 9.2 osh-native mut+alloc+free+gc
220 180 40 9.2 osh-native mut+alloc+free+gc+exit
261 191 70 49.3 osh-nosouffle mut+alloc
269 201 68 51.3 osh-nosouffle mut+alloc+free
225 181 44 9.3 osh-nosouffle mut+alloc+free+gc
227 173 53 9.4 osh-nosouffle mut+alloc+free+gc+exit
278 196 82 65.6 _bin/cxx-opt+nopool/osh mut+alloc
250 196 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 4 5 3.9 dash -
16 5 11 4.6 bash -
16 7 9 4.1 zsh -
18 8 11 13.0 bumpleak/osh mut
19 8 11 13.6 _bin/cxx-opt+bumproot/osh mut
19 12 8 13.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 6 13 11.5 osh-native mut+alloc
20 10 11 11.8 osh-native mut+alloc+free
20 11 10 9.4 osh-native mut+alloc+free+gc
21 10 11 9.6 osh-native mut+alloc+free+gc+exit
20 8 12 12.2 osh-nosouffle mut+alloc
22 11 12 12.3 osh-nosouffle mut+alloc+free
21 9 12 10.0 osh-nosouffle mut+alloc+free+gc
22 14 9 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 10 13 13.2 _bin/cxx-opt+nopool/osh mut+alloc
24 13 11 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc