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 3 9 12.0 18.6 471,252 1,282 6 413,140 5 206,570 osh-nosouffle
parse.configure-coreutils 142 28 66 45.9 51.9 1,637,991 4,764 12 1,056,630 6 787,836 osh-native
parse.configure-coreutils 156 31 68 45.9 52.1 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.2 102,780 180 3 86,626 1 43,313 osh-nosouffle
ex.compute-fib 20 0 2 2.8 8.1 576,705 22,608 12 50,000 0 2,976 osh-native
ex.compute-fib 26 0 2 2.8 8.7 576,705 22,608 12 50,000 0 2,981 osh-nosouffle
ex.bashcomp-parse-help 229 0 4 11.6 9.0 990,260 15,258 21 50,000 0 3,957 osh-native
ex.bashcomp-parse-help 238 0 4 11.6 9.6 990,259 15,258 21 50,000 0 3,966 osh-nosouffle
ex.abuild-print-help 22 1 2 3.0 9.4 117,247 277 3 83,980 1 41,990 osh-native
ex.abuild-print-help 24 1 2 3.0 10.0 117,246 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 6 1 1.6 dash -
13 12 1 3.3 bash -
102 62 47 3.5 zsh -
16 13 3 28.5 bumpleak/osh mut
17 13 4 29.8 _bin/cxx-opt+bumproot/osh mut
21 14 7 29.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
27 19 8 25.4 osh-native mut+alloc
28 20 8 25.8 osh-native mut+alloc+free
31 25 6 18.1 osh-native mut+alloc+free+gc
32 26 6 18.4 osh-native mut+alloc+free+gc+exit
29 21 8 26.2 osh-nosouffle mut+alloc
31 14 17 26.3 osh-nosouffle mut+alloc+free
35 28 7 18.6 osh-nosouffle mut+alloc+free+gc
35 29 6 18.6 osh-nosouffle mut+alloc+free+gc+exit
42 27 15 32.9 _bin/cxx-opt+nopool/osh mut+alloc
46 38 8 23.1 _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 22 1 1.7 dash -
45 43 2 3.4 bash -
343 198 168 3.7 zsh -
47 36 11 84.6 bumpleak/osh mut
50 40 10 85.0 _bin/cxx-opt+bumproot/osh mut
61 45 16 86.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
86 35 51 73.7 osh-native mut+alloc
97 65 32 75.4 osh-native mut+alloc+free
142 116 26 51.9 osh-native mut+alloc+free+gc
149 128 21 52.5 osh-native mut+alloc+free+gc+exit
96 51 45 74.2 osh-nosouffle mut+alloc
110 75 35 75.9 osh-nosouffle mut+alloc+free
156 126 29 52.1 osh-nosouffle mut+alloc+free+gc
161 141 20 52.7 osh-nosouffle mut+alloc+free+gc+exit
134 81 53 98.5 _bin/cxx-opt+nopool/osh mut+alloc
212 173 39 72.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 -
4 3 1 3.3 bash -
6 4 3 3.4 zsh -
6 4 2 11.9 bumpleak/osh mut
7 2 4 12.3 _bin/cxx-opt+bumproot/osh mut
7 4 3 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 5 10.5 osh-native mut+alloc
9 3 6 10.7 osh-native mut+alloc+free
10 7 3 8.7 osh-native mut+alloc+free+gc
10 6 4 8.8 osh-native mut+alloc+free+gc+exit
10 6 4 11.0 osh-nosouffle mut+alloc
11 9 2 11.0 osh-nosouffle mut+alloc+free
10 8 2 9.2 osh-nosouffle mut+alloc+free+gc
10 7 3 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 8 4 11.9 _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
10 10 0 1.6 dash -
32 32 0 3.1 bash -
21 18 3 3.4 zsh -
18 10 8 33.2 bumpleak/osh mut
19 13 6 32.7 _bin/cxx-opt+bumproot/osh mut
21 18 3 33.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 16 13 27.0 osh-native mut+alloc
31 20 12 27.4 osh-native mut+alloc+free
20 18 2 8.1 osh-native mut+alloc+free+gc
20 18 2 8.1 osh-native mut+alloc+free+gc+exit
34 20 14 27.4 osh-nosouffle mut+alloc
36 22 14 27.8 osh-nosouffle mut+alloc+free
26 24 2 8.7 osh-nosouffle mut+alloc+free+gc
25 23 2 8.7 osh-nosouffle mut+alloc+free+gc+exit
48 30 18 36.2 _bin/cxx-opt+nopool/osh mut+alloc
31 26 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
110 106 4 3.5 bash -
224 177 47 55.9 bumpleak/osh mut
231 181 50 57.8 _bin/cxx-opt+bumproot/osh mut
248 187 61 58.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
268 198 70 48.9 osh-native mut+alloc
279 213 66 50.7 osh-native mut+alloc+free
229 175 54 9.0 osh-native mut+alloc+free+gc
231 181 50 9.0 osh-native mut+alloc+free+gc+exit
272 202 70 49.2 osh-nosouffle mut+alloc
286 229 57 51.0 osh-nosouffle mut+alloc+free
238 187 51 9.6 osh-nosouffle mut+alloc+free+gc
237 194 43 9.6 osh-nosouffle mut+alloc+free+gc+exit
290 215 75 64.6 _bin/cxx-opt+nopool/osh mut+alloc
261 228 33 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
10 3 7 3.9 dash -
17 10 8 4.8 bash -
17 9 9 4.1 zsh -
20 7 13 12.8 bumpleak/osh mut
20 10 11 13.1 _bin/cxx-opt+bumproot/osh mut
21 9 12 14.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 11 11.5 osh-native mut+alloc
23 11 13 11.7 osh-native mut+alloc+free
22 10 13 9.4 osh-native mut+alloc+free+gc
23 12 12 9.6 osh-native mut+alloc+free+gc+exit
22 11 12 12.1 osh-nosouffle mut+alloc
23 8 15 12.3 osh-nosouffle mut+alloc+free
24 14 11 10.0 osh-nosouffle mut+alloc+free+gc
23 14 9 10.1 osh-nosouffle mut+alloc+free+gc+exit
25 12 14 13.1 _bin/cxx-opt+nopool/osh mut+alloc
25 16 10 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc