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 30 4 11 12.0 18.5 471,252 1,282 6 413,132 5 206,566 osh-native
parse.configure-cpython 34 4 11 12.0 18.6 471,252 1,282 6 413,140 5 206,570 osh-nosouffle
parse.configure-coreutils 129 21 62 45.9 51.7 1,637,991 4,764 12 1,056,630 6 787,836 osh-native
parse.configure-coreutils 139 21 63 45.9 52.3 1,637,990 4,764 12 1,056,638 6 787,840 osh-nosouffle
parse.abuild 8 1 2 2.6 8.7 102,780 180 3 86,618 1 43,309 osh-native
parse.abuild 9 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.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 172 0 5 11.6 9.0 990,250 15,258 21 50,000 0 3,957 osh-native
ex.bashcomp-parse-help 178 0 5 11.6 9.7 990,249 15,258 21 50,000 0 3,966 osh-nosouffle
ex.abuild-print-help 17 1 2 3.0 9.6 117,208 277 3 83,980 1 41,990 osh-native
ex.abuild-print-help 19 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
5 5 0 1.7 dash -
11 10 1 3.4 bash -
66 42 29 3.5 zsh -
16 8 8 28.9 bumpleak/osh mut
17 10 8 29.2 _bin/cxx-opt+bumproot/osh mut
19 14 5 29.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 15 7 25.4 osh-native mut+alloc
25 18 7 26.1 osh-native mut+alloc+free
30 25 5 18.5 osh-native mut+alloc+free+gc
32 29 3 18.3 osh-native mut+alloc+free+gc+exit
25 19 6 25.8 osh-nosouffle mut+alloc
28 21 7 26.5 osh-nosouffle mut+alloc+free
34 31 3 18.6 osh-nosouffle mut+alloc+free+gc
35 30 5 18.7 osh-nosouffle mut+alloc+free+gc+exit
34 23 11 32.6 _bin/cxx-opt+nopool/osh mut+alloc
44 31 13 22.5 _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 17 1 1.7 dash -
38 37 1 3.5 bash -
231 137 109 3.7 zsh -
49 31 18 85.2 bumpleak/osh mut
53 38 16 85.8 _bin/cxx-opt+bumproot/osh mut
62 49 13 85.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
71 47 24 73.7 osh-native mut+alloc
83 64 19 75.6 osh-native mut+alloc+free
129 106 23 51.7 osh-native mut+alloc+free+gc
136 111 25 52.7 osh-native mut+alloc+free+gc+exit
80 49 31 74.1 osh-nosouffle mut+alloc
92 69 23 75.9 osh-nosouffle mut+alloc+free
139 120 19 52.3 osh-nosouffle mut+alloc+free+gc
146 128 18 52.9 osh-nosouffle mut+alloc+free+gc+exit
110 67 43 98.5 _bin/cxx-opt+nopool/osh mut+alloc
180 152 27 73.5 _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 2 1 3.3 bash -
5 2 3 3.4 zsh -
6 3 3 13.0 bumpleak/osh mut
6 3 3 13.2 _bin/cxx-opt+bumproot/osh mut
7 4 3 13.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
7 5 2 10.6 osh-native mut+alloc
7 5 3 10.9 osh-native mut+alloc+free
8 6 3 8.7 osh-native mut+alloc+free+gc
9 5 4 8.9 osh-native mut+alloc+free+gc+exit
8 7 1 11.0 osh-nosouffle mut+alloc
8 7 1 11.3 osh-nosouffle mut+alloc+free
9 8 1 9.2 osh-nosouffle mut+alloc+free+gc
9 8 2 9.4 osh-nosouffle mut+alloc+free+gc+exit
9 4 5 11.9 _bin/cxx-opt+nopool/osh mut+alloc
11 11 0 9.6 _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 -
28 27 1 3.3 bash -
16 15 1 3.3 zsh -
18 12 6 32.7 bumpleak/osh mut
21 15 6 33.0 _bin/cxx-opt+bumproot/osh mut
23 15 8 33.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 17 9 27.0 osh-native mut+alloc
28 20 8 27.1 osh-native mut+alloc+free
20 18 2 8.4 osh-native mut+alloc+free+gc
20 19 1 8.3 osh-native mut+alloc+free+gc+exit
30 25 5 27.4 osh-nosouffle mut+alloc
33 25 8 27.7 osh-nosouffle mut+alloc+free
25 25 0 8.8 osh-nosouffle mut+alloc+free+gc
25 22 3 8.8 osh-nosouffle mut+alloc+free+gc+exit
40 30 10 36.2 _bin/cxx-opt+nopool/osh mut+alloc
30 25 5 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
95 92 3 3.5 bash -
170 139 31 57.0 bumpleak/osh mut
180 140 39 57.0 _bin/cxx-opt+bumproot/osh mut
187 160 27 56.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
193 162 31 48.9 osh-native mut+alloc
205 166 39 50.8 osh-native mut+alloc+free
172 149 23 9.0 osh-native mut+alloc+free+gc
173 149 23 8.9 osh-native mut+alloc+free+gc+exit
201 159 42 49.3 osh-nosouffle mut+alloc
209 182 27 51.3 osh-nosouffle mut+alloc+free
178 153 25 9.7 osh-nosouffle mut+alloc+free+gc
178 153 25 9.7 osh-nosouffle mut+alloc+free+gc+exit
220 183 37 65.1 _bin/cxx-opt+nopool/osh mut+alloc
202 183 19 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
7 3 5 3.9 dash -
13 10 4 4.7 bash -
12 6 6 3.9 zsh -
17 7 10 13.1 bumpleak/osh mut
15 7 9 12.7 _bin/cxx-opt+bumproot/osh mut
16 6 10 13.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
16 8 9 11.5 osh-native mut+alloc
17 9 9 11.7 osh-native mut+alloc+free
17 13 5 9.6 osh-native mut+alloc+free+gc
18 12 7 9.6 osh-native mut+alloc+free+gc+exit
17 9 8 12.2 osh-nosouffle mut+alloc
18 14 4 12.3 osh-nosouffle mut+alloc+free
19 11 8 10.1 osh-nosouffle mut+alloc+free+gc
19 11 9 10.2 osh-nosouffle mut+alloc+free+gc+exit
19 13 6 13.1 _bin/cxx-opt+nopool/osh mut+alloc
21 14 7 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc