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.1 471,252 1,282 6 413,132 5 206,566 osh-native
parse.configure-cpython 35 4 10 12.0 18.6 471,252 1,282 6 413,140 5 206,570 osh-nosouffle
parse.configure-coreutils 138 26 66 45.9 51.6 1,637,991 4,764 12 1,056,630 6 787,836 osh-native
parse.configure-coreutils 157 28 74 45.9 52.0 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.2 102,780 180 3 86,626 1 43,313 osh-nosouffle
ex.compute-fib 20 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.8 572,104 22,608 12 50,000 0 2,981 osh-nosouffle
ex.bashcomp-parse-help 224 0 4 11.6 8.9 990,250 15,258 21 50,000 0 3,957 osh-native
ex.bashcomp-parse-help 227 0 4 11.6 9.7 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
6 6 0 1.7 dash -
13 13 0 3.4 bash -
89 51 44 3.5 zsh -
15 12 3 30.1 bumpleak/osh mut
17 12 4 29.3 _bin/cxx-opt+bumproot/osh mut
19 14 5 30.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 17 8 25.6 osh-native mut+alloc
27 16 11 25.7 osh-native mut+alloc+free
32 24 8 18.1 osh-native mut+alloc+free+gc
33 24 9 18.1 osh-native mut+alloc+free+gc+exit
28 20 8 26.0 osh-nosouffle mut+alloc
30 21 9 26.2 osh-nosouffle mut+alloc+free
35 29 6 18.6 osh-nosouffle mut+alloc+free+gc
37 31 6 18.7 osh-nosouffle mut+alloc+free+gc+exit
39 19 20 32.2 _bin/cxx-opt+nopool/osh mut+alloc
44 35 9 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
24 21 3 1.6 dash -
42 39 3 3.4 bash -
324 182 164 3.8 zsh -
45 35 10 86.6 bumpleak/osh mut
48 39 9 86.8 _bin/cxx-opt+bumproot/osh mut
58 42 16 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
82 54 28 73.8 osh-native mut+alloc
90 57 33 75.6 osh-native mut+alloc+free
138 113 25 51.6 osh-native mut+alloc+free+gc
149 123 26 52.4 osh-native mut+alloc+free+gc+exit
92 64 28 74.3 osh-nosouffle mut+alloc
102 68 33 76.0 osh-nosouffle mut+alloc+free
157 132 25 52.0 osh-nosouffle mut+alloc+free+gc
164 139 25 52.9 osh-nosouffle mut+alloc+free+gc+exit
124 77 47 98.0 _bin/cxx-opt+nopool/osh mut+alloc
195 166 29 72.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 1 1 1.4 dash -
4 3 1 3.3 bash -
6 3 3 3.4 zsh -
6 5 1 12.7 bumpleak/osh mut
6 4 2 11.9 _bin/cxx-opt+bumproot/osh mut
7 5 2 12.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.5 osh-native mut+alloc
8 5 3 10.5 osh-native mut+alloc+free
9 6 3 8.7 osh-native mut+alloc+free+gc
9 7 2 8.9 osh-native mut+alloc+free+gc+exit
9 4 4 11.0 osh-nosouffle mut+alloc
9 7 2 11.1 osh-nosouffle mut+alloc+free
10 8 2 9.2 osh-nosouffle mut+alloc+free+gc
10 7 3 9.2 osh-nosouffle mut+alloc+free+gc+exit
11 7 4 11.8 _bin/cxx-opt+nopool/osh mut+alloc
12 8 3 9.4 _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 10 0 1.6 dash -
31 29 2 3.3 bash -
21 13 8 3.4 zsh -
17 11 6 33.3 bumpleak/osh mut
18 15 3 32.8 _bin/cxx-opt+bumproot/osh mut
21 15 6 33.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 19 9 26.9 osh-native mut+alloc
30 23 7 27.0 osh-native mut+alloc+free
20 16 4 8.1 osh-native mut+alloc+free+gc
20 18 2 8.3 osh-native mut+alloc+free+gc+exit
34 23 11 27.1 osh-nosouffle mut+alloc
35 25 11 27.5 osh-nosouffle mut+alloc+free
25 22 3 8.8 osh-nosouffle mut+alloc+free+gc
25 21 4 8.7 osh-nosouffle mut+alloc+free+gc+exit
46 34 13 36.1 _bin/cxx-opt+nopool/osh mut+alloc
30 26 4 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
103 96 7 3.4 bash -
212 158 54 56.3 bumpleak/osh mut
221 162 59 57.4 _bin/cxx-opt+bumproot/osh mut
238 183 54 57.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
258 175 83 48.7 osh-native mut+alloc
264 195 69 50.6 osh-native mut+alloc+free
224 182 42 8.9 osh-native mut+alloc+free+gc
222 170 51 9.2 osh-native mut+alloc+free+gc+exit
263 190 73 49.2 osh-nosouffle mut+alloc
268 195 73 51.4 osh-nosouffle mut+alloc+free
227 181 46 9.7 osh-nosouffle mut+alloc+free+gc
225 173 53 9.4 osh-nosouffle mut+alloc+free+gc+exit
279 201 77 65.0 _bin/cxx-opt+nopool/osh mut+alloc
264 200 62 10.4 _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 5 5 3.9 dash -
16 7 9 4.7 bash -
16 7 9 3.9 zsh -
17 7 10 12.5 bumpleak/osh mut
18 8 10 14.2 _bin/cxx-opt+bumproot/osh mut
20 11 10 13.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 7 13 11.5 osh-native mut+alloc
21 10 11 11.8 osh-native mut+alloc+free
20 12 9 9.3 osh-native mut+alloc+free+gc
21 12 9 9.6 osh-native mut+alloc+free+gc+exit
20 11 10 12.1 osh-nosouffle mut+alloc
22 14 9 12.3 osh-nosouffle mut+alloc+free
22 11 11 10.0 osh-nosouffle mut+alloc+free+gc
23 13 10 10.0 osh-nosouffle mut+alloc+free+gc+exit
23 9 14 13.2 _bin/cxx-opt+nopool/osh mut+alloc
24 16 8 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc