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 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 145 22 59 44.5 49.8 1,653,354 4,764 12 1,025,540 6 764,313 osh-native
parse.configure-coreutils 141 24 65 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 21 0 2 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.8 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 22 1 2 2.8 9.0 116,356 277 3 85,262 1 42,631 osh-native
ex.abuild-print-help 20 1 2 2.8 8.7 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 22 1 3.0 bash -
100 61 46 3.4 zsh -
16 13 3 28.7 bumpleak/osh mut
19 17 2 29.2 _bin/cxx-opt+bumproot/osh mut
22 19 3 29.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 18 11 25.0 osh-native mut+alloc
31 23 8 25.7 osh-native mut+alloc+free
36 29 7 17.8 osh-native mut+alloc+free+gc
37 24 13 18.1 osh-native mut+alloc+free+gc+exit
42 25 18 32.5 _bin/cxx-opt+nopool/osh mut+alloc
46 39 8 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 14 13 24.8 osh-native-souffle mut+alloc
28 21 7 25.3 osh-native-souffle mut+alloc+free
33 27 6 17.6 osh-native-souffle mut+alloc+free+gc
35 31 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 21 0 1.6 dash -
78 76 2 3.0 bash -
361 190 191 3.4 zsh -
49 42 7 85.0 bumpleak/osh mut
61 50 11 85.0 _bin/cxx-opt+bumproot/osh mut
72 67 5 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 64 32 73.7 osh-native mut+alloc
105 75 30 75.4 osh-native mut+alloc+free
145 124 21 49.8 osh-native mut+alloc+free+gc
150 130 20 50.4 osh-native mut+alloc+free+gc+exit
138 93 45 99.0 _bin/cxx-opt+nopool/osh mut+alloc
202 180 21 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 56 31 73.1 osh-native-souffle mut+alloc
95 61 34 75.0 osh-native-souffle mut+alloc+free
141 119 22 49.3 osh-native-souffle mut+alloc+free+gc
143 124 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.3 dash -
5 5 1 3.0 bash -
7 5 3 3.1 zsh -
6 4 2 11.2 bumpleak/osh mut
7 4 3 11.8 _bin/cxx-opt+bumproot/osh mut
7 4 3 11.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 7 1 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 6 3 8.4 osh-native mut+alloc+free+gc+exit
12 9 3 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 4 8 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 2 6 9.7 osh-native-souffle mut+alloc
8 5 3 9.8 osh-native-souffle mut+alloc+free
8 6 3 8.3 osh-native-souffle mut+alloc+free+gc
8 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 8 2 1.6 dash -
28 28 0 2.8 bash -
24 16 8 3.3 zsh -
19 16 3 32.3 bumpleak/osh mut
26 20 6 33.1 _bin/cxx-opt+bumproot/osh mut
29 24 5 31.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 27 9 26.5 osh-native mut+alloc
37 25 12 26.6 osh-native mut+alloc+free
28 24 4 8.1 osh-native mut+alloc+free+gc
28 25 3 8.0 osh-native mut+alloc+free+gc+exit
54 37 17 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 20 9 26.1 osh-native-souffle mut+alloc
31 19 12 26.2 osh-native-souffle mut+alloc+free
21 19 2 7.6 osh-native-souffle mut+alloc+free+gc
21 19 2 7.5 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.1 bash -
164 110 54 56.5 bumpleak/osh mut
183 132 51 56.1 _bin/cxx-opt+bumproot/osh mut
196 136 60 57.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 140 72 49.0 osh-native mut+alloc
219 147 72 50.8 osh-native mut+alloc+free
183 133 50 8.8 osh-native mut+alloc+free+gc
181 119 62 8.8 osh-native mut+alloc+free+gc+exit
239 153 86 64.5 _bin/cxx-opt+nopool/osh mut+alloc
208 160 48 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 130 76 48.4 osh-native-souffle mut+alloc
212 135 77 50.4 osh-native-souffle mut+alloc+free
174 128 46 8.4 osh-native-souffle mut+alloc+free+gc
173 122 51 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.5 dash -
19 9 10 4.5 bash -
17 7 10 3.4 zsh -
17 5 13 11.5 bumpleak/osh mut
20 11 10 13.6 _bin/cxx-opt+bumproot/osh mut
19 11 9 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 7 14 11.0 osh-native mut+alloc
22 10 13 11.3 osh-native mut+alloc+free
22 11 11 9.0 osh-native mut+alloc+free+gc
23 11 12 9.2 osh-native mut+alloc+free+gc+exit
24 11 13 12.7 _bin/cxx-opt+nopool/osh mut+alloc
24 11 13 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 9 11 10.6 osh-native-souffle mut+alloc
21 12 9 10.9 osh-native-souffle mut+alloc+free
20 8 13 8.7 osh-native-souffle mut+alloc+free+gc
21 12 9 8.8 osh-native-souffle mut+alloc+free+gc+exit