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.1 471,252 1,282 6 413,132 5 206,566 osh-native
parse.configure-cpython 38 6 14 12.0 18.7 471,252 1,282 6 413,140 5 206,570 osh-nosouffle
parse.configure-coreutils 147 25 75 45.9 51.8 1,637,991 4,764 12 1,056,630 6 787,836 osh-native
parse.configure-coreutils 168 26 83 45.9 52.2 1,637,990 4,764 12 1,056,638 6 787,840 osh-nosouffle
parse.abuild 9 1 2 2.6 8.7 102,780 180 3 86,618 1 43,309 osh-native
parse.abuild 10 1 3 2.6 9.3 102,780 180 3 86,626 1 43,313 osh-nosouffle
ex.compute-fib 20 0 2 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.8 572,104 22,608 12 50,000 0 2,981 osh-nosouffle
ex.bashcomp-parse-help 175 0 6 11.6 8.9 990,250 15,258 21 50,000 0 3,957 osh-native
ex.bashcomp-parse-help 180 0 7 11.6 9.6 990,249 15,258 21 50,000 0 3,966 osh-nosouffle
ex.abuild-print-help 19 1 2 3.0 9.4 117,208 277 3 83,980 1 41,990 osh-native
ex.abuild-print-help 20 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
6 5 1 1.8 dash -
12 11 1 3.5 bash -
77 48 37 3.5 zsh -
20 13 6 29.1 bumpleak/osh mut
21 12 9 30.3 _bin/cxx-opt+bumproot/osh mut
22 17 5 30.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
24 15 8 25.7 osh-native mut+alloc
27 21 6 25.8 osh-native mut+alloc+free
35 29 6 18.1 osh-native mut+alloc+free+gc
37 34 4 18.3 osh-native mut+alloc+free+gc+exit
25 18 7 26.0 osh-nosouffle mut+alloc
29 23 6 26.3 osh-nosouffle mut+alloc+free
38 33 5 18.7 osh-nosouffle mut+alloc+free+gc
41 31 11 18.7 osh-nosouffle mut+alloc+free+gc+exit
36 20 16 33.8 _bin/cxx-opt+nopool/osh mut+alloc
56 44 12 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
18 18 0 1.7 dash -
38 36 2 3.5 bash -
247 142 121 3.7 zsh -
55 38 17 84.9 bumpleak/osh mut
60 40 20 84.7 _bin/cxx-opt+bumproot/osh mut
65 38 26 85.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
74 47 27 73.7 osh-native mut+alloc
91 58 33 75.6 osh-native mut+alloc+free
147 130 17 51.8 osh-native mut+alloc+free+gc
163 142 21 52.5 osh-native mut+alloc+free+gc+exit
83 56 27 74.1 osh-nosouffle mut+alloc
98 77 21 76.0 osh-nosouffle mut+alloc+free
168 146 22 52.2 osh-nosouffle mut+alloc+free+gc
185 158 27 52.9 osh-nosouffle mut+alloc+free+gc+exit
117 83 34 98.1 _bin/cxx-opt+nopool/osh mut+alloc
226 199 27 74.0 _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 -
3 3 0 3.3 bash -
5 2 3 3.5 zsh -
6 3 3 12.4 bumpleak/osh mut
7 6 1 13.0 _bin/cxx-opt+bumproot/osh mut
7 2 5 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
7 5 2 10.7 osh-native mut+alloc
7 4 3 10.7 osh-native mut+alloc+free
9 8 1 8.7 osh-native mut+alloc+free+gc
10 7 3 8.8 osh-native mut+alloc+free+gc+exit
8 3 5 10.9 osh-nosouffle mut+alloc
9 6 3 11.1 osh-nosouffle mut+alloc+free
10 8 3 9.3 osh-nosouffle mut+alloc+free+gc
10 6 5 9.3 osh-nosouffle mut+alloc+free+gc+exit
9 6 3 11.9 _bin/cxx-opt+nopool/osh mut+alloc
12 9 2 9.7 _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 -
29 28 1 3.4 bash -
16 14 2 3.4 zsh -
22 14 8 33.2 bumpleak/osh mut
23 13 10 32.5 _bin/cxx-opt+bumproot/osh mut
27 24 3 34.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
27 16 11 27.0 osh-native mut+alloc
30 23 6 27.1 osh-native mut+alloc+free
20 18 2 8.4 osh-native mut+alloc+free+gc
21 18 3 8.3 osh-native mut+alloc+free+gc+exit
31 21 10 27.4 osh-nosouffle mut+alloc
36 27 9 27.5 osh-nosouffle mut+alloc+free
25 24 1 8.8 osh-nosouffle mut+alloc+free+gc
26 23 2 8.8 osh-nosouffle mut+alloc+free+gc+exit
44 28 16 36.4 _bin/cxx-opt+nopool/osh mut+alloc
32 29 3 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
97 95 2 3.5 bash -
175 144 31 57.4 bumpleak/osh mut
182 156 26 57.2 _bin/cxx-opt+bumproot/osh mut
193 148 45 57.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
198 161 37 48.6 osh-native mut+alloc
211 175 36 50.7 osh-native mut+alloc+free
175 158 16 8.9 osh-native mut+alloc+free+gc
177 157 20 9.2 osh-native mut+alloc+free+gc+exit
203 157 46 49.4 osh-nosouffle mut+alloc
211 175 36 51.4 osh-nosouffle mut+alloc+free
180 161 19 9.6 osh-nosouffle mut+alloc+free+gc
180 155 25 9.8 osh-nosouffle mut+alloc+free+gc+exit
223 181 42 65.8 _bin/cxx-opt+nopool/osh mut+alloc
226 206 19 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
7 4 4 4.1 dash -
14 11 3 5.0 bash -
13 6 7 4.1 zsh -
18 8 10 12.8 bumpleak/osh mut
17 10 8 14.2 _bin/cxx-opt+bumproot/osh mut
19 8 13 14.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
17 9 9 11.7 osh-native mut+alloc
19 8 11 11.8 osh-native mut+alloc+free
19 13 6 9.4 osh-native mut+alloc+free+gc
19 12 7 9.7 osh-native mut+alloc+free+gc+exit
18 10 9 12.2 osh-nosouffle mut+alloc
20 14 7 12.3 osh-nosouffle mut+alloc+free
20 12 9 10.1 osh-nosouffle mut+alloc+free+gc
21 13 9 10.2 osh-nosouffle mut+alloc+free+gc+exit
19 12 8 13.2 _bin/cxx-opt+nopool/osh mut+alloc
22 14 9 10.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc