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 32 4 10 12.0 18.2 471,252 1,282 6 413,132 5 206,566 osh-native
parse.configure-cpython 34 4 10 12.0 18.7 471,252 1,282 6 413,140 5 206,570 osh-nosouffle
parse.configure-coreutils 138 26 64 45.9 51.7 1,637,991 4,764 12 1,056,630 6 787,836 osh-native
parse.configure-coreutils 150 28 67 45.9 52.3 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 21 0 2 2.8 8.1 576,705 22,608 12 50,000 0 2,976 osh-native
ex.compute-fib 28 0 2 2.8 8.5 576,705 22,608 12 50,000 0 2,981 osh-nosouffle
ex.bashcomp-parse-help 222 0 4 11.6 9.2 990,260 15,258 21 50,000 0 3,957 osh-native
ex.bashcomp-parse-help 237 0 4 11.6 9.6 990,259 15,258 21 50,000 0 3,966 osh-nosouffle
ex.abuild-print-help 21 1 2 3.0 9.4 117,247 277 3 83,980 1 41,990 osh-native
ex.abuild-print-help 22 1 2 3.0 10.1 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 5 1 1.6 dash -
13 11 2 3.3 bash -
90 52 44 3.5 zsh -
15 11 5 28.8 bumpleak/osh mut
16 11 6 29.1 _bin/cxx-opt+bumproot/osh mut
19 12 7 30.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 17 9 25.3 osh-native mut+alloc
30 17 13 25.6 osh-native mut+alloc+free
32 25 7 18.2 osh-native mut+alloc+free+gc
32 30 2 18.4 osh-native mut+alloc+free+gc+exit
28 21 7 25.8 osh-nosouffle mut+alloc
30 19 11 26.2 osh-nosouffle mut+alloc+free
34 28 6 18.7 osh-nosouffle mut+alloc+free+gc
36 28 9 18.7 osh-nosouffle mut+alloc+free+gc+exit
39 22 18 33.2 _bin/cxx-opt+nopool/osh mut+alloc
47 40 7 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 22 1 1.6 dash -
42 41 1 3.5 bash -
324 182 164 3.7 zsh -
44 34 11 85.0 bumpleak/osh mut
48 37 11 85.0 _bin/cxx-opt+bumproot/osh mut
58 42 17 85.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
83 51 31 73.8 osh-native mut+alloc
91 58 33 75.5 osh-native mut+alloc+free
138 114 24 51.7 osh-native mut+alloc+free+gc
139 112 27 52.4 osh-native mut+alloc+free+gc+exit
93 55 38 74.2 osh-nosouffle mut+alloc
100 66 33 75.9 osh-nosouffle mut+alloc+free
150 127 23 52.3 osh-nosouffle mut+alloc+free+gc
149 129 20 52.8 osh-nosouffle mut+alloc+free+gc+exit
126 74 52 97.9 _bin/cxx-opt+nopool/osh mut+alloc
198 164 34 73.9 _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 -
6 3 3 3.4 zsh -
6 4 2 11.4 bumpleak/osh mut
6 5 1 13.2 _bin/cxx-opt+bumproot/osh mut
7 5 2 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 2 6 10.5 osh-native mut+alloc
8 5 3 10.4 osh-native mut+alloc+free
9 6 3 8.7 osh-native mut+alloc+free+gc
9 5 4 8.7 osh-native mut+alloc+free+gc+exit
9 5 3 11.0 osh-nosouffle mut+alloc
9 7 2 11.1 osh-nosouffle mut+alloc+free
10 6 4 9.0 osh-nosouffle mut+alloc+free+gc
10 7 3 9.2 osh-nosouffle mut+alloc+free+gc+exit
11 7 5 11.7 _bin/cxx-opt+nopool/osh mut+alloc
12 7 5 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
10 9 1 1.6 dash -
31 30 1 3.1 bash -
21 16 5 3.4 zsh -
16 12 4 31.7 bumpleak/osh mut
19 14 5 33.3 _bin/cxx-opt+bumproot/osh mut
21 16 5 33.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 20 8 26.9 osh-native mut+alloc
33 19 14 27.3 osh-native mut+alloc+free
21 17 4 8.1 osh-native mut+alloc+free+gc
21 16 5 8.3 osh-native mut+alloc+free+gc+exit
34 24 10 27.4 osh-nosouffle mut+alloc
37 26 11 27.5 osh-nosouffle mut+alloc+free
28 26 2 8.5 osh-nosouffle mut+alloc+free+gc
25 23 2 8.5 osh-nosouffle mut+alloc+free+gc+exit
45 25 20 36.5 _bin/cxx-opt+nopool/osh mut+alloc
30 24 6 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
105 103 2 3.5 bash -
216 171 45 57.2 bumpleak/osh mut
221 171 50 57.5 _bin/cxx-opt+bumproot/osh mut
240 170 69 58.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
262 190 72 48.8 osh-native mut+alloc
271 211 60 50.9 osh-native mut+alloc+free
222 157 65 9.2 osh-native mut+alloc+free+gc
221 166 55 9.2 osh-native mut+alloc+free+gc+exit
263 187 76 49.3 osh-nosouffle mut+alloc
275 204 71 51.3 osh-nosouffle mut+alloc+free
237 198 39 9.6 osh-nosouffle mut+alloc+free+gc
242 199 43 9.4 osh-nosouffle mut+alloc+free+gc+exit
284 203 81 65.7 _bin/cxx-opt+nopool/osh mut+alloc
259 210 49 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 3 7 4.1 dash -
16 9 8 4.8 bash -
16 8 9 3.9 zsh -
18 7 12 14.0 bumpleak/osh mut
19 7 13 13.4 _bin/cxx-opt+bumproot/osh mut
20 9 12 13.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 10 11.4 osh-native mut+alloc
23 12 13 11.7 osh-native mut+alloc+free
21 12 9 9.4 osh-native mut+alloc+free+gc
23 12 10 9.4 osh-native mut+alloc+free+gc+exit
21 9 12 12.1 osh-nosouffle mut+alloc
22 13 10 12.3 osh-nosouffle mut+alloc+free
22 10 12 10.1 osh-nosouffle mut+alloc+free+gc
22 12 10 10.1 osh-nosouffle mut+alloc+free+gc+exit
24 10 15 13.2 _bin/cxx-opt+nopool/osh mut+alloc
27 15 11 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc