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 9 12.1 18.0 476,742 1,282 6 409,294 5 204,647 osh-native
parse.configure-cpython 32 3 10 12.0 17.7 476,742 1,282 6 408,794 5 204,397 osh-native-souffle
parse.configure-coreutils 149 19 64 41.1 45.8 1,653,330 4,764 12 1,591,976 7 795,988 osh-native
parse.configure-coreutils 138 23 62 44.6 49.7 1,653,329 4,764 12 1,030,678 6 769,423 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,933 180 2 75,266 1 37,633 osh-native
parse.abuild 8 1 1 2.6 8.1 101,933 180 2 75,136 1 37,568 osh-native-souffle
ex.compute-fib 27 0 1 2.1 7.9 579,597 22,608 12 50,000 0 2,910 osh-native
ex.compute-fib 22 0 1 2.1 7.5 579,597 22,608 12 50,000 0 2,848 osh-native-souffle
ex.bashcomp-parse-help 182 0 3 10.3 8.9 995,279 15,258 21 50,000 0 3,893 osh-native
ex.bashcomp-parse-help 173 0 4 10.3 8.3 995,278 15,258 21 50,000 0 3,838 osh-native-souffle
ex.abuild-print-help 21 1 2 2.8 9.0 116,309 277 3 85,502 1 42,751 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,309 277 3 85,378 1 42,689 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 0 6 1.6 dash -
24 20 4 3.0 bash -
103 61 49 3.4 zsh -
17 17 0 29.3 bumpleak/osh mut
19 19 0 29.9 _bin/cxx-opt+bumproot/osh mut
22 7 15 28.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 17 12 25.0 osh-native mut+alloc
31 26 4 25.6 osh-native mut+alloc+free
35 31 4 18.0 osh-native mut+alloc+free+gc
35 27 8 18.1 osh-native mut+alloc+free+gc+exit
44 28 16 32.3 _bin/cxx-opt+nopool/osh mut+alloc
47 43 4 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 17 9 24.9 osh-native-souffle mut+alloc
28 20 8 25.3 osh-native-souffle mut+alloc+free
32 28 4 17.7 osh-native-souffle mut+alloc+free+gc
33 21 12 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.1 bash -
377 239 158 3.5 zsh -
50 45 4 84.8 bumpleak/osh mut
60 48 12 86.0 _bin/cxx-opt+bumproot/osh mut
70 53 16 85.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 66 31 73.4 osh-native mut+alloc
108 80 28 75.4 osh-native mut+alloc+free
149 129 20 45.8 osh-native mut+alloc+free+gc
153 124 28 46.1 osh-native mut+alloc+free+gc+exit
138 90 47 98.4 _bin/cxx-opt+nopool/osh mut+alloc
213 169 43 61.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 43 43 73.2 osh-native-souffle mut+alloc
97 73 23 74.9 osh-native-souffle mut+alloc+free
138 114 24 49.7 osh-native-souffle mut+alloc+free+gc
143 123 20 50.4 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 3 3 3.0 bash -
8 0 7 3.4 zsh -
6 0 6 11.0 bumpleak/osh mut
6 3 3 10.7 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.0 osh-native mut+alloc
8 8 0 10.1 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 4 4 8.5 osh-native mut+alloc+free+gc+exit
11 8 4 11.5 _bin/cxx-opt+nopool/osh mut+alloc
11 4 7 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 4 4 9.7 osh-native-souffle mut+alloc
8 0 8 9.8 osh-native-souffle mut+alloc+free
8 4 4 8.1 osh-native-souffle mut+alloc+free+gc
8 3 5 8.3 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 8 16 3.3 zsh -
18 14 5 31.7 bumpleak/osh mut
26 26 0 33.0 _bin/cxx-opt+bumproot/osh mut
28 24 4 33.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 31 4 25.8 osh-native mut+alloc
36 32 4 26.2 osh-native mut+alloc+free
27 27 0 7.9 osh-native mut+alloc+free+gc
27 23 4 8.0 osh-native mut+alloc+free+gc+exit
54 37 16 35.6 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 25 4 25.6 osh-native-souffle mut+alloc
30 26 4 25.7 osh-native-souffle mut+alloc+free
22 17 4 7.5 osh-native-souffle mut+alloc+free+gc
22 22 0 7.7 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 64 8 3.1 bash -
171 101 69 54.6 bumpleak/osh mut
183 115 67 54.9 _bin/cxx-opt+bumproot/osh mut
193 134 59 55.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 162 49 47.0 osh-native mut+alloc
217 141 76 48.8 osh-native mut+alloc+free
182 126 55 8.9 osh-native mut+alloc+free+gc
181 145 36 8.8 osh-native mut+alloc+free+gc+exit
234 163 71 62.8 _bin/cxx-opt+nopool/osh mut+alloc
211 150 61 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 143 60 46.6 osh-native-souffle mut+alloc
212 144 68 48.4 osh-native-souffle mut+alloc+free
173 137 36 8.3 osh-native-souffle mut+alloc+free+gc
174 114 59 8.5 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 5 5 3.5 dash -
19 14 6 4.5 bash -
18 7 11 3.5 zsh -
19 19 1 12.7 bumpleak/osh mut
21 17 3 12.7 _bin/cxx-opt+bumproot/osh mut
22 10 12 13.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 19 3 11.0 osh-native mut+alloc
22 10 12 11.1 osh-native mut+alloc+free
21 19 3 9.0 osh-native mut+alloc+free+gc
22 10 12 9.0 osh-native mut+alloc+free+gc+exit
24 21 4 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 10 15 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 10 10 10.5 osh-native-souffle mut+alloc
21 6 15 10.6 osh-native-souffle mut+alloc+free
21 19 2 8.7 osh-native-souffle mut+alloc+free+gc
21 16 5 8.7 osh-native-souffle mut+alloc+free+gc+exit