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 6 12 12.0 18.2 471,252 1,282 6 413,132 5 206,566 osh-native
parse.configure-cpython 39 6 13 12.0 18.7 471,252 1,282 6 413,140 5 206,570 osh-nosouffle
parse.configure-coreutils 159 29 82 45.9 51.8 1,637,991 4,764 12 1,056,630 6 787,836 osh-native
parse.configure-coreutils 175 30 88 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.7 102,780 180 3 86,618 1 43,309 osh-native
parse.abuild 10 1 2 2.6 9.0 102,780 180 3 86,626 1 43,313 osh-nosouffle
ex.compute-fib 20 0 1 2.8 8.3 572,104 22,608 12 50,000 0 2,977 osh-native
ex.compute-fib 25 0 1 2.8 8.8 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 226 0 4 11.6 9.7 990,249 15,258 21 50,000 0 3,966 osh-nosouffle
ex.abuild-print-help 21 1 2 3.0 9.4 117,208 277 3 83,980 1 41,990 osh-native
ex.abuild-print-help 23 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 1 1.6 dash -
13 12 1 3.3 bash -
95 52 50 3.5 zsh -
16 13 4 30.7 bumpleak/osh mut
16 11 5 29.6 _bin/cxx-opt+bumproot/osh mut
19 12 7 30.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
27 17 10 25.7 osh-native mut+alloc
28 17 12 25.8 osh-native mut+alloc+free
35 26 8 18.2 osh-native mut+alloc+free+gc
36 28 8 18.4 osh-native mut+alloc+free+gc+exit
29 22 7 26.0 osh-nosouffle mut+alloc
31 25 7 26.2 osh-nosouffle mut+alloc+free
39 35 4 18.7 osh-nosouffle mut+alloc+free+gc
38 33 6 18.6 osh-nosouffle mut+alloc+free+gc+exit
40 24 16 32.8 _bin/cxx-opt+nopool/osh mut+alloc
52 42 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 23 0 1.6 dash -
43 42 1 3.5 bash -
338 200 163 3.7 zsh -
46 33 13 85.7 bumpleak/osh mut
49 41 8 85.9 _bin/cxx-opt+bumproot/osh mut
59 42 17 85.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
84 42 42 73.5 osh-native mut+alloc
93 59 34 75.4 osh-native mut+alloc+free
159 134 25 51.8 osh-native mut+alloc+free+gc
175 144 31 52.3 osh-native mut+alloc+free+gc+exit
94 52 42 74.3 osh-nosouffle mut+alloc
102 66 36 76.0 osh-nosouffle mut+alloc+free
175 151 24 52.1 osh-nosouffle mut+alloc+free+gc
174 151 23 52.8 osh-nosouffle mut+alloc+free+gc+exit
129 75 54 99.0 _bin/cxx-opt+nopool/osh mut+alloc
239 205 34 72.6 _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.1 bash -
7 2 4 3.4 zsh -
6 4 3 13.1 bumpleak/osh mut
6 2 4 11.4 _bin/cxx-opt+bumproot/osh mut
7 5 2 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.4 osh-native mut+alloc
8 6 2 10.6 osh-native mut+alloc+free
9 6 3 8.7 osh-native mut+alloc+free+gc
10 8 2 8.8 osh-native mut+alloc+free+gc+exit
10 6 4 11.0 osh-nosouffle mut+alloc
10 4 6 11.0 osh-nosouffle mut+alloc+free
10 8 2 9.0 osh-nosouffle mut+alloc+free+gc
10 7 3 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 6 5 12.0 _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.6 dash -
31 29 2 3.3 bash -
21 18 3 3.4 zsh -
17 11 6 32.5 bumpleak/osh mut
18 13 5 32.8 _bin/cxx-opt+bumproot/osh mut
21 15 7 33.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 19 10 27.0 osh-native mut+alloc
31 24 7 27.0 osh-native mut+alloc+free
20 18 2 8.3 osh-native mut+alloc+free+gc
20 17 3 8.3 osh-native mut+alloc+free+gc+exit
34 22 12 27.3 osh-nosouffle mut+alloc
35 24 12 27.5 osh-nosouffle mut+alloc+free
25 23 2 8.8 osh-nosouffle mut+alloc+free+gc
25 21 4 8.7 osh-nosouffle mut+alloc+free+gc+exit
47 26 21 36.1 _bin/cxx-opt+nopool/osh mut+alloc
30 27 3 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
117 109 8 3.4 bash -
216 166 50 57.2 bumpleak/osh mut
223 167 56 56.6 _bin/cxx-opt+bumproot/osh mut
241 176 65 58.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
256 191 64 48.7 osh-native mut+alloc
270 202 68 50.7 osh-native mut+alloc+free
223 178 45 9.0 osh-native mut+alloc+free+gc
223 168 56 9.2 osh-native mut+alloc+free+gc+exit
262 195 67 49.2 osh-nosouffle mut+alloc
271 201 70 51.3 osh-nosouffle mut+alloc+free
226 186 40 9.7 osh-nosouffle mut+alloc+free+gc
226 176 51 9.6 osh-nosouffle mut+alloc+free+gc+exit
279 208 72 64.3 _bin/cxx-opt+nopool/osh mut+alloc
253 214 40 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 6 3 4.1 dash -
16 11 5 4.8 bash -
16 8 8 3.9 zsh -
19 8 11 13.4 bumpleak/osh mut
20 10 11 14.0 _bin/cxx-opt+bumproot/osh mut
20 8 13 13.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 10 11 11.7 osh-native mut+alloc
24 10 12 11.7 osh-native mut+alloc+free
21 9 12 9.4 osh-native mut+alloc+free+gc
21 10 12 9.7 osh-native mut+alloc+free+gc+exit
21 12 10 11.9 osh-nosouffle mut+alloc
22 9 14 12.2 osh-nosouffle mut+alloc+free
23 12 11 10.0 osh-nosouffle mut+alloc+free+gc
22 13 9 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 11 13 13.1 _bin/cxx-opt+nopool/osh mut+alloc
24 15 10 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc