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 38 6 15 12.0 18.2 471,266 1,282 6 413,148 5 206,574 osh-native
parse.configure-cpython 39 6 14 12.0 18.6 471,266 1,282 6 413,156 5 206,578 osh-nosouffle
parse.configure-coreutils 158 30 82 45.9 51.7 1,638,005 4,764 12 1,056,646 6 787,844 osh-native
parse.configure-coreutils 177 29 85 45.9 52.3 1,638,004 4,764 12 1,056,654 6 787,848 osh-nosouffle
parse.abuild 10 1 2 2.6 8.8 102,794 180 3 86,634 1 43,317 osh-native
parse.abuild 11 1 2 2.6 9.2 102,794 180 3 86,642 1 43,321 osh-nosouffle
ex.compute-fib 21 0 2 2.8 8.1 572,118 22,608 12 50,000 0 2,984 osh-native
ex.compute-fib 25 0 2 2.8 8.7 572,118 22,608 12 50,000 0 2,989 osh-nosouffle
ex.bashcomp-parse-help 225 0 5 11.6 9.2 990,264 15,258 21 50,000 0 3,966 osh-native
ex.bashcomp-parse-help 233 0 5 11.6 9.4 990,263 15,258 21 50,000 0 3,968 osh-nosouffle
ex.abuild-print-help 21 1 2 3.0 9.4 117,222 277 3 83,996 1 41,998 osh-native
ex.abuild-print-help 23 1 2 3.0 10.0 117,221 277 3 84,004 1 42,002 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.7 dash -
13 12 1 3.4 bash -
89 51 45 3.5 zsh -
16 13 2 29.4 bumpleak/osh mut
16 10 7 30.2 _bin/cxx-opt+bumproot/osh mut
19 17 2 29.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
27 17 10 25.6 osh-native mut+alloc
29 17 12 25.8 osh-native mut+alloc+free
38 31 8 18.2 osh-native mut+alloc+free+gc
34 29 5 18.2 osh-native mut+alloc+free+gc+exit
29 17 12 26.0 osh-nosouffle mut+alloc
32 19 13 26.2 osh-nosouffle mut+alloc+free
39 28 11 18.6 osh-nosouffle mut+alloc+free+gc
40 35 5 18.6 osh-nosouffle mut+alloc+free+gc+exit
40 24 16 33.0 _bin/cxx-opt+nopool/osh mut+alloc
55 40 15 22.6 _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 23 0 1.7 dash -
43 41 2 3.4 bash -
333 178 179 3.8 zsh -
46 36 10 85.4 bumpleak/osh mut
49 43 6 84.6 _bin/cxx-opt+bumproot/osh mut
61 44 17 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
84 56 28 73.7 osh-native mut+alloc
95 68 27 75.5 osh-native mut+alloc+free
158 132 26 51.7 osh-native mut+alloc+free+gc
162 135 27 52.4 osh-native mut+alloc+free+gc+exit
95 62 32 74.2 osh-nosouffle mut+alloc
103 74 28 76.1 osh-nosouffle mut+alloc+free
177 152 25 52.3 osh-nosouffle mut+alloc+free+gc
176 152 24 52.9 osh-nosouffle mut+alloc+free+gc+exit
130 74 56 99.0 _bin/cxx-opt+nopool/osh mut+alloc
229 197 32 73.8 _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 2 0 1.7 dash -
4 2 1 3.3 bash -
7 4 3 3.5 zsh -
6 3 3 13.1 bumpleak/osh mut
6 3 3 12.6 _bin/cxx-opt+bumproot/osh mut
8 3 5 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 3 5 10.4 osh-native mut+alloc
9 7 2 10.7 osh-native mut+alloc+free
10 8 2 8.8 osh-native mut+alloc+free+gc
10 6 4 8.8 osh-native mut+alloc+free+gc+exit
9 3 6 10.9 osh-nosouffle mut+alloc
9 6 4 11.1 osh-nosouffle mut+alloc+free
11 7 3 9.2 osh-nosouffle mut+alloc+free+gc
11 9 2 9.4 osh-nosouffle mut+alloc+free+gc+exit
12 8 4 11.8 _bin/cxx-opt+nopool/osh mut+alloc
14 12 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 -
31 30 1 3.3 bash -
21 16 5 3.4 zsh -
17 15 2 32.2 bumpleak/osh mut
19 16 3 32.6 _bin/cxx-opt+bumproot/osh mut
21 12 9 31.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 26.7 osh-native mut+alloc
32 23 8 26.9 osh-native mut+alloc+free
21 18 3 8.1 osh-native mut+alloc+free+gc
21 18 3 8.3 osh-native mut+alloc+free+gc+exit
34 18 16 27.3 osh-nosouffle mut+alloc
36 27 9 27.5 osh-nosouffle mut+alloc+free
25 22 3 8.7 osh-nosouffle mut+alloc+free+gc
25 21 4 8.7 osh-nosouffle mut+alloc+free+gc+exit
47 28 20 36.2 _bin/cxx-opt+nopool/osh mut+alloc
31 26 5 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
104 100 4 3.5 bash -
214 160 54 56.5 bumpleak/osh mut
221 155 66 56.4 _bin/cxx-opt+bumproot/osh mut
244 185 58 57.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
263 185 78 48.8 osh-native mut+alloc
269 196 74 50.7 osh-native mut+alloc+free
225 178 47 9.2 osh-native mut+alloc+free+gc
228 188 40 9.2 osh-native mut+alloc+free+gc+exit
267 188 78 49.2 osh-nosouffle mut+alloc
273 188 85 51.3 osh-nosouffle mut+alloc+free
233 178 55 9.4 osh-nosouffle mut+alloc+free+gc
233 186 47 9.6 osh-nosouffle mut+alloc+free+gc+exit
283 195 88 65.4 _bin/cxx-opt+nopool/osh mut+alloc
274 225 49 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
9 4 6 3.9 dash -
16 11 6 5.0 bash -
16 8 8 3.9 zsh -
18 9 10 12.8 bumpleak/osh mut
18 8 11 14.2 _bin/cxx-opt+bumproot/osh mut
21 9 13 13.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 7 14 11.4 osh-native mut+alloc
22 12 10 11.7 osh-native mut+alloc+free
21 12 10 9.4 osh-native mut+alloc+free+gc
22 8 15 9.6 osh-native mut+alloc+free+gc+exit
21 9 13 12.1 osh-nosouffle mut+alloc
23 15 8 12.2 osh-nosouffle mut+alloc+free
23 14 10 10.0 osh-nosouffle mut+alloc+free+gc
22 12 11 10.2 osh-nosouffle mut+alloc+free+gc+exit
24 11 14 13.1 _bin/cxx-opt+nopool/osh mut+alloc
25 13 13 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc