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 38 4 11 12.1 17.8 476,735 1,282 6 409,276 5 204,638 osh-native
parse.configure-cpython 35 5 11 12.0 17.6 476,735 1,282 6 408,776 5 204,388 osh-native-souffle
parse.configure-coreutils 182 27 94 41.1 45.8 1,653,323 4,764 12 1,591,958 7 795,979 osh-native
parse.configure-coreutils 157 28 79 44.6 49.8 1,653,322 4,764 12 1,030,660 6 769,414 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,926 180 2 75,248 1 37,624 osh-native
parse.abuild 9 1 1 2.6 8.1 101,926 180 2 75,118 1 37,559 osh-native-souffle
ex.compute-fib 29 0 2 2.4 7.9 584,191 22,608 12 50,000 0 2,901 osh-native
ex.compute-fib 22 0 1 2.4 7.5 584,191 22,608 12 50,000 0 2,839 osh-native-souffle
ex.bashcomp-parse-help 184 0 4 10.3 8.8 995,272 12,911 21 50,000 0 3,889 osh-native
ex.bashcomp-parse-help 174 0 4 10.3 8.4 995,271 12,911 21 50,000 0 3,829 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.0 116,341 270 3 85,484 1 42,742 osh-native
ex.abuild-print-help 22 1 2 2.8 8.7 116,341 270 3 85,360 1 42,680 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 -
107 58 55 3.4 zsh -
16 12 4 28.8 bumpleak/osh mut
20 12 8 30.0 _bin/cxx-opt+bumproot/osh mut
24 20 4 28.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 15 15 25.2 osh-native mut+alloc
33 20 12 25.7 osh-native mut+alloc+free
38 22 15 17.8 osh-native mut+alloc+free+gc
38 33 4 18.0 osh-native mut+alloc+free+gc+exit
44 28 16 32.1 _bin/cxx-opt+nopool/osh mut+alloc
54 42 12 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
28 20 8 24.8 osh-native-souffle mut+alloc
30 26 4 25.3 osh-native-souffle mut+alloc+free
35 23 11 17.6 osh-native-souffle mut+alloc+free+gc
36 32 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
21 21 0 1.4 dash -
78 73 4 3.1 bash -
381 196 207 3.5 zsh -
49 37 12 85.3 bumpleak/osh mut
60 59 0 84.7 _bin/cxx-opt+bumproot/osh mut
73 60 12 85.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 55 43 73.4 osh-native mut+alloc
110 63 47 75.4 osh-native mut+alloc+free
182 147 36 45.8 osh-native mut+alloc+free+gc
184 164 20 46.1 osh-native mut+alloc+free+gc+exit
139 79 59 97.7 _bin/cxx-opt+nopool/osh mut+alloc
265 232 32 61.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
90 53 37 73.3 osh-native-souffle mut+alloc
98 51 47 75.0 osh-native-souffle mut+alloc+free
157 133 24 49.8 osh-native-souffle mut+alloc+free+gc
166 158 8 50.3 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 8 0 3.3 zsh -
6 6 0 11.6 bumpleak/osh mut
7 0 7 11.7 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 10.1 osh-native mut+alloc
9 4 4 10.2 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
10 3 7 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 4 4 9.7 osh-native-souffle mut+alloc+free
9 4 4 8.1 osh-native-souffle mut+alloc+free+gc
9 9 0 8.1 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 28 0 3.0 bash -
24 19 4 3.4 zsh -
18 14 5 31.0 bumpleak/osh mut
25 15 11 32.1 _bin/cxx-opt+bumproot/osh mut
28 24 4 32.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 20 16 26.3 osh-native mut+alloc
40 28 12 26.7 osh-native mut+alloc+free
29 28 0 7.9 osh-native mut+alloc+free+gc
29 28 0 8.0 osh-native mut+alloc+free+gc+exit
54 39 15 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 19 11 25.8 osh-native-souffle mut+alloc
33 28 4 26.2 osh-native-souffle mut+alloc+free
22 17 4 7.5 osh-native-souffle mut+alloc+free+gc
22 14 7 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
74 62 12 3.1 bash -
171 111 59 55.7 bumpleak/osh mut
181 124 56 55.3 _bin/cxx-opt+bumproot/osh mut
196 124 72 55.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
216 112 104 47.1 osh-native mut+alloc
220 148 72 48.7 osh-native mut+alloc+free
184 139 44 8.8 osh-native mut+alloc+free+gc
184 114 70 8.8 osh-native mut+alloc+free+gc+exit
236 148 88 63.7 _bin/cxx-opt+nopool/osh mut+alloc
224 160 64 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 140 64 46.6 osh-native-souffle mut+alloc
213 144 68 48.2 osh-native-souffle mut+alloc+free
174 142 32 8.4 osh-native-souffle mut+alloc+free+gc
173 116 56 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.5 bash -
18 10 9 3.4 zsh -
19 11 8 11.6 bumpleak/osh mut
20 13 7 12.5 _bin/cxx-opt+bumproot/osh mut
23 12 11 14.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 17 5 11.1 osh-native mut+alloc
23 16 8 11.1 osh-native mut+alloc+free
23 13 10 9.0 osh-native mut+alloc+free+gc
23 20 4 9.0 osh-native mut+alloc+free+gc+exit
26 12 14 12.8 _bin/cxx-opt+nopool/osh mut+alloc
27 21 6 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 6 16 10.5 osh-native-souffle mut+alloc
22 16 7 10.9 osh-native-souffle mut+alloc+free
22 15 7 8.7 osh-native-souffle mut+alloc+free+gc
22 15 7 8.8 osh-native-souffle mut+alloc+free+gc+exit