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.1 18.0 476,735 1,282 6 409,280 5 204,640 osh-native
parse.configure-cpython 32 3 9 12.0 17.7 476,735 1,282 6 408,780 5 204,390 osh-native-souffle
parse.configure-coreutils 159 22 75 41.1 45.9 1,653,323 4,764 12 1,591,962 7 795,981 osh-native
parse.configure-coreutils 137 23 60 44.6 49.7 1,653,322 4,764 12 1,030,664 6 769,416 osh-native-souffle
parse.abuild 9 1 1 2.6 8.4 101,926 180 2 75,252 1 37,626 osh-native
parse.abuild 8 1 1 2.6 8.3 101,926 180 2 75,122 1 37,561 osh-native-souffle
ex.compute-fib 29 0 2 2.4 7.9 584,191 22,608 12 50,000 0 2,903 osh-native
ex.compute-fib 23 0 2 2.4 7.6 584,191 22,608 12 50,000 0 2,841 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 10.3 8.9 995,272 12,911 21 50,000 0 3,891 osh-native
ex.bashcomp-parse-help 175 0 4 10.3 8.3 995,271 12,911 21 50,000 0 3,831 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,341 270 3 85,488 1 42,744 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,341 270 3 85,364 1 42,682 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 19 4 3.0 bash -
106 61 51 3.4 zsh -
16 16 0 28.2 bumpleak/osh mut
20 16 4 30.1 _bin/cxx-opt+bumproot/osh mut
22 22 0 29.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 30 0 25.2 osh-native mut+alloc
32 20 12 25.7 osh-native mut+alloc+free
36 24 12 18.0 osh-native mut+alloc+free+gc
37 22 15 18.1 osh-native mut+alloc+free+gc+exit
44 24 20 32.1 _bin/cxx-opt+nopool/osh mut+alloc
50 39 12 22.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 19 8 24.9 osh-native-souffle mut+alloc
29 21 8 25.3 osh-native-souffle mut+alloc+free
32 32 0 17.7 osh-native-souffle mut+alloc+free+gc
34 29 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
22 17 4 1.6 dash -
78 78 0 3.1 bash -
380 199 200 3.5 zsh -
48 36 12 84.5 bumpleak/osh mut
59 47 12 84.5 _bin/cxx-opt+bumproot/osh mut
72 67 4 86.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 49 49 73.5 osh-native mut+alloc
106 61 45 75.2 osh-native mut+alloc+free
159 135 24 45.9 osh-native mut+alloc+free+gc
163 131 32 46.0 osh-native mut+alloc+free+gc+exit
141 92 48 98.8 _bin/cxx-opt+nopool/osh mut+alloc
244 212 32 61.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 72 16 73.2 osh-native-souffle mut+alloc
96 44 52 74.9 osh-native-souffle mut+alloc+free
137 110 27 49.7 osh-native-souffle mut+alloc+free+gc
149 125 23 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 6 0 2.9 bash -
8 0 7 3.3 zsh -
6 6 0 11.7 bumpleak/osh mut
7 0 7 11.9 _bin/cxx-opt+bumproot/osh mut
7 3 3 11.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.1 osh-native mut+alloc
9 3 6 10.0 osh-native mut+alloc+free
9 0 9 8.4 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 12 0 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.8 osh-native-souffle mut+alloc
8 4 4 9.7 osh-native-souffle mut+alloc+free
8 8 0 8.3 osh-native-souffle mut+alloc+free+gc
8 8 0 8.4 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.6 dash -
34 34 0 2.8 bash -
24 20 4 3.3 zsh -
19 18 0 31.2 bumpleak/osh mut
26 14 11 31.5 _bin/cxx-opt+bumproot/osh mut
29 18 11 32.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 20 16 26.2 osh-native mut+alloc
38 29 8 26.7 osh-native mut+alloc+free
29 25 4 7.9 osh-native mut+alloc+free+gc
28 24 4 7.9 osh-native mut+alloc+free+gc+exit
54 42 12 36.2 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 11 26.0 osh-native-souffle mut+alloc
32 16 16 26.3 osh-native-souffle mut+alloc+free
23 19 4 7.6 osh-native-souffle mut+alloc+free+gc
22 22 0 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
75 71 4 3.3 bash -
172 120 52 53.9 bumpleak/osh mut
183 107 75 55.9 _bin/cxx-opt+bumproot/osh mut
193 120 72 56.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 148 64 47.1 osh-native mut+alloc
222 153 68 48.7 osh-native mut+alloc+free
182 115 67 8.9 osh-native mut+alloc+free+gc
184 112 72 8.8 osh-native mut+alloc+free+gc+exit
235 163 71 64.2 _bin/cxx-opt+nopool/osh mut+alloc
210 141 69 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 128 76 46.6 osh-native-souffle mut+alloc
210 105 105 48.3 osh-native-souffle mut+alloc+free
175 115 60 8.3 osh-native-souffle mut+alloc+free+gc
174 130 45 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 9 1 3.4 dash -
20 12 8 4.5 bash -
18 13 6 3.5 zsh -
18 10 8 13.3 bumpleak/osh mut
21 14 7 13.3 _bin/cxx-opt+bumproot/osh mut
21 19 2 12.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 11 11.0 osh-native mut+alloc
22 13 10 11.1 osh-native mut+alloc+free
22 21 2 9.0 osh-native mut+alloc+free+gc
23 18 6 9.0 osh-native mut+alloc+free+gc+exit
30 29 1 12.5 _bin/cxx-opt+nopool/osh mut+alloc
26 23 3 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 15 5 10.6 osh-native-souffle mut+alloc
21 18 4 10.7 osh-native-souffle mut+alloc+free
21 14 7 8.7 osh-native-souffle mut+alloc+free+gc
21 11 10 8.5 osh-native-souffle mut+alloc+free+gc+exit