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 10 12.0 18.4 471,252 1,282 6 413,132 5 206,566 osh-native
parse.configure-cpython 33 4 10 12.0 18.7 471,252 1,282 6 413,140 5 206,570 osh-nosouffle
parse.configure-coreutils 126 20 61 45.9 51.9 1,637,991 4,764 12 1,056,630 6 787,836 osh-native
parse.configure-coreutils 135 20 59 45.9 52.4 1,637,990 4,764 12 1,056,638 6 787,840 osh-nosouffle
parse.abuild 8 1 2 2.6 8.8 102,780 180 3 86,618 1 43,309 osh-native
parse.abuild 9 1 2 2.6 9.0 102,780 180 3 86,626 1 43,313 osh-nosouffle
ex.compute-fib 20 0 2 2.8 8.3 576,705 22,608 12 50,000 0 2,976 osh-native
ex.compute-fib 25 0 2 2.8 8.7 576,705 22,608 12 50,000 0 2,981 osh-nosouffle
ex.bashcomp-parse-help 171 0 5 11.6 9.2 990,260 15,258 21 50,000 0 3,957 osh-native
ex.bashcomp-parse-help 176 0 5 11.6 9.3 990,259 15,258 21 50,000 0 3,966 osh-nosouffle
ex.abuild-print-help 18 1 2 3.0 9.6 117,247 277 3 83,980 1 41,990 osh-native
ex.abuild-print-help 19 1 2 3.0 9.8 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
5 5 0 1.7 dash -
11 10 1 3.5 bash -
66 43 27 3.5 zsh -
15 10 6 29.4 bumpleak/osh mut
17 12 5 30.2 _bin/cxx-opt+bumproot/osh mut
19 12 7 30.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 10 11 25.7 osh-native mut+alloc
24 15 9 26.0 osh-native mut+alloc+free
30 24 6 18.4 osh-native mut+alloc+free+gc
31 26 5 18.4 osh-native mut+alloc+free+gc+exit
24 19 5 26.0 osh-nosouffle mut+alloc
27 13 14 26.5 osh-nosouffle mut+alloc+free
33 26 7 18.7 osh-nosouffle mut+alloc+free+gc
35 30 5 18.7 osh-nosouffle mut+alloc+free+gc+exit
33 21 12 32.2 _bin/cxx-opt+nopool/osh mut+alloc
42 36 6 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
18 17 1 1.7 dash -
38 38 0 3.5 bash -
238 151 102 3.8 zsh -
49 34 15 85.5 bumpleak/osh mut
53 37 16 86.4 _bin/cxx-opt+bumproot/osh mut
61 43 18 84.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
70 42 28 73.7 osh-native mut+alloc
81 57 24 75.6 osh-native mut+alloc+free
126 111 15 51.9 osh-native mut+alloc+free+gc
135 118 17 52.5 osh-native mut+alloc+free+gc+exit
80 51 29 74.2 osh-nosouffle mut+alloc
91 67 24 75.9 osh-nosouffle mut+alloc+free
135 108 27 52.4 osh-nosouffle mut+alloc+free+gc
142 124 18 53.0 osh-nosouffle mut+alloc+free+gc+exit
110 71 39 97.8 _bin/cxx-opt+nopool/osh mut+alloc
191 162 29 72.7 _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
1 1 0 1.7 dash -
3 2 1 3.3 bash -
5 2 3 3.4 zsh -
6 2 4 11.8 bumpleak/osh mut
6 3 3 12.4 _bin/cxx-opt+bumproot/osh mut
6 4 2 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
7 4 2 10.7 osh-native mut+alloc
7 5 2 10.7 osh-native mut+alloc+free
8 7 1 8.8 osh-native mut+alloc+free+gc
8 6 2 8.9 osh-native mut+alloc+free+gc+exit
7 5 2 11.0 osh-nosouffle mut+alloc
8 5 3 11.1 osh-nosouffle mut+alloc+free
9 8 1 9.0 osh-nosouffle mut+alloc+free+gc
10 6 3 9.4 osh-nosouffle mut+alloc+free+gc+exit
9 6 3 11.9 _bin/cxx-opt+nopool/osh mut+alloc
11 7 4 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 9 0 1.6 dash -
30 28 1 3.3 bash -
16 13 3 3.5 zsh -
19 13 6 33.1 bumpleak/osh mut
21 13 8 32.5 _bin/cxx-opt+bumproot/osh mut
23 15 8 33.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 19 7 27.0 osh-native mut+alloc
28 21 7 27.3 osh-native mut+alloc+free
20 17 3 8.3 osh-native mut+alloc+free+gc
20 19 1 8.4 osh-native mut+alloc+free+gc+exit
30 25 5 27.5 osh-nosouffle mut+alloc
33 22 11 27.8 osh-nosouffle mut+alloc+free
25 21 3 8.7 osh-nosouffle mut+alloc+free+gc
25 24 1 8.9 osh-nosouffle mut+alloc+free+gc+exit
40 19 21 36.3 _bin/cxx-opt+nopool/osh mut+alloc
29 25 4 9.9 _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
96 95 1 3.4 bash -
171 145 26 57.6 bumpleak/osh mut
179 148 31 56.6 _bin/cxx-opt+bumproot/osh mut
188 152 35 56.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
192 158 34 48.9 osh-native mut+alloc
203 161 42 50.9 osh-native mut+alloc+free
171 153 18 9.2 osh-native mut+alloc+free+gc
171 154 17 9.0 osh-native mut+alloc+free+gc+exit
200 157 43 49.3 osh-nosouffle mut+alloc
212 175 37 51.2 osh-nosouffle mut+alloc+free
176 156 20 9.3 osh-nosouffle mut+alloc+free+gc
177 160 16 9.6 osh-nosouffle mut+alloc+free+gc+exit
224 181 43 64.9 _bin/cxx-opt+nopool/osh mut+alloc
201 181 20 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 5 3 4.1 dash -
13 8 6 4.8 bash -
12 7 5 3.9 zsh -
15 7 8 12.6 bumpleak/osh mut
16 10 7 13.8 _bin/cxx-opt+bumproot/osh mut
16 12 4 13.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
16 9 8 11.7 osh-native mut+alloc
18 9 10 11.8 osh-native mut+alloc+free
18 11 7 9.6 osh-native mut+alloc+free+gc
18 14 4 9.7 osh-native mut+alloc+free+gc+exit
17 10 7 12.2 osh-nosouffle mut+alloc
19 13 6 12.3 osh-nosouffle mut+alloc+free
19 12 8 9.8 osh-nosouffle mut+alloc+free+gc
20 11 9 10.2 osh-nosouffle mut+alloc+free+gc+exit
19 11 9 13.0 _bin/cxx-opt+nopool/osh mut+alloc
20 13 8 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc