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 10 12.0 18.0 476,745 1,282 6 406,318 5 203,159 osh-native
parse.configure-cpython 34 5 11 12.0 17.4 476,745 1,282 6 406,188 5 203,094 osh-native-souffle
parse.configure-coreutils 145 22 59 44.5 49.8 1,653,333 4,764 12 1,025,514 6 764,300 osh-native
parse.configure-coreutils 139 22 61 45.9 51.0 1,653,332 4,764 12 1,063,844 6 792,360 osh-native-souffle
parse.abuild 9 1 1 2.6 8.4 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 27 0 1 2.1 8.1 579,600 22,608 12 50,000 0 2,913 osh-native
ex.compute-fib 22 0 1 2.1 7.6 579,600 22,608 12 50,000 0 2,851 osh-native-souffle
ex.bashcomp-parse-help 180 0 3 10.3 8.7 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 22 1 2 2.8 9.0 116,312 277 3 85,236 1 42,618 osh-native
ex.abuild-print-help 20 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 19 4 3.0 bash -
105 73 39 3.4 zsh -
16 12 4 29.3 bumpleak/osh mut
19 18 0 29.1 _bin/cxx-opt+bumproot/osh mut
21 14 7 29.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 25 4 25.3 osh-native mut+alloc
31 22 9 25.7 osh-native mut+alloc+free
36 28 8 18.0 osh-native mut+alloc+free+gc
36 32 4 18.1 osh-native mut+alloc+free+gc+exit
42 27 15 32.2 _bin/cxx-opt+nopool/osh mut+alloc
48 36 12 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 23 4 24.9 osh-native-souffle mut+alloc
29 24 4 25.3 osh-native-souffle mut+alloc+free
34 27 8 17.4 osh-native-souffle mut+alloc+free+gc
34 23 11 17.6 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 18 4 1.6 dash -
77 77 0 3.1 bash -
372 186 207 3.5 zsh -
48 36 12 84.6 bumpleak/osh mut
60 55 4 85.6 _bin/cxx-opt+bumproot/osh mut
69 57 12 85.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 64 32 73.4 osh-native mut+alloc
105 76 28 75.2 osh-native mut+alloc+free
145 136 8 49.8 osh-native mut+alloc+free+gc
156 136 20 50.3 osh-native mut+alloc+free+gc+exit
138 101 36 98.5 _bin/cxx-opt+nopool/osh mut+alloc
219 191 28 66.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 47 40 73.2 osh-native-souffle mut+alloc
97 52 44 75.0 osh-native-souffle mut+alloc+free
139 115 24 51.0 osh-native-souffle mut+alloc+free+gc
141 105 35 51.5 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 6 0 2.9 bash -
8 0 7 3.3 zsh -
6 0 6 10.9 bumpleak/osh mut
7 3 3 11.3 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.0 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
9 4 4 8.4 osh-native mut+alloc+free+gc
9 0 9 8.5 osh-native mut+alloc+free+gc+exit
12 12 0 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.6 osh-native-souffle mut+alloc
8 4 4 9.7 osh-native-souffle mut+alloc+free
9 4 4 8.0 osh-native-souffle mut+alloc+free+gc
10 10 0 7.9 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 7 3 1.4 dash -
29 29 0 2.9 bash -
24 24 0 3.3 zsh -
19 15 4 31.9 bumpleak/osh mut
25 22 4 32.5 _bin/cxx-opt+bumproot/osh mut
27 8 19 32.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 36 0 26.3 osh-native mut+alloc
37 24 12 26.3 osh-native mut+alloc+free
27 23 4 8.1 osh-native mut+alloc+free+gc
27 27 0 8.0 osh-native mut+alloc+free+gc+exit
54 41 12 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 36 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 8 21 25.8 osh-native-souffle mut+alloc
31 27 4 26.3 osh-native-souffle mut+alloc+free
22 22 0 7.6 osh-native-souffle mut+alloc+free+gc
21 14 7 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 69 4 3.0 bash -
168 100 68 54.6 bumpleak/osh mut
182 125 57 55.1 _bin/cxx-opt+bumproot/osh mut
193 129 64 57.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 123 87 47.3 osh-native mut+alloc
219 151 68 49.0 osh-native mut+alloc+free
180 116 64 8.7 osh-native mut+alloc+free+gc
181 132 48 8.8 osh-native mut+alloc+free+gc+exit
234 157 77 62.7 _bin/cxx-opt+nopool/osh mut+alloc
210 137 72 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 136 68 46.9 osh-native-souffle mut+alloc
209 134 75 48.6 osh-native-souffle mut+alloc+free
175 127 48 8.3 osh-native-souffle mut+alloc+free+gc
174 117 57 8.4 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
9 4 5 3.5 dash -
19 18 2 4.5 bash -
17 10 8 3.5 zsh -
19 12 8 12.5 bumpleak/osh mut
20 20 1 13.0 _bin/cxx-opt+bumproot/osh mut
20 14 7 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 18 3 10.9 osh-native mut+alloc
22 10 13 11.0 osh-native mut+alloc+free
22 16 7 9.0 osh-native mut+alloc+free+gc
22 14 9 9.0 osh-native mut+alloc+free+gc+exit
24 16 8 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 15 10 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 10 10 10.6 osh-native-souffle mut+alloc
21 7 14 10.7 osh-native-souffle mut+alloc+free
20 12 9 8.7 osh-native-souffle mut+alloc+free+gc
21 14 7 8.5 osh-native-souffle mut+alloc+free+gc+exit