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 37 4 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.6 476,745 1,282 6 406,188 5 203,094 osh-native-souffle
parse.configure-coreutils 161 24 73 44.5 49.6 1,653,333 4,764 12 1,025,514 6 764,300 osh-native
parse.configure-coreutils 138 24 60 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 7.9 101,936 180 3 87,080 1 43,540 osh-native-souffle
ex.compute-fib 28 0 2 2.1 7.9 579,600 22,608 12 50,000 0 2,913 osh-native
ex.compute-fib 22 0 1 2.1 7.7 579,600 22,608 12 50,000 0 2,851 osh-native-souffle
ex.bashcomp-parse-help 184 0 4 10.3 8.5 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 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 -
24 24 0 3.1 bash -
105 69 43 3.3 zsh -
16 12 4 28.8 bumpleak/osh mut
19 19 0 29.2 _bin/cxx-opt+bumproot/osh mut
23 23 0 29.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 18 11 25.2 osh-native mut+alloc
31 27 4 25.7 osh-native mut+alloc+free
37 32 4 18.0 osh-native mut+alloc+free+gc
37 33 4 18.1 osh-native mut+alloc+free+gc+exit
43 31 12 33.0 _bin/cxx-opt+nopool/osh mut+alloc
49 36 12 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 9 17 24.6 osh-native-souffle mut+alloc
28 20 8 25.2 osh-native-souffle mut+alloc+free
33 28 4 17.6 osh-native-souffle mut+alloc+free+gc
35 22 13 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
21 18 4 1.6 dash -
78 77 0 3.1 bash -
380 225 176 3.5 zsh -
48 36 12 84.1 bumpleak/osh mut
60 40 20 85.3 _bin/cxx-opt+bumproot/osh mut
71 67 4 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 45 53 73.4 osh-native mut+alloc
109 84 24 75.4 osh-native mut+alloc+free
161 129 32 49.6 osh-native mut+alloc+free+gc
170 149 20 50.5 osh-native mut+alloc+free+gc+exit
140 96 44 98.1 _bin/cxx-opt+nopool/osh mut+alloc
216 180 36 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 57 32 73.1 osh-native-souffle mut+alloc
96 75 20 75.0 osh-native-souffle mut+alloc+free
138 121 16 50.9 osh-native-souffle mut+alloc+free+gc
155 134 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.3 dash -
6 6 0 2.9 bash -
8 0 7 3.3 zsh -
6 6 0 11.3 bumpleak/osh mut
6 6 0 12.7 _bin/cxx-opt+bumproot/osh mut
8 8 0 12.3 _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
9 9 0 8.7 osh-native mut+alloc+free+gc
9 3 6 8.5 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 11 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 8 0 9.8 osh-native-souffle mut+alloc+free
9 4 4 7.9 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
11 7 3 1.4 dash -
29 28 0 3.0 bash -
24 20 4 3.1 zsh -
19 19 0 32.7 bumpleak/osh mut
26 21 4 32.4 _bin/cxx-opt+bumproot/osh mut
27 27 0 32.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.3 osh-native mut+alloc
37 29 8 26.6 osh-native mut+alloc+free
28 21 7 7.9 osh-native mut+alloc+free+gc
28 20 8 7.9 osh-native mut+alloc+free+gc+exit
54 42 12 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 27 4 25.7 osh-native-souffle mut+alloc
32 12 20 26.2 osh-native-souffle mut+alloc+free
22 22 0 7.7 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
73 73 0 3.1 bash -
168 98 70 56.0 bumpleak/osh mut
182 111 71 56.2 _bin/cxx-opt+bumproot/osh mut
196 124 72 56.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 108 104 47.4 osh-native mut+alloc
219 131 88 49.1 osh-native mut+alloc+free
184 112 72 8.5 osh-native mut+alloc+free+gc
184 108 76 8.8 osh-native mut+alloc+free+gc+exit
234 123 111 63.4 _bin/cxx-opt+nopool/osh mut+alloc
214 154 59 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 121 85 46.9 osh-native-souffle mut+alloc
213 130 83 48.7 osh-native-souffle mut+alloc+free
175 119 56 8.3 osh-native-souffle mut+alloc+free+gc
176 132 44 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 6 4 3.4 dash -
20 12 8 4.3 bash -
18 8 11 3.5 zsh -
18 8 11 13.1 bumpleak/osh mut
20 11 9 12.4 _bin/cxx-opt+bumproot/osh mut
20 18 3 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 16 6 11.1 osh-native mut+alloc
22 13 10 11.1 osh-native mut+alloc+free
22 12 11 9.0 osh-native mut+alloc+free+gc
23 21 3 9.0 osh-native mut+alloc+free+gc+exit
25 14 11 12.8 _bin/cxx-opt+nopool/osh mut+alloc
26 10 16 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 12 9 10.7 osh-native-souffle mut+alloc
21 16 6 10.6 osh-native-souffle mut+alloc+free
21 10 11 8.7 osh-native-souffle mut+alloc+free+gc
22 11 11 8.5 osh-native-souffle mut+alloc+free+gc+exit