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 35 3 10 12.0 18.0 476,745 1,282 6 406,318 5 203,159 osh-native
parse.configure-cpython 33 3 9 12.0 17.4 476,745 1,282 6 406,188 5 203,094 osh-native-souffle
parse.configure-coreutils 147 23 62 44.5 49.7 1,653,333 4,764 12 1,025,514 6 764,300 osh-native
parse.configure-coreutils 135 23 58 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.7 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 2 2.1 8.0 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 182 0 4 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 22 1 2 2.8 9.2 116,312 277 3 85,236 1 42,618 osh-native
ex.abuild-print-help 21 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 -
23 23 0 3.0 bash -
104 50 60 3.4 zsh -
16 12 4 29.2 bumpleak/osh mut
19 11 8 29.3 _bin/cxx-opt+bumproot/osh mut
23 15 8 29.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 25 4 25.2 osh-native mut+alloc
31 23 8 25.4 osh-native mut+alloc+free
35 24 12 18.0 osh-native mut+alloc+free+gc
37 26 11 18.1 osh-native mut+alloc+free+gc+exit
42 31 11 32.2 _bin/cxx-opt+nopool/osh mut+alloc
47 38 9 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 19 8 24.8 osh-native-souffle mut+alloc
28 20 8 25.3 osh-native-souffle mut+alloc+free
33 28 4 17.4 osh-native-souffle mut+alloc+free+gc
33 24 8 17.8 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 -
78 73 4 3.3 bash -
376 205 193 3.5 zsh -
49 40 8 84.8 bumpleak/osh mut
60 52 8 85.1 _bin/cxx-opt+bumproot/osh mut
70 55 16 86.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
101 66 35 73.6 osh-native mut+alloc
104 84 20 75.1 osh-native mut+alloc+free
147 119 28 49.7 osh-native mut+alloc+free+gc
157 145 12 50.5 osh-native mut+alloc+free+gc+exit
140 112 28 99.0 _bin/cxx-opt+nopool/osh mut+alloc
205 157 47 68.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 68 20 73.1 osh-native-souffle mut+alloc
97 73 24 74.8 osh-native-souffle mut+alloc+free
135 110 25 50.9 osh-native-souffle mut+alloc+free+gc
140 116 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.8 bash -
8 8 0 3.3 zsh -
7 7 0 11.2 bumpleak/osh mut
6 6 0 12.4 _bin/cxx-opt+bumproot/osh mut
8 7 0 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 9.8 osh-native mut+alloc
8 0 8 10.2 osh-native mut+alloc+free
9 6 3 8.7 osh-native mut+alloc+free+gc
9 3 6 8.4 osh-native mut+alloc+free+gc+exit
12 4 8 11.3 _bin/cxx-opt+nopool/osh mut+alloc
11 7 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 4 4 10.0 osh-native-souffle mut+alloc+free
9 4 4 8.0 osh-native-souffle mut+alloc+free+gc
9 9 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 10 0 1.4 dash -
29 29 0 2.9 bash -
24 16 8 3.3 zsh -
19 11 7 31.4 bumpleak/osh mut
25 21 4 32.0 _bin/cxx-opt+bumproot/osh mut
28 20 8 32.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 20 16 26.2 osh-native mut+alloc
37 29 8 26.6 osh-native mut+alloc+free
28 24 4 8.0 osh-native mut+alloc+free+gc
27 23 4 8.0 osh-native mut+alloc+free+gc+exit
53 26 26 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 17 13 26.0 osh-native-souffle mut+alloc
31 19 11 26.3 osh-native-souffle mut+alloc+free
22 21 0 7.6 osh-native-souffle mut+alloc+free+gc
22 18 4 7.5 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 119 51 54.5 bumpleak/osh mut
183 130 53 56.4 _bin/cxx-opt+bumproot/osh mut
193 136 56 57.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 129 81 47.4 osh-native mut+alloc
217 152 64 49.1 osh-native mut+alloc+free
182 125 57 8.8 osh-native mut+alloc+free+gc
182 129 52 8.8 osh-native mut+alloc+free+gc+exit
233 173 60 64.0 _bin/cxx-opt+nopool/osh mut+alloc
210 157 52 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 152 52 46.9 osh-native-souffle mut+alloc
212 132 80 48.7 osh-native-souffle mut+alloc+free
175 122 53 8.3 osh-native-souffle mut+alloc+free+gc
177 108 68 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
10 4 6 3.4 dash -
20 8 12 4.5 bash -
18 14 5 3.4 zsh -
19 12 7 12.1 bumpleak/osh mut
20 11 9 13.2 _bin/cxx-opt+bumproot/osh mut
20 15 5 13.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 18 3 11.0 osh-native mut+alloc
22 14 9 11.1 osh-native mut+alloc+free
22 11 12 9.2 osh-native mut+alloc+free+gc
22 21 2 9.0 osh-native mut+alloc+free+gc+exit
24 17 8 12.7 _bin/cxx-opt+nopool/osh mut+alloc
24 16 8 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 12 9 10.6 osh-native-souffle mut+alloc
21 17 5 10.7 osh-native-souffle mut+alloc+free
21 6 15 8.7 osh-native-souffle mut+alloc+free+gc
21 13 8 8.8 osh-native-souffle mut+alloc+free+gc+exit