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 11 12.0 17.8 476,766 1,282 6 406,618 5 203,309 osh-native
parse.configure-cpython 33 4 10 12.0 17.6 476,766 1,282 6 406,608 5 203,304 osh-native-souffle
parse.configure-coreutils 166 26 79 44.5 49.7 1,653,354 4,764 12 1,025,540 6 764,313 osh-native
parse.configure-coreutils 163 26 84 44.5 49.3 1,653,353 4,764 12 1,025,530 6 764,308 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 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 2 2.2 8.1 579,721 22,608 12 50,000 0 2,926 osh-native
ex.compute-fib 22 0 2 2.2 7.5 579,721 22,608 12 50,000 0 2,921 osh-native-souffle
ex.bashcomp-parse-help 184 0 4 11.1 8.9 1,021,038 15,258 22 50,000 0 3,915 osh-native
ex.bashcomp-parse-help 179 0 4 11.1 8.4 1,021,037 15,258 22 50,000 0 3,915 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.2 116,356 277 3 85,262 1 42,631 osh-native
ex.abuild-print-help 22 1 2 2.8 8.5 116,356 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
6 6 0 1.4 dash -
23 21 2 3.0 bash -
101 59 49 3.4 zsh -
17 12 5 28.1 bumpleak/osh mut
20 16 4 29.5 _bin/cxx-opt+bumproot/osh mut
22 16 7 30.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 19 11 25.3 osh-native mut+alloc
32 20 12 25.6 osh-native mut+alloc+free
37 25 13 17.8 osh-native mut+alloc+free+gc
38 31 7 18.1 osh-native mut+alloc+free+gc+exit
43 30 13 32.5 _bin/cxx-opt+nopool/osh mut+alloc
52 38 14 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 15 12 24.8 osh-native-souffle mut+alloc
29 15 13 25.2 osh-native-souffle mut+alloc+free
33 28 5 17.6 osh-native-souffle mut+alloc+free+gc
34 29 5 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
34 34 0 1.6 dash -
78 76 2 3.0 bash -
364 198 187 3.5 zsh -
50 39 10 84.7 bumpleak/osh mut
62 54 8 85.5 _bin/cxx-opt+bumproot/osh mut
72 58 14 85.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 66 31 73.7 osh-native mut+alloc
105 69 36 75.4 osh-native mut+alloc+free
166 144 21 49.7 osh-native mut+alloc+free+gc
164 138 26 50.6 osh-native mut+alloc+free+gc+exit
140 104 36 99.0 _bin/cxx-opt+nopool/osh mut+alloc
230 205 25 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 55 33 73.1 osh-native-souffle mut+alloc
96 60 36 74.9 osh-native-souffle mut+alloc+free
163 133 30 49.3 osh-native-souffle mut+alloc+free+gc
159 140 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 1 1 1.3 dash -
5 5 0 3.0 bash -
7 4 4 3.3 zsh -
6 2 4 11.5 bumpleak/osh mut
7 5 2 11.4 _bin/cxx-opt+bumproot/osh mut
8 6 1 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 3 6 10.0 osh-native mut+alloc
9 4 4 10.0 osh-native mut+alloc+free
9 6 3 8.5 osh-native mut+alloc+free+gc
9 5 5 8.5 osh-native mut+alloc+free+gc+exit
12 4 8 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 10 2 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 6 2 9.6 osh-native-souffle mut+alloc
8 4 4 9.8 osh-native-souffle mut+alloc+free
8 5 3 8.3 osh-native-souffle mut+alloc+free+gc
9 6 3 8.1 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 -
28 28 0 3.0 bash -
23 17 6 3.3 zsh -
19 16 3 32.3 bumpleak/osh mut
26 23 3 32.1 _bin/cxx-opt+bumproot/osh mut
28 21 7 31.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 29 8 26.5 osh-native mut+alloc
38 26 12 26.6 osh-native mut+alloc+free
28 24 4 8.1 osh-native mut+alloc+free+gc
28 25 3 8.1 osh-native mut+alloc+free+gc+exit
55 39 16 35.8 _bin/cxx-opt+nopool/osh mut+alloc
38 36 2 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 18 12 26.0 osh-native-souffle mut+alloc
31 23 9 26.2 osh-native-souffle mut+alloc+free
22 19 3 7.5 osh-native-souffle mut+alloc+free+gc
22 21 1 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 69 5 3.1 bash -
169 108 61 56.4 bumpleak/osh mut
181 123 58 56.2 _bin/cxx-opt+bumproot/osh mut
195 136 59 58.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
219 145 73 48.8 osh-native mut+alloc
226 151 75 50.8 osh-native mut+alloc+free
184 148 36 8.9 osh-native mut+alloc+free+gc
185 145 40 8.8 osh-native mut+alloc+free+gc+exit
236 158 77 64.6 _bin/cxx-opt+nopool/osh mut+alloc
213 156 57 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
209 137 71 48.6 osh-native-souffle mut+alloc
218 147 71 50.4 osh-native-souffle mut+alloc+free
179 119 60 8.4 osh-native-souffle mut+alloc+free+gc
177 125 52 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 3 7 3.5 dash -
19 9 11 4.5 bash -
17 8 10 3.5 zsh -
20 7 13 12.3 bumpleak/osh mut
21 8 13 12.7 _bin/cxx-opt+bumproot/osh mut
20 8 13 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 10 11 11.1 osh-native mut+alloc
22 8 15 11.4 osh-native mut+alloc+free
22 13 10 9.2 osh-native mut+alloc+free+gc
23 12 12 9.0 osh-native mut+alloc+free+gc+exit
25 13 12 12.6 _bin/cxx-opt+nopool/osh mut+alloc
25 15 11 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 6 15 10.6 osh-native-souffle mut+alloc
22 12 10 10.7 osh-native-souffle mut+alloc+free
22 10 12 8.5 osh-native-souffle mut+alloc+free+gc
22 15 7 8.7 osh-native-souffle mut+alloc+free+gc+exit