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.0 18.1 476,766 1,282 6 406,618 5 203,309 osh-native
parse.configure-cpython 32 3 9 12.0 17.7 476,766 1,282 6 406,608 5 203,304 osh-native-souffle
parse.configure-coreutils 152 23 65 44.5 49.8 1,653,354 4,764 12 1,025,540 6 764,313 osh-native
parse.configure-coreutils 142 23 65 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.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 1 2.2 8.0 579,721 22,608 12 50,000 0 2,926 osh-native
ex.compute-fib 22 0 1 2.2 7.6 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,038 15,258 22 50,000 0 3,915 osh-native
ex.bashcomp-parse-help 188 0 4 11.1 8.5 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 21 1 2 2.8 8.4 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 5 1 1.6 dash -
23 22 1 3.1 bash -
101 53 54 3.4 zsh -
16 12 5 29.4 bumpleak/osh mut
20 16 4 28.4 _bin/cxx-opt+bumproot/osh mut
23 15 8 29.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 12 17 25.2 osh-native mut+alloc
31 22 9 25.7 osh-native mut+alloc+free
35 27 8 18.1 osh-native mut+alloc+free+gc
36 27 9 17.8 osh-native mut+alloc+free+gc+exit
42 21 22 32.4 _bin/cxx-opt+nopool/osh mut+alloc
47 38 9 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 14 13 24.9 osh-native-souffle mut+alloc
28 17 12 25.3 osh-native-souffle mut+alloc+free
32 26 6 17.7 osh-native-souffle mut+alloc+free+gc
33 29 4 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 -
77 74 3 3.1 bash -
362 196 186 3.5 zsh -
49 37 11 85.3 bumpleak/osh mut
61 50 11 85.3 _bin/cxx-opt+bumproot/osh mut
71 59 12 85.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 60 37 73.4 osh-native mut+alloc
106 70 36 75.2 osh-native mut+alloc+free
152 131 21 49.8 osh-native mut+alloc+free+gc
154 134 20 50.5 osh-native mut+alloc+free+gc+exit
142 99 42 98.9 _bin/cxx-opt+nopool/osh mut+alloc
205 174 31 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 58 30 73.1 osh-native-souffle mut+alloc
96 57 39 75.0 osh-native-souffle mut+alloc+free
142 123 19 49.4 osh-native-souffle mut+alloc+free+gc
142 125 17 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 4 2 2.9 bash -
7 3 4 3.3 zsh -
6 2 4 11.6 bumpleak/osh mut
7 3 4 11.3 _bin/cxx-opt+bumproot/osh mut
7 4 3 10.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 3 6 10.0 osh-native mut+alloc
9 4 5 10.2 osh-native mut+alloc+free
9 7 2 8.5 osh-native mut+alloc+free+gc
9 7 2 8.7 osh-native mut+alloc+free+gc+exit
12 6 6 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 6 5 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.6 osh-native-souffle mut+alloc
8 7 1 9.7 osh-native-souffle mut+alloc+free
8 5 3 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 -
28 28 0 2.9 bash -
23 18 5 3.3 zsh -
18 15 3 31.8 bumpleak/osh mut
27 15 12 33.4 _bin/cxx-opt+bumproot/osh mut
28 22 6 32.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 28 9 26.3 osh-native mut+alloc
37 29 8 26.6 osh-native mut+alloc+free
28 26 2 8.0 osh-native mut+alloc+free+gc
28 25 3 8.0 osh-native mut+alloc+free+gc+exit
54 40 14 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 33 5 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 16 14 25.8 osh-native-souffle mut+alloc
31 22 9 26.3 osh-native-souffle mut+alloc+free
22 21 1 7.6 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
73 69 4 3.1 bash -
167 124 43 57.4 bumpleak/osh mut
181 134 47 57.6 _bin/cxx-opt+bumproot/osh mut
196 123 72 58.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 147 66 49.0 osh-native mut+alloc
219 145 74 50.8 osh-native mut+alloc+free
182 132 50 8.9 osh-native mut+alloc+free+gc
183 126 57 8.8 osh-native mut+alloc+free+gc+exit
233 164 69 64.7 _bin/cxx-opt+nopool/osh mut+alloc
210 163 46 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 126 78 48.4 osh-native-souffle mut+alloc
215 142 73 50.4 osh-native-souffle mut+alloc+free
188 140 48 8.5 osh-native-souffle mut+alloc+free+gc
174 127 46 8.5 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 4 6 3.4 dash -
19 11 8 4.3 bash -
17 6 12 3.5 zsh -
18 9 9 11.4 bumpleak/osh mut
19 12 8 11.8 _bin/cxx-opt+bumproot/osh mut
20 9 11 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 8 13 11.3 osh-native mut+alloc
22 11 11 11.1 osh-native mut+alloc+free
22 9 14 9.2 osh-native mut+alloc+free+gc
22 10 13 9.2 osh-native mut+alloc+free+gc+exit
24 12 12 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 14 11 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 10 10 10.6 osh-native-souffle mut+alloc
21 8 13 10.7 osh-native-souffle mut+alloc+free
21 9 12 8.4 osh-native-souffle mut+alloc+free+gc
22 12 11 8.8 osh-native-souffle mut+alloc+free+gc+exit