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 37 4 10 12.1 18.1 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 166 25 79 41.1 45.9 1,653,330 4,764 12 1,591,976 7 795,988 osh-native
parse.configure-coreutils 140 25 63 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 29 0 1 2.4 8.0 584,198 22,608 12 50,000 0 2,910 osh-native
ex.compute-fib 22 0 2 2.4 7.5 584,198 22,608 12 50,000 0 2,848 osh-native-souffle
ex.bashcomp-parse-help 187 0 4 10.3 8.8 995,279 12,911 21 50,000 0 3,898 osh-native
ex.bashcomp-parse-help 176 0 4 10.3 8.4 995,278 12,911 21 50,000 0 3,838 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,348 270 3 85,502 1 42,751 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,348 270 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 6 0 1.6 dash -
24 24 0 2.9 bash -
105 68 44 3.5 zsh -
16 16 0 29.4 bumpleak/osh mut
19 15 4 29.7 _bin/cxx-opt+bumproot/osh mut
23 19 4 30.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 21 8 25.2 osh-native mut+alloc
32 12 20 25.6 osh-native mut+alloc+free
37 36 0 18.1 osh-native mut+alloc+free+gc
36 32 4 18.2 osh-native mut+alloc+free+gc+exit
43 34 9 33.5 _bin/cxx-opt+nopool/osh mut+alloc
48 40 8 22.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 15 11 24.9 osh-native-souffle mut+alloc
29 25 4 25.3 osh-native-souffle mut+alloc+free
34 33 0 17.7 osh-native-souffle mut+alloc+free+gc
34 34 0 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 21 0 1.4 dash -
77 73 4 3.1 bash -
379 211 189 3.4 zsh -
48 48 0 86.0 bumpleak/osh mut
59 38 21 85.3 _bin/cxx-opt+bumproot/osh mut
72 68 4 86.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 67 31 73.6 osh-native mut+alloc
107 74 33 75.3 osh-native mut+alloc+free
166 154 12 45.9 osh-native mut+alloc+free+gc
166 142 24 46.0 osh-native mut+alloc+free+gc+exit
139 75 63 98.2 _bin/cxx-opt+nopool/osh mut+alloc
232 212 20 60.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 60 28 73.0 osh-native-souffle mut+alloc
96 68 28 75.0 osh-native-souffle mut+alloc+free
140 116 24 49.7 osh-native-souffle mut+alloc+free+gc
148 120 28 50.2 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 8 0 3.3 zsh -
6 3 3 11.0 bumpleak/osh mut
7 4 4 11.8 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.0 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 6 3 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 4 8 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 0 8 9.6 osh-native-souffle mut+alloc+free
8 8 0 8.1 osh-native-souffle mut+alloc+free+gc
9 3 6 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.6 dash -
29 24 4 2.9 bash -
24 16 8 3.3 zsh -
19 18 0 31.2 bumpleak/osh mut
25 18 7 31.9 _bin/cxx-opt+bumproot/osh mut
29 24 4 33.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
38 29 8 26.3 osh-native mut+alloc
39 38 0 26.5 osh-native mut+alloc+free
29 25 4 8.0 osh-native mut+alloc+free+gc
28 28 0 7.9 osh-native mut+alloc+free+gc+exit
54 35 19 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 17 13 26.0 osh-native-souffle mut+alloc
32 28 4 26.2 osh-native-souffle mut+alloc+free
22 14 7 7.5 osh-native-souffle mut+alloc+free+gc
22 18 4 7.3 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
72 68 4 3.1 bash -
168 115 52 55.8 bumpleak/osh mut
180 112 68 55.7 _bin/cxx-opt+bumproot/osh mut
194 130 63 57.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 137 76 47.1 osh-native mut+alloc
221 148 72 48.8 osh-native mut+alloc+free
187 131 56 8.8 osh-native mut+alloc+free+gc
185 116 68 8.8 osh-native mut+alloc+free+gc+exit
237 160 76 62.6 _bin/cxx-opt+nopool/osh mut+alloc
231 190 40 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 129 76 46.6 osh-native-souffle mut+alloc
214 154 59 48.3 osh-native-souffle mut+alloc+free
176 136 40 8.4 osh-native-souffle mut+alloc+free+gc
175 111 64 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 10 1 3.5 dash -
20 11 9 4.3 bash -
18 13 5 3.4 zsh -
19 14 5 12.0 bumpleak/osh mut
23 12 11 11.9 _bin/cxx-opt+bumproot/osh mut
23 15 8 14.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 8 14 11.0 osh-native mut+alloc
22 13 10 11.1 osh-native mut+alloc+free
22 16 7 9.0 osh-native mut+alloc+free+gc
23 12 11 9.0 osh-native mut+alloc+free+gc+exit
24 22 3 12.8 _bin/cxx-opt+nopool/osh mut+alloc
26 18 8 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 13 7 10.5 osh-native-souffle mut+alloc
21 14 8 10.7 osh-native-souffle mut+alloc+free
21 13 8 8.7 osh-native-souffle mut+alloc+free+gc
21 11 10 8.7 osh-native-souffle mut+alloc+free+gc+exit