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 41 6 14 12.0 17.7 476,745 1,282 6 406,318 5 203,159 osh-native
parse.configure-cpython 39 6 14 12.0 17.6 476,745 1,282 6 406,188 5 203,094 osh-native-souffle
parse.configure-coreutils 180 29 92 44.5 49.7 1,653,333 4,764 12 1,025,514 6 764,300 osh-native
parse.configure-coreutils 163 28 83 45.9 50.9 1,653,332 4,764 12 1,063,844 6 792,360 osh-native-souffle
parse.abuild 10 1 2 2.6 8.7 101,936 180 2 75,018 1 37,509 osh-native
parse.abuild 9 1 2 2.4 7.9 101,936 180 3 87,080 1 43,540 osh-native-souffle
ex.compute-fib 28 0 2 2.1 7.7 579,600 22,608 12 50,000 0 2,913 osh-native
ex.compute-fib 22 0 2 2.1 7.6 579,600 22,608 12 50,000 0 2,851 osh-native-souffle
ex.bashcomp-parse-help 186 0 5 10.3 8.8 995,282 15,258 21 50,000 0 3,895 osh-native
ex.bashcomp-parse-help 180 0 5 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.5 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
7 6 0 1.6 dash -
24 23 0 3.0 bash -
106 62 50 3.4 zsh -
17 16 0 27.7 bumpleak/osh mut
19 14 5 29.1 _bin/cxx-opt+bumproot/osh mut
23 11 11 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 26 4 25.3 osh-native mut+alloc
32 24 8 25.7 osh-native mut+alloc+free
41 37 4 17.7 osh-native mut+alloc+free+gc
43 39 4 18.1 osh-native mut+alloc+free+gc+exit
43 27 16 32.0 _bin/cxx-opt+nopool/osh mut+alloc
59 43 16 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 23 5 24.8 osh-native-souffle mut+alloc
30 22 7 25.3 osh-native-souffle mut+alloc+free
39 34 4 17.6 osh-native-souffle mut+alloc+free+gc
38 34 4 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
23 22 0 1.6 dash -
79 75 4 3.1 bash -
379 219 183 3.7 zsh -
48 37 11 85.6 bumpleak/osh mut
61 42 19 85.5 _bin/cxx-opt+bumproot/osh mut
71 47 24 85.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 67 31 73.4 osh-native mut+alloc
106 65 41 75.5 osh-native mut+alloc+free
180 156 24 49.7 osh-native mut+alloc+free+gc
183 167 16 50.3 osh-native mut+alloc+free+gc+exit
140 80 60 98.3 _bin/cxx-opt+nopool/osh mut+alloc
249 209 40 68.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
90 54 35 73.1 osh-native-souffle mut+alloc
98 61 37 75.1 osh-native-souffle mut+alloc+free
163 139 24 50.9 osh-native-souffle mut+alloc+free+gc
171 146 24 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.3 dash -
6 6 0 2.9 bash -
8 4 4 3.3 zsh -
6 6 0 11.0 bumpleak/osh mut
7 0 7 12.7 _bin/cxx-opt+bumproot/osh mut
8 4 4 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 10.0 osh-native mut+alloc
9 9 0 10.1 osh-native mut+alloc+free
10 6 3 8.7 osh-native mut+alloc+free+gc
10 7 3 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
13 8 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.6 osh-native-souffle mut+alloc
8 0 8 9.7 osh-native-souffle mut+alloc+free
9 5 5 7.9 osh-native-souffle mut+alloc+free+gc
9 0 9 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 -
28 28 0 3.0 bash -
24 16 8 3.4 zsh -
19 15 4 31.6 bumpleak/osh mut
27 23 4 32.8 _bin/cxx-opt+bumproot/osh mut
29 18 11 31.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 20 16 26.3 osh-native mut+alloc
39 27 11 26.5 osh-native mut+alloc+free
28 24 4 7.7 osh-native mut+alloc+free+gc
29 28 0 8.1 osh-native mut+alloc+free+gc+exit
56 44 12 35.7 _bin/cxx-opt+nopool/osh mut+alloc
37 29 8 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 13 17 26.0 osh-native-souffle mut+alloc
33 16 16 26.2 osh-native-souffle mut+alloc+free
22 18 4 7.6 osh-native-souffle mut+alloc+free+gc
22 22 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
72 72 0 3.0 bash -
170 117 52 55.0 bumpleak/osh mut
184 124 60 55.1 _bin/cxx-opt+bumproot/osh mut
197 120 76 55.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
215 135 80 47.3 osh-native mut+alloc
224 148 76 49.1 osh-native mut+alloc+free
186 141 44 8.8 osh-native mut+alloc+free+gc
187 131 55 8.8 osh-native mut+alloc+free+gc+exit
238 173 64 64.4 _bin/cxx-opt+nopool/osh mut+alloc
230 174 56 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
210 134 75 46.9 osh-native-souffle mut+alloc
215 146 69 48.6 osh-native-souffle mut+alloc+free
180 112 68 8.3 osh-native-souffle mut+alloc+free+gc
180 132 48 8.1 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 5 6 3.5 dash -
20 12 8 4.3 bash -
18 10 9 3.5 zsh -
19 10 9 12.9 bumpleak/osh mut
20 12 9 12.2 _bin/cxx-opt+bumproot/osh mut
21 10 12 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 13 9 11.0 osh-native mut+alloc
23 16 7 11.0 osh-native mut+alloc+free
23 15 9 9.0 osh-native mut+alloc+free+gc
24 16 8 9.0 osh-native mut+alloc+free+gc+exit
26 17 9 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 18 8 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 8 13 10.7 osh-native-souffle mut+alloc
22 13 10 10.7 osh-native-souffle mut+alloc+free
22 14 8 8.5 osh-native-souffle mut+alloc+free+gc
23 20 3 8.8 osh-native-souffle mut+alloc+free+gc+exit