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.0 18.2 476,766 1,282 6 406,618 5 203,309 osh-native
parse.configure-cpython 32 3 9 12.0 17.4 476,766 1,282 6 406,608 5 203,304 osh-native-souffle
parse.configure-coreutils 180 32 90 44.5 50.0 1,653,354 4,764 12 1,025,540 6 764,313 osh-native
parse.configure-coreutils 143 24 67 44.5 49.4 1,653,353 4,764 12 1,025,530 6 764,308 osh-native-souffle
parse.abuild 10 1 2 2.6 8.7 101,957 180 2 75,044 1 37,522 osh-native
parse.abuild 8 1 1 2.6 8.1 101,957 180 2 75,034 1 37,517 osh-native-souffle
ex.compute-fib 28 0 2 2.2 7.9 579,721 22,608 12 50,000 0 2,926 osh-native
ex.compute-fib 21 0 1 2.2 7.7 579,721 22,608 12 50,000 0 2,921 osh-native-souffle
ex.bashcomp-parse-help 184 0 5 11.1 8.9 1,021,038 15,258 22 50,000 0 3,915 osh-native
ex.bashcomp-parse-help 177 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.0 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 23 0 2.8 bash -
101 58 49 3.4 zsh -
16 13 3 28.8 bumpleak/osh mut
20 16 4 28.8 _bin/cxx-opt+bumproot/osh mut
22 19 3 30.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 22 7 25.3 osh-native mut+alloc
31 21 10 25.7 osh-native mut+alloc+free
38 30 9 18.2 osh-native mut+alloc+free+gc
37 26 11 18.0 osh-native mut+alloc+free+gc+exit
42 31 11 32.5 _bin/cxx-opt+nopool/osh mut+alloc
53 43 10 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 14 16 24.9 osh-native-souffle mut+alloc
28 15 13 25.3 osh-native-souffle mut+alloc+free
32 29 3 17.4 osh-native-souffle mut+alloc+free+gc
39 27 12 17.6 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.6 dash -
77 77 0 3.1 bash -
366 188 200 3.5 zsh -
49 44 5 84.7 bumpleak/osh mut
61 52 9 85.0 _bin/cxx-opt+bumproot/osh mut
71 56 15 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 68 30 73.5 osh-native mut+alloc
107 74 33 75.2 osh-native mut+alloc+free
180 161 19 50.0 osh-native mut+alloc+free+gc
158 141 17 50.5 osh-native mut+alloc+free+gc+exit
138 103 35 99.0 _bin/cxx-opt+nopool/osh mut+alloc
217 188 29 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 58 30 73.1 osh-native-souffle mut+alloc
95 73 22 75.0 osh-native-souffle mut+alloc+free
143 125 18 49.4 osh-native-souffle mut+alloc+free+gc
143 123 20 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 -
5 4 1 2.9 bash -
7 2 5 3.3 zsh -
7 3 4 10.9 bumpleak/osh mut
7 5 2 11.2 _bin/cxx-opt+bumproot/osh mut
7 5 2 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 5 4 10.1 osh-native mut+alloc
9 4 5 10.0 osh-native mut+alloc+free
10 6 4 8.7 osh-native mut+alloc+free+gc
10 7 2 8.4 osh-native mut+alloc+free+gc+exit
12 9 3 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 10 2 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 7 1 9.6 osh-native-souffle mut+alloc
8 6 2 9.7 osh-native-souffle mut+alloc+free
8 7 1 8.1 osh-native-souffle mut+alloc+free+gc
8 6 2 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 27 1 3.0 bash -
23 16 7 3.4 zsh -
18 13 6 31.9 bumpleak/osh mut
27 20 7 33.2 _bin/cxx-opt+bumproot/osh mut
28 25 3 32.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 25 12 26.3 osh-native mut+alloc
37 28 9 26.6 osh-native mut+alloc+free
28 25 3 7.9 osh-native mut+alloc+free+gc
28 25 3 8.0 osh-native mut+alloc+free+gc+exit
54 43 11 36.1 _bin/cxx-opt+nopool/osh mut+alloc
38 35 3 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 21 9 26.1 osh-native-souffle mut+alloc
31 21 10 26.2 osh-native-souffle mut+alloc+free
21 18 3 7.7 osh-native-souffle mut+alloc+free+gc
21 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
73 70 3 3.3 bash -
165 104 61 57.0 bumpleak/osh mut
181 120 61 57.4 _bin/cxx-opt+bumproot/osh mut
196 141 54 58.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 146 67 49.0 osh-native mut+alloc
227 153 74 50.9 osh-native mut+alloc+free
184 136 48 8.9 osh-native mut+alloc+free+gc
184 131 53 8.8 osh-native mut+alloc+free+gc+exit
238 145 94 64.5 _bin/cxx-opt+nopool/osh mut+alloc
210 156 54 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 136 69 48.5 osh-native-souffle mut+alloc
211 148 63 50.4 osh-native-souffle mut+alloc+free
177 126 51 8.4 osh-native-souffle mut+alloc+free+gc
174 120 54 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 5 3.5 dash -
19 8 11 4.5 bash -
17 10 7 3.4 zsh -
19 5 14 12.1 bumpleak/osh mut
20 9 12 13.2 _bin/cxx-opt+bumproot/osh mut
22 12 10 13.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 12 10 11.1 osh-native mut+alloc
22 6 17 11.1 osh-native mut+alloc+free
22 14 9 9.0 osh-native mut+alloc+free+gc
23 9 14 9.2 osh-native mut+alloc+free+gc+exit
25 12 13 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 13 12 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 10 11 10.6 osh-native-souffle mut+alloc
22 12 10 10.7 osh-native-souffle mut+alloc+free
21 9 12 8.4 osh-native-souffle mut+alloc+free+gc
22 8 14 8.5 osh-native-souffle mut+alloc+free+gc+exit