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 32 3 9 12.0 17.6 476,766 1,282 6 406,608 5 203,304 osh-native-souffle
parse.configure-coreutils 148 24 62 44.5 49.7 1,653,354 4,764 12 1,025,540 6 764,313 osh-native
parse.configure-coreutils 137 23 58 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.7 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.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 182 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.2 116,356 277 3 85,262 1 42,631 osh-native
ex.abuild-print-help 20 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.6 dash -
23 22 1 3.0 bash -
99 53 53 3.4 zsh -
16 10 6 29.1 bumpleak/osh mut
19 17 2 29.2 _bin/cxx-opt+bumproot/osh mut
22 18 4 29.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 22 7 25.2 osh-native mut+alloc
31 21 10 25.8 osh-native mut+alloc+free
36 25 11 17.8 osh-native mut+alloc+free+gc
37 29 8 18.2 osh-native mut+alloc+free+gc+exit
42 28 13 32.4 _bin/cxx-opt+nopool/osh mut+alloc
46 33 13 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 21 5 24.8 osh-native-souffle mut+alloc
28 18 10 25.3 osh-native-souffle mut+alloc+free
32 21 10 17.6 osh-native-souffle mut+alloc+free+gc
32 25 7 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 -
360 185 196 3.3 zsh -
48 41 7 84.7 bumpleak/osh mut
61 51 10 85.6 _bin/cxx-opt+bumproot/osh mut
70 57 13 86.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 63 34 73.7 osh-native mut+alloc
107 75 32 75.4 osh-native mut+alloc+free
148 132 16 49.7 osh-native mut+alloc+free+gc
150 133 17 50.5 osh-native mut+alloc+free+gc+exit
140 105 35 99.0 _bin/cxx-opt+nopool/osh mut+alloc
200 174 26 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 61 26 73.1 osh-native-souffle mut+alloc
95 58 37 75.0 osh-native-souffle mut+alloc+free
137 116 21 49.4 osh-native-souffle mut+alloc+free+gc
139 111 28 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.4 dash -
5 5 0 3.0 bash -
7 2 5 3.4 zsh -
6 2 4 11.1 bumpleak/osh mut
6 5 2 11.3 _bin/cxx-opt+bumproot/osh mut
7 5 2 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 3 5 9.8 osh-native mut+alloc
8 4 5 10.1 osh-native mut+alloc+free
9 5 4 8.7 osh-native mut+alloc+free+gc
9 7 2 8.5 osh-native mut+alloc+free+gc+exit
12 7 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 7 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 6 1 9.7 osh-native-souffle mut+alloc
8 5 3 9.8 osh-native-souffle mut+alloc+free
8 5 3 8.3 osh-native-souffle mut+alloc+free+gc
8 5 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 -
30 29 1 2.9 bash -
23 21 2 3.3 zsh -
18 14 4 31.3 bumpleak/osh mut
26 21 5 33.2 _bin/cxx-opt+bumproot/osh mut
28 21 7 32.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 29 6 26.3 osh-native mut+alloc
37 30 7 26.6 osh-native mut+alloc+free
28 25 3 8.0 osh-native mut+alloc+free+gc
28 24 4 8.1 osh-native mut+alloc+free+gc+exit
53 35 19 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 31 6 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 16 13 26.1 osh-native-souffle mut+alloc
31 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
72 70 2 3.1 bash -
166 101 65 57.1 bumpleak/osh mut
180 127 53 56.6 _bin/cxx-opt+bumproot/osh mut
196 138 58 57.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 145 68 49.0 osh-native mut+alloc
219 153 67 50.9 osh-native mut+alloc+free
182 136 46 8.8 osh-native mut+alloc+free+gc
183 140 43 8.9 osh-native mut+alloc+free+gc+exit
236 159 76 64.5 _bin/cxx-opt+nopool/osh mut+alloc
210 157 52 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 136 68 48.4 osh-native-souffle mut+alloc
211 141 70 50.3 osh-native-souffle mut+alloc+free
174 128 46 8.4 osh-native-souffle mut+alloc+free+gc
174 127 47 8.3 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 6 3 3.4 dash -
19 11 8 4.5 bash -
17 6 12 3.5 zsh -
18 8 11 12.3 bumpleak/osh mut
19 11 8 12.3 _bin/cxx-opt+bumproot/osh mut
20 5 16 13.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 14 7 11.1 osh-native mut+alloc
21 10 12 11.3 osh-native mut+alloc+free
22 11 11 9.2 osh-native mut+alloc+free+gc
22 13 10 9.2 osh-native mut+alloc+free+gc+exit
24 14 11 12.8 _bin/cxx-opt+nopool/osh mut+alloc
24 12 12 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 10 10 10.6 osh-native-souffle mut+alloc
20 13 8 10.7 osh-native-souffle mut+alloc+free
20 12 8 8.5 osh-native-souffle mut+alloc+free+gc
21 11 10 8.5 osh-native-souffle mut+alloc+free+gc+exit