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 3 9 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.6 476,735 1,282 6 408,780 5 204,390 osh-native-souffle
parse.configure-coreutils 170 24 84 41.1 45.9 1,653,323 4,764 12 1,591,962 7 795,981 osh-native
parse.configure-coreutils 144 25 67 44.6 49.5 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.1 101,926 180 2 75,122 1 37,561 osh-native-souffle
ex.compute-fib 28 0 1 2.4 8.0 584,191 22,608 12 50,000 0 2,903 osh-native
ex.compute-fib 22 0 1 2.4 7.7 584,191 22,608 12 50,000 0 2,841 osh-native-souffle
ex.bashcomp-parse-help 184 0 3 10.3 8.8 995,272 12,911 21 50,000 0 3,891 osh-native
ex.bashcomp-parse-help 174 0 3 10.3 8.4 995,271 12,911 21 50,000 0 3,831 osh-native-souffle
ex.abuild-print-help 23 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 23 0 3.0 bash -
105 68 43 3.3 zsh -
17 12 4 28.4 bumpleak/osh mut
20 16 4 29.0 _bin/cxx-opt+bumproot/osh mut
22 15 7 29.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 25 4 25.2 osh-native mut+alloc
32 20 12 25.6 osh-native mut+alloc+free
36 28 8 18.0 osh-native mut+alloc+free+gc
36 28 8 18.2 osh-native mut+alloc+free+gc+exit
46 38 8 32.0 _bin/cxx-opt+nopool/osh mut+alloc
48 36 12 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 22 5 24.8 osh-native-souffle mut+alloc
29 21 8 25.2 osh-native-souffle mut+alloc+free
32 24 8 17.6 osh-native-souffle mut+alloc+free+gc
33 24 8 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 22 0 1.6 dash -
77 77 0 3.0 bash -
378 226 173 3.3 zsh -
49 37 12 84.9 bumpleak/osh mut
60 48 12 86.1 _bin/cxx-opt+bumproot/osh mut
70 58 12 86.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 68 28 73.6 osh-native mut+alloc
105 89 16 75.3 osh-native mut+alloc+free
170 146 24 45.9 osh-native mut+alloc+free+gc
170 150 20 45.9 osh-native mut+alloc+free+gc+exit
139 95 44 97.6 _bin/cxx-opt+nopool/osh mut+alloc
237 205 32 61.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 52 36 73.0 osh-native-souffle mut+alloc
98 61 37 75.0 osh-native-souffle mut+alloc+free
144 125 20 49.5 osh-native-souffle mut+alloc+free+gc
163 139 24 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 0 2 1.4 dash -
6 6 0 2.9 bash -
8 4 4 3.3 zsh -
6 3 3 10.4 bumpleak/osh mut
7 7 0 11.9 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.0 osh-native mut+alloc
9 9 0 10.2 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
9 9 0 8.8 osh-native mut+alloc+free+gc+exit
12 6 6 11.6 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 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.8 osh-native-souffle mut+alloc+free
8 4 4 8.1 osh-native-souffle mut+alloc+free+gc
8 4 4 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.4 dash -
28 28 0 3.0 bash -
24 24 0 3.3 zsh -
18 13 4 30.8 bumpleak/osh mut
26 17 9 32.6 _bin/cxx-opt+bumproot/osh mut
28 28 0 33.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 32 4 26.3 osh-native mut+alloc
40 24 16 26.6 osh-native mut+alloc+free
28 28 0 8.0 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
54 31 23 36.0 _bin/cxx-opt+nopool/osh mut+alloc
38 38 0 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 18 13 26.1 osh-native-souffle mut+alloc
32 20 12 26.5 osh-native-souffle mut+alloc+free
22 18 4 7.7 osh-native-souffle mut+alloc+free+gc
22 18 4 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 73 0 3.0 bash -
169 117 52 55.8 bumpleak/osh mut
180 128 52 55.5 _bin/cxx-opt+bumproot/osh mut
196 128 68 56.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 153 60 47.1 osh-native mut+alloc
219 167 52 48.7 osh-native mut+alloc+free
184 128 56 8.8 osh-native mut+alloc+free+gc
181 136 44 8.8 osh-native mut+alloc+free+gc+exit
232 152 80 63.2 _bin/cxx-opt+nopool/osh mut+alloc
211 186 24 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 109 97 46.6 osh-native-souffle mut+alloc
213 137 76 48.2 osh-native-souffle mut+alloc+free
174 109 65 8.4 osh-native-souffle mut+alloc+free+gc
176 124 52 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.5 dash -
20 10 10 4.5 bash -
18 14 5 3.5 zsh -
18 17 1 11.5 bumpleak/osh mut
20 15 5 12.2 _bin/cxx-opt+bumproot/osh mut
20 11 9 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 19 2 11.0 osh-native mut+alloc
22 6 16 11.3 osh-native mut+alloc+free
23 15 8 9.0 osh-native mut+alloc+free+gc
23 16 7 9.2 osh-native mut+alloc+free+gc+exit
25 20 6 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 16 10 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 11 10 10.5 osh-native-souffle mut+alloc
22 13 9 10.7 osh-native-souffle mut+alloc+free
21 15 6 8.7 osh-native-souffle mut+alloc+free+gc
22 15 7 8.5 osh-native-souffle mut+alloc+free+gc+exit