Memory Management Overhead

Source code: oil/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 36 4 9 12.0 18.0 476,745 1,282 6 406,318 5 203,159 osh-native
parse.configure-cpython 32 3 9 12.0 17.6 476,745 1,282 6 406,188 5 203,094 osh-native-souffle
parse.configure-coreutils 153 25 66 44.5 49.8 1,653,333 4,764 12 1,025,514 6 764,300 osh-native
parse.configure-coreutils 140 23 63 45.9 50.9 1,653,332 4,764 12 1,063,844 6 792,360 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,936 180 2 75,018 1 37,509 osh-native
parse.abuild 9 1 2 2.4 8.0 101,936 180 3 87,080 1 43,540 osh-native-souffle
ex.compute-fib 28 0 1 2.1 8.0 579,600 22,608 12 50,000 0 2,913 osh-native
ex.compute-fib 21 0 1 2.1 7.7 579,600 22,608 12 50,000 0 2,851 osh-native-souffle
ex.bashcomp-parse-help 182 0 3 10.3 8.8 995,282 15,258 21 50,000 0 3,895 osh-native
ex.bashcomp-parse-help 175 0 3 10.3 8.3 995,281 15,258 21 50,000 0 3,840 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.0 116,312 277 3 85,236 1 42,618 osh-native
ex.abuild-print-help 22 1 2 2.8 8.7 116,312 277 3 85,112 1 42,556 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 6 0 1.6 dash -
24 23 0 3.0 bash -
105 60 51 3.4 zsh -
17 4 12 29.4 bumpleak/osh mut
19 19 0 30.0 _bin/cxx-opt+bumproot/osh mut
23 15 8 30.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 25.3 osh-native mut+alloc
31 23 8 25.7 osh-native mut+alloc+free
36 27 8 18.0 osh-native mut+alloc+free+gc
36 32 4 18.1 osh-native mut+alloc+free+gc+exit
42 30 13 32.1 _bin/cxx-opt+nopool/osh mut+alloc
48 44 4 22.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 15 11 24.8 osh-native-souffle mut+alloc
28 24 4 25.2 osh-native-souffle mut+alloc+free
32 24 8 17.6 osh-native-souffle mut+alloc+free+gc
33 25 7 17.7 osh-native-souffle mut+alloc+free+gc+exit

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
22 21 0 1.6 dash -
79 71 8 3.1 bash -
381 212 191 3.5 zsh -
48 44 4 84.5 bumpleak/osh mut
60 48 12 85.6 _bin/cxx-opt+bumproot/osh mut
71 67 4 85.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 48 48 73.5 osh-native mut+alloc
105 77 28 75.5 osh-native mut+alloc+free
153 110 43 49.8 osh-native mut+alloc+free+gc
162 141 20 50.5 osh-native mut+alloc+free+gc+exit
137 97 40 99.1 _bin/cxx-opt+nopool/osh mut+alloc
227 199 28 67.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 59 28 73.1 osh-native-souffle mut+alloc
95 55 39 75.0 osh-native-souffle mut+alloc+free
140 108 32 50.9 osh-native-souffle mut+alloc+free+gc
152 131 20 51.7 osh-native-souffle mut+alloc+free+gc+exit

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.4 dash -
6 3 3 2.9 bash -
8 4 4 3.3 zsh -
6 6 0 11.3 bumpleak/osh mut
7 4 4 11.9 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 9.8 osh-native mut+alloc
9 9 0 10.1 osh-native mut+alloc+free
9 4 4 8.5 osh-native mut+alloc+free+gc
9 9 0 8.5 osh-native mut+alloc+free+gc+exit
12 11 0 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.6 osh-native-souffle mut+alloc
8 4 4 9.8 osh-native-souffle mut+alloc+free
9 9 0 8.0 osh-native-souffle mut+alloc+free+gc
9 9 0 8.0 osh-native-souffle mut+alloc+free+gc+exit

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.4 dash -
29 29 0 3.0 bash -
24 16 8 3.4 zsh -
18 13 4 31.5 bumpleak/osh mut
26 17 9 32.8 _bin/cxx-opt+bumproot/osh mut
28 20 8 32.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 22 15 26.1 osh-native mut+alloc
37 22 15 26.6 osh-native mut+alloc+free
28 24 4 8.0 osh-native mut+alloc+free+gc
28 28 0 8.0 osh-native mut+alloc+free+gc+exit
56 40 16 36.4 _bin/cxx-opt+nopool/osh mut+alloc
38 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 22 7 25.8 osh-native-souffle mut+alloc
31 19 11 26.2 osh-native-souffle mut+alloc+free
21 21 0 7.7 osh-native-souffle mut+alloc+free+gc
21 21 0 7.6 osh-native-souffle mut+alloc+free+gc+exit

ex.bashcomp-parse-help

A realistic bash-completion workload.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
73 72 0 3.1 bash -
166 105 61 54.7 bumpleak/osh mut
183 115 68 55.5 _bin/cxx-opt+bumproot/osh mut
193 133 60 56.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 132 80 47.4 osh-native mut+alloc
220 120 100 49.0 osh-native mut+alloc+free
182 93 89 8.8 osh-native mut+alloc+free+gc
185 120 64 8.8 osh-native mut+alloc+free+gc+exit
234 161 73 63.7 _bin/cxx-opt+nopool/osh mut+alloc
213 145 68 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 116 88 46.9 osh-native-souffle mut+alloc
210 157 52 48.6 osh-native-souffle mut+alloc+free
175 127 48 8.3 osh-native-souffle mut+alloc+free+gc
175 119 55 8.3 osh-native-souffle mut+alloc+free+gc+exit

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 6 4 3.4 dash -
20 14 6 4.5 bash -
18 12 7 3.5 zsh -
19 13 6 12.2 bumpleak/osh mut
21 14 7 13.1 _bin/cxx-opt+bumproot/osh mut
21 12 9 14.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 10 11.0 osh-native mut+alloc
23 10 13 11.1 osh-native mut+alloc+free
23 23 0 9.0 osh-native mut+alloc+free+gc
23 23 0 9.0 osh-native mut+alloc+free+gc+exit
25 15 10 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 18 8 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 15 6 10.6 osh-native-souffle mut+alloc
21 17 5 10.6 osh-native-souffle mut+alloc+free
22 16 5 8.7 osh-native-souffle mut+alloc+free+gc
22 13 9 8.7 osh-native-souffle mut+alloc+free+gc+exit