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 4 10 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.6 476,766 1,282 6 406,608 5 203,304 osh-native-souffle
parse.configure-coreutils 143 22 58 44.5 49.7 1,653,354 4,764 12 1,025,540 6 764,313 osh-native
parse.configure-coreutils 134 22 59 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.8 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 8.0 579,721 22,608 12 50,000 0 2,926 osh-native
ex.compute-fib 21 0 1 2.2 7.6 579,721 22,608 12 50,000 0 2,921 osh-native-souffle
ex.bashcomp-parse-help 183 0 4 11.1 8.9 1,021,038 15,258 22 50,000 0 3,915 osh-native
ex.bashcomp-parse-help 174 0 4 11.1 8.4 1,021,037 15,258 22 50,000 0 3,915 osh-native-souffle
ex.abuild-print-help 23 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.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 5 1 1.4 dash -
23 21 2 3.0 bash -
101 56 52 3.4 zsh -
16 12 5 27.9 bumpleak/osh mut
19 13 7 29.6 _bin/cxx-opt+bumproot/osh mut
23 19 4 28.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 18 11 25.2 osh-native mut+alloc
31 20 11 25.6 osh-native mut+alloc+free
36 31 5 18.2 osh-native mut+alloc+free+gc
37 29 9 18.2 osh-native mut+alloc+free+gc+exit
43 31 12 32.4 _bin/cxx-opt+nopool/osh mut+alloc
48 37 11 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 16 10 25.0 osh-native-souffle mut+alloc
28 17 12 25.3 osh-native-souffle mut+alloc+free
32 21 11 17.6 osh-native-souffle mut+alloc+free+gc
33 27 6 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.6 dash -
78 76 2 3.1 bash -
365 193 195 3.7 zsh -
49 40 9 84.2 bumpleak/osh mut
60 51 8 85.9 _bin/cxx-opt+bumproot/osh mut
70 62 9 86.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 72 25 73.7 osh-native mut+alloc
104 65 39 75.2 osh-native mut+alloc+free
143 124 19 49.7 osh-native mut+alloc+free+gc
150 129 21 50.5 osh-native mut+alloc+free+gc+exit
138 97 41 99.0 _bin/cxx-opt+nopool/osh mut+alloc
205 171 34 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 57 31 73.1 osh-native-souffle mut+alloc
95 51 43 75.0 osh-native-souffle mut+alloc+free
134 106 28 49.4 osh-native-souffle mut+alloc+free+gc
140 115 25 50.2 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 -
5 4 1 2.9 bash -
7 5 2 3.3 zsh -
6 3 3 11.1 bumpleak/osh mut
7 3 4 11.4 _bin/cxx-opt+bumproot/osh mut
7 4 3 11.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 2 9.8 osh-native mut+alloc
9 6 3 10.4 osh-native mut+alloc+free
9 7 2 8.8 osh-native mut+alloc+free+gc
9 6 3 8.4 osh-native mut+alloc+free+gc+exit
12 8 4 11.5 _bin/cxx-opt+nopool/osh mut+alloc
11 8 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 6 2 9.4 osh-native-souffle mut+alloc
8 3 4 9.7 osh-native-souffle mut+alloc+free
8 4 4 8.1 osh-native-souffle mut+alloc+free+gc
8 4 5 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 21 2 3.3 zsh -
18 14 4 30.8 bumpleak/osh mut
26 21 4 31.5 _bin/cxx-opt+bumproot/osh mut
28 21 8 33.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 23 13 26.3 osh-native mut+alloc
38 28 10 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 35 3 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 20 10 26.0 osh-native-souffle mut+alloc
32 22 9 26.1 osh-native-souffle mut+alloc+free
21 19 2 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
74 68 6 3.0 bash -
167 117 50 56.7 bumpleak/osh mut
181 123 57 57.1 _bin/cxx-opt+bumproot/osh mut
194 137 57 58.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
216 138 78 49.0 osh-native mut+alloc
224 148 76 50.8 osh-native mut+alloc+free
183 130 53 8.9 osh-native mut+alloc+free+gc
184 134 50 8.8 osh-native mut+alloc+free+gc+exit
234 136 98 64.7 _bin/cxx-opt+nopool/osh mut+alloc
210 164 46 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 131 73 48.4 osh-native-souffle mut+alloc
210 130 80 50.3 osh-native-souffle mut+alloc+free
174 116 57 8.4 osh-native-souffle mut+alloc+free+gc
173 113 60 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 12 7 4.3 bash -
17 6 12 3.4 zsh -
19 5 15 12.8 bumpleak/osh mut
19 9 10 13.8 _bin/cxx-opt+bumproot/osh mut
21 8 13 13.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 7 14 11.1 osh-native mut+alloc
22 8 14 11.1 osh-native mut+alloc+free
23 7 16 9.2 osh-native mut+alloc+free+gc
22 12 11 9.0 osh-native mut+alloc+free+gc+exit
24 12 13 12.8 _bin/cxx-opt+nopool/osh mut+alloc
24 13 12 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 10 10 10.6 osh-native-souffle mut+alloc
21 10 11 10.7 osh-native-souffle mut+alloc+free
21 11 10 8.5 osh-native-souffle mut+alloc+free+gc
21 12 10 8.7 osh-native-souffle mut+alloc+free+gc+exit