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.2 471,252 1,282 6 413,132 5 206,566 osh-native
parse.configure-cpython 39 6 14 12.0 18.7 471,252 1,282 6 413,140 5 206,570 osh-nosouffle
parse.configure-coreutils 157 27 81 45.9 51.7 1,637,991 4,764 12 1,056,630 6 787,836 osh-native
parse.configure-coreutils 165 27 80 45.9 52.0 1,637,990 4,764 12 1,056,638 6 787,840 osh-nosouffle
parse.abuild 10 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 21 0 2 2.8 8.1 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 228 0 5 11.6 9.0 990,250 15,258 21 50,000 0 3,957 osh-native
ex.bashcomp-parse-help 232 0 5 11.6 9.4 990,249 15,258 21 50,000 0 3,966 osh-nosouffle
ex.abuild-print-help 20 1 2 3.0 9.3 117,208 277 3 83,980 1 41,990 osh-native
ex.abuild-print-help 22 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 7 0 1.7 dash -
13 13 0 3.3 bash -
90 48 49 3.5 zsh -
15 10 6 29.9 bumpleak/osh mut
16 14 2 28.9 _bin/cxx-opt+bumproot/osh mut
20 14 6 29.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 16 10 25.6 osh-native mut+alloc
28 22 6 25.8 osh-native mut+alloc+free
31 25 6 18.2 osh-native mut+alloc+free+gc
32 24 8 18.2 osh-native mut+alloc+free+gc+exit
29 19 10 26.0 osh-nosouffle mut+alloc
31 16 15 26.2 osh-nosouffle mut+alloc+free
39 33 6 18.7 osh-nosouffle mut+alloc+free+gc
40 31 9 18.6 osh-nosouffle mut+alloc+free+gc+exit
39 23 17 33.6 _bin/cxx-opt+nopool/osh mut+alloc
49 41 8 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 -
42 40 2 3.3 bash -
330 182 170 3.7 zsh -
46 36 10 86.5 bumpleak/osh mut
48 41 7 86.5 _bin/cxx-opt+bumproot/osh mut
59 45 14 85.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
84 51 33 73.7 osh-native mut+alloc
92 56 36 75.5 osh-native mut+alloc+free
157 133 24 51.7 osh-native mut+alloc+free+gc
159 136 23 52.5 osh-native mut+alloc+free+gc+exit
92 63 29 74.2 osh-nosouffle mut+alloc
101 59 42 76.0 osh-nosouffle mut+alloc+free
165 140 25 52.0 osh-nosouffle mut+alloc+free+gc
179 144 35 52.8 osh-nosouffle mut+alloc+free+gc+exit
127 84 43 98.4 _bin/cxx-opt+nopool/osh mut+alloc
227 194 33 74.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 2 0 1.6 dash -
4 4 0 3.1 bash -
7 3 3 3.4 zsh -
7 4 3 12.3 bumpleak/osh mut
6 4 3 12.8 _bin/cxx-opt+bumproot/osh mut
8 5 3 13.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.5 osh-native mut+alloc
9 6 3 10.6 osh-native mut+alloc+free
10 7 3 8.7 osh-native mut+alloc+free+gc
9 6 3 8.9 osh-native mut+alloc+free+gc+exit
9 5 4 10.9 osh-nosouffle mut+alloc
9 4 5 11.1 osh-nosouffle mut+alloc+free
10 8 2 9.0 osh-nosouffle mut+alloc+free+gc
11 6 4 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 6 5 11.8 _bin/cxx-opt+nopool/osh mut+alloc
13 9 3 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 8 1 1.6 dash -
30 29 1 3.1 bash -
21 15 6 3.3 zsh -
16 12 4 33.8 bumpleak/osh mut
18 16 2 32.2 _bin/cxx-opt+bumproot/osh mut
20 14 7 33.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 21 7 26.7 osh-native mut+alloc
30 16 14 27.3 osh-native mut+alloc+free
21 17 3 8.1 osh-native mut+alloc+free+gc
20 18 2 8.3 osh-native mut+alloc+free+gc+exit
33 24 9 27.3 osh-nosouffle mut+alloc
36 26 10 27.5 osh-nosouffle mut+alloc+free
25 25 0 8.7 osh-nosouffle mut+alloc+free+gc
25 22 3 8.7 osh-nosouffle mut+alloc+free+gc+exit
46 30 16 36.1 _bin/cxx-opt+nopool/osh mut+alloc
30 28 2 10.0 _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 101 2 3.5 bash -
212 152 60 55.9 bumpleak/osh mut
221 168 53 57.1 _bin/cxx-opt+bumproot/osh mut
245 185 60 58.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
265 180 85 48.9 osh-native mut+alloc
271 194 77 50.7 osh-native mut+alloc+free
228 172 56 9.0 osh-native mut+alloc+free+gc
229 177 52 8.9 osh-native mut+alloc+free+gc+exit
267 188 79 49.3 osh-nosouffle mut+alloc
276 207 69 51.1 osh-nosouffle mut+alloc+free
232 180 51 9.4 osh-nosouffle mut+alloc+free+gc
232 183 49 9.6 osh-nosouffle mut+alloc+free+gc+exit
277 206 71 65.9 _bin/cxx-opt+nopool/osh mut+alloc
259 206 53 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 4 6 3.9 dash -
16 6 11 4.7 bash -
15 5 11 3.8 zsh -
18 8 11 12.8 bumpleak/osh mut
18 9 10 14.2 _bin/cxx-opt+bumproot/osh mut
20 8 13 14.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 11 9 11.7 osh-native mut+alloc
20 7 14 11.7 osh-native mut+alloc+free
20 10 11 9.3 osh-native mut+alloc+free+gc
21 10 11 9.6 osh-native mut+alloc+free+gc+exit
21 12 9 12.2 osh-nosouffle mut+alloc
22 10 13 12.2 osh-nosouffle mut+alloc+free
22 15 8 10.0 osh-nosouffle mut+alloc+free+gc
22 11 11 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 10 14 13.1 _bin/cxx-opt+nopool/osh mut+alloc
24 15 9 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc