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 38 5 12 12.1 18.0 476,742 1,282 6 409,294 5 204,647 osh-native
parse.configure-cpython 36 5 12 12.0 17.4 476,742 1,282 6 408,794 5 204,397 osh-native-souffle
parse.configure-coreutils 183 26 96 41.1 45.9 1,653,330 4,764 12 1,591,976 7 795,988 osh-native
parse.configure-coreutils 149 26 72 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.7 101,933 180 2 75,266 1 37,633 osh-native
parse.abuild 9 1 1 2.6 8.3 101,933 180 2 75,136 1 37,568 osh-native-souffle
ex.compute-fib 30 0 2 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.6 584,198 22,608 12 50,000 0 2,848 osh-native-souffle
ex.bashcomp-parse-help 185 0 4 10.3 8.8 995,279 12,911 21 50,000 0 3,898 osh-native
ex.bashcomp-parse-help 177 0 4 10.3 8.4 995,278 12,911 21 50,000 0 3,838 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.0 116,348 270 3 85,502 1 42,751 osh-native
ex.abuild-print-help 22 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 20 4 3.1 bash -
105 72 40 3.4 zsh -
16 8 8 28.8 bumpleak/osh mut
20 16 4 29.7 _bin/cxx-opt+bumproot/osh mut
22 15 7 29.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 26 4 25.0 osh-native mut+alloc
32 20 12 25.4 osh-native mut+alloc+free
38 23 15 18.0 osh-native mut+alloc+free+gc
41 41 0 18.1 osh-native mut+alloc+free+gc+exit
43 30 13 32.0 _bin/cxx-opt+nopool/osh mut+alloc
53 41 12 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 8 19 24.9 osh-native-souffle mut+alloc
29 8 21 25.3 osh-native-souffle mut+alloc+free
36 20 16 17.4 osh-native-souffle mut+alloc+free+gc
36 18 18 17.8 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
21 21 0 1.4 dash -
81 81 0 3.3 bash -
381 225 176 3.5 zsh -
49 33 16 83.7 bumpleak/osh mut
61 57 4 85.3 _bin/cxx-opt+bumproot/osh mut
70 70 0 85.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 64 32 73.3 osh-native mut+alloc
105 73 32 75.3 osh-native mut+alloc+free
183 167 16 45.9 osh-native mut+alloc+free+gc
175 147 28 46.0 osh-native mut+alloc+free+gc+exit
139 99 40 98.2 _bin/cxx-opt+nopool/osh mut+alloc
246 230 16 61.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 52 36 73.0 osh-native-souffle mut+alloc
97 48 48 74.9 osh-native-souffle mut+alloc+free
149 112 36 49.7 osh-native-souffle mut+alloc+free+gc
155 126 28 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.3 dash -
6 6 0 2.9 bash -
8 4 4 3.3 zsh -
6 6 0 12.3 bumpleak/osh mut
7 7 0 11.6 _bin/cxx-opt+bumproot/osh mut
7 7 0 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.1 osh-native mut+alloc
9 4 4 10.0 osh-native mut+alloc+free
9 9 0 8.7 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
12 0 12 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.7 osh-native-souffle mut+alloc
8 4 4 9.8 osh-native-souffle mut+alloc+free
9 3 6 8.3 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
10 10 0 1.4 dash -
29 24 4 3.0 bash -
24 20 4 3.1 zsh -
19 19 0 32.5 bumpleak/osh mut
26 25 0 32.0 _bin/cxx-opt+bumproot/osh mut
28 24 4 33.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 28 8 26.3 osh-native mut+alloc
39 23 15 26.7 osh-native mut+alloc+free
30 26 4 8.0 osh-native mut+alloc+free+gc
28 28 0 8.0 osh-native mut+alloc+free+gc+exit
55 43 12 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 19 11 26.0 osh-native-souffle mut+alloc
33 16 16 26.3 osh-native-souffle mut+alloc+free
22 18 4 7.6 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
74 66 8 3.0 bash -
169 94 74 54.0 bumpleak/osh mut
180 128 52 54.9 _bin/cxx-opt+bumproot/osh mut
197 114 82 57.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 129 85 47.1 osh-native mut+alloc
220 152 68 48.6 osh-native mut+alloc+free
185 132 52 8.8 osh-native mut+alloc+free+gc
184 131 52 8.8 osh-native mut+alloc+free+gc+exit
235 138 97 64.1 _bin/cxx-opt+nopool/osh mut+alloc
220 156 64 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 112 92 46.7 osh-native-souffle mut+alloc
210 147 63 48.4 osh-native-souffle mut+alloc+free
177 129 48 8.4 osh-native-souffle mut+alloc+free+gc
177 133 44 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 5 6 3.5 dash -
21 15 6 4.5 bash -
18 11 7 3.4 zsh -
19 10 9 12.4 bumpleak/osh mut
20 15 5 12.0 _bin/cxx-opt+bumproot/osh mut
22 18 5 13.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 11 11.0 osh-native mut+alloc
22 14 9 11.1 osh-native mut+alloc+free
23 16 7 9.0 osh-native mut+alloc+free+gc
23 10 14 8.9 osh-native mut+alloc+free+gc+exit
24 17 8 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 19 7 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 6 15 10.5 osh-native-souffle mut+alloc
22 15 7 10.7 osh-native-souffle mut+alloc+free
22 15 7 8.7 osh-native-souffle mut+alloc+free+gc
22 18 5 8.7 osh-native-souffle mut+alloc+free+gc+exit