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 34 4 10 12.0 17.7 476,742 1,282 6 408,794 5 204,397 osh-native-souffle
parse.configure-coreutils 164 24 79 41.1 45.8 1,653,330 4,764 12 1,591,976 7 795,988 osh-native
parse.configure-coreutils 160 28 82 44.6 49.6 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 9 1 2 2.6 8.1 101,933 180 2 75,136 1 37,568 osh-native-souffle
ex.compute-fib 28 0 1 2.1 7.9 579,597 22,608 12 50,000 0 2,910 osh-native
ex.compute-fib 22 0 2 2.1 7.6 579,597 22,608 12 50,000 0 2,848 osh-native-souffle
ex.bashcomp-parse-help 181 0 4 10.3 8.9 995,279 15,258 21 50,000 0 3,893 osh-native
ex.bashcomp-parse-help 174 0 4 10.3 8.3 995,278 15,258 21 50,000 0 3,838 osh-native-souffle
ex.abuild-print-help 23 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
7 3 3 1.6 dash -
24 23 0 3.1 bash -
104 59 51 3.3 zsh -
16 12 4 29.0 bumpleak/osh mut
20 12 8 28.6 _bin/cxx-opt+bumproot/osh mut
23 19 4 29.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 26 4 25.0 osh-native mut+alloc
32 18 14 25.6 osh-native mut+alloc+free
35 23 12 18.0 osh-native mut+alloc+free+gc
36 20 16 18.1 osh-native mut+alloc+free+gc+exit
43 39 4 32.2 _bin/cxx-opt+nopool/osh mut+alloc
51 47 4 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 19 8 24.8 osh-native-souffle mut+alloc
29 16 12 25.2 osh-native-souffle mut+alloc+free
34 25 8 17.7 osh-native-souffle mut+alloc+free+gc
36 23 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 -
78 78 0 3.3 bash -
378 238 161 3.7 zsh -
48 44 4 84.3 bumpleak/osh mut
59 51 8 85.1 _bin/cxx-opt+bumproot/osh mut
70 62 8 85.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 57 41 73.4 osh-native mut+alloc
108 88 20 75.1 osh-native mut+alloc+free
164 136 28 45.8 osh-native mut+alloc+free+gc
174 153 20 46.1 osh-native mut+alloc+free+gc+exit
139 90 49 97.7 _bin/cxx-opt+nopool/osh mut+alloc
247 207 40 61.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 60 28 73.2 osh-native-souffle mut+alloc
99 63 36 74.9 osh-native-souffle mut+alloc+free
160 136 24 49.6 osh-native-souffle mut+alloc+free+gc
159 119 40 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 3.0 bash -
8 0 7 3.4 zsh -
6 0 6 11.2 bumpleak/osh mut
7 4 4 11.7 _bin/cxx-opt+bumproot/osh mut
8 7 0 11.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 8 0 10.1 osh-native mut+alloc
9 9 0 10.1 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
10 9 0 8.5 osh-native mut+alloc+free+gc+exit
12 12 0 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.8 osh-native-souffle mut+alloc
8 0 8 9.7 osh-native-souffle mut+alloc+free
9 9 0 8.1 osh-native-souffle mut+alloc+free+gc
9 9 0 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
11 11 0 1.4 dash -
29 28 0 2.9 bash -
24 19 5 3.3 zsh -
19 11 7 31.9 bumpleak/osh mut
26 26 0 32.9 _bin/cxx-opt+bumproot/osh mut
28 28 0 32.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 32 4 25.7 osh-native mut+alloc
37 25 12 26.2 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
54 46 8 35.6 _bin/cxx-opt+nopool/osh mut+alloc
38 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 15 15 25.7 osh-native-souffle mut+alloc
31 23 8 25.8 osh-native-souffle mut+alloc+free
22 21 0 7.6 osh-native-souffle mut+alloc+free+gc
22 19 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
74 70 4 3.1 bash -
168 116 52 54.8 bumpleak/osh mut
181 146 35 56.1 _bin/cxx-opt+bumproot/osh mut
199 127 71 57.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 123 88 47.0 osh-native mut+alloc
219 131 88 48.7 osh-native mut+alloc+free
181 118 63 8.9 osh-native mut+alloc+free+gc
182 115 67 8.7 osh-native mut+alloc+free+gc+exit
235 167 67 64.3 _bin/cxx-opt+nopool/osh mut+alloc
211 154 57 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 140 64 46.6 osh-native-souffle mut+alloc
213 136 76 48.3 osh-native-souffle mut+alloc+free
174 103 71 8.3 osh-native-souffle mut+alloc+free+gc
175 102 73 8.3 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 19 1 4.3 bash -
18 10 8 3.5 zsh -
19 11 9 12.4 bumpleak/osh mut
21 10 11 13.3 _bin/cxx-opt+bumproot/osh mut
22 19 4 13.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 15 7 10.9 osh-native mut+alloc
23 15 8 11.3 osh-native mut+alloc+free
23 12 11 9.0 osh-native mut+alloc+free+gc
23 22 2 9.2 osh-native mut+alloc+free+gc+exit
25 16 9 12.8 _bin/cxx-opt+nopool/osh mut+alloc
26 21 6 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 13 9 10.5 osh-native-souffle mut+alloc
22 14 9 10.7 osh-native-souffle mut+alloc+free
21 16 6 8.7 osh-native-souffle mut+alloc+free+gc
22 11 12 8.7 osh-native-souffle mut+alloc+free+gc+exit