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 10 12.0 18.0 476,766 1,282 6 406,618 5 203,309 osh-native
parse.configure-cpython 33 3 9 12.0 17.6 476,766 1,282 6 406,608 5 203,304 osh-native-souffle
parse.configure-coreutils 152 26 66 44.5 49.8 1,653,354 4,764 12 1,025,540 6 764,313 osh-native
parse.configure-coreutils 144 24 67 44.5 49.4 1,653,353 4,764 12 1,025,530 6 764,308 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 101,957 180 2 75,044 1 37,522 osh-native
parse.abuild 8 1 1 2.6 8.3 101,957 180 2 75,034 1 37,517 osh-native-souffle
ex.compute-fib 28 0 1 2.2 8.1 579,721 22,608 12 50,000 0 2,926 osh-native
ex.compute-fib 25 0 2 2.2 7.7 579,721 22,608 12 50,000 0 2,921 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 11.1 8.9 1,021,036 15,258 22 50,000 0 3,915 osh-native
ex.bashcomp-parse-help 175 0 4 11.1 8.4 1,021,035 15,258 22 50,000 0 3,915 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.2 116,340 277 3 85,262 1 42,631 osh-native
ex.abuild-print-help 22 1 2 2.8 8.5 116,340 277 3 85,252 1 42,626 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 7 0 1.4 dash -
23 23 0 2.9 bash -
101 54 54 3.4 zsh -
16 13 3 27.9 bumpleak/osh mut
20 19 1 29.3 _bin/cxx-opt+bumproot/osh mut
24 16 8 29.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 20 10 25.3 osh-native mut+alloc
34 18 16 25.7 osh-native mut+alloc+free
36 31 5 18.0 osh-native mut+alloc+free+gc
37 27 9 18.2 osh-native mut+alloc+free+gc+exit
42 30 12 32.5 _bin/cxx-opt+nopool/osh mut+alloc
50 43 7 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 14 13 24.9 osh-native-souffle mut+alloc
28 19 9 25.3 osh-native-souffle mut+alloc+free
33 28 5 17.6 osh-native-souffle mut+alloc+free+gc
34 23 11 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
21 20 1 1.6 dash -
78 77 1 3.3 bash -
368 202 187 3.5 zsh -
47 36 12 85.7 bumpleak/osh mut
61 53 7 84.9 _bin/cxx-opt+bumproot/osh mut
71 54 17 85.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 55 41 73.5 osh-native mut+alloc
109 86 23 75.5 osh-native mut+alloc+free
152 136 16 49.8 osh-native mut+alloc+free+gc
156 143 13 50.3 osh-native mut+alloc+free+gc+exit
138 91 46 99.0 _bin/cxx-opt+nopool/osh mut+alloc
224 197 27 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
90 61 28 73.1 osh-native-souffle mut+alloc
96 72 25 75.0 osh-native-souffle mut+alloc+free
144 120 24 49.4 osh-native-souffle mut+alloc+free+gc
152 132 19 50.1 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 5 1 3.0 bash -
7 5 2 3.3 zsh -
6 4 2 10.9 bumpleak/osh mut
6 5 2 12.6 _bin/cxx-opt+bumproot/osh mut
7 5 3 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 3 5 9.8 osh-native mut+alloc
9 6 3 10.1 osh-native mut+alloc+free
9 8 1 8.7 osh-native mut+alloc+free+gc
9 8 1 8.4 osh-native mut+alloc+free+gc+exit
12 6 6 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 10 3 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 2 6 9.6 osh-native-souffle mut+alloc
8 6 2 9.7 osh-native-souffle mut+alloc+free
8 8 0 8.3 osh-native-souffle mut+alloc+free+gc
8 7 1 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 9 1 1.4 dash -
29 28 1 2.8 bash -
23 16 7 3.3 zsh -
19 15 3 31.9 bumpleak/osh mut
26 24 2 32.0 _bin/cxx-opt+bumproot/osh mut
28 26 2 32.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 29 8 26.2 osh-native mut+alloc
38 28 10 26.6 osh-native mut+alloc+free
28 25 3 8.1 osh-native mut+alloc+free+gc
28 26 2 7.9 osh-native mut+alloc+free+gc+exit
53 38 15 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 34 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 21 9 26.0 osh-native-souffle mut+alloc
32 24 8 26.2 osh-native-souffle mut+alloc+free
25 23 1 7.7 osh-native-souffle mut+alloc+free+gc
22 19 3 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 68 6 3.1 bash -
166 112 54 56.3 bumpleak/osh mut
181 118 63 56.6 _bin/cxx-opt+bumproot/osh mut
196 129 67 58.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 149 66 48.8 osh-native mut+alloc
220 154 66 50.8 osh-native mut+alloc+free
182 128 54 8.9 osh-native mut+alloc+free+gc
184 136 47 8.8 osh-native mut+alloc+free+gc+exit
236 145 91 64.7 _bin/cxx-opt+nopool/osh mut+alloc
211 159 52 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 133 72 48.3 osh-native-souffle mut+alloc
212 134 78 50.3 osh-native-souffle mut+alloc+free
175 128 47 8.4 osh-native-souffle mut+alloc+free+gc
173 125 48 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
9 5 5 3.4 dash -
19 11 9 4.3 bash -
17 6 12 3.5 zsh -
18 5 13 13.2 bumpleak/osh mut
21 9 12 13.1 _bin/cxx-opt+bumproot/osh mut
19 9 11 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 11 11.1 osh-native mut+alloc
23 13 10 11.0 osh-native mut+alloc+free
22 12 10 9.2 osh-native mut+alloc+free+gc
23 13 11 9.2 osh-native mut+alloc+free+gc+exit
24 12 13 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 16 9 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 12 8 10.7 osh-native-souffle mut+alloc
22 9 13 10.7 osh-native-souffle mut+alloc+free
22 14 8 8.5 osh-native-souffle mut+alloc+free+gc
22 8 14 8.8 osh-native-souffle mut+alloc+free+gc+exit