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 9 12.0 17.8 476,766 1,282 6 406,618 5 203,309 osh-native
parse.configure-cpython 34 4 11 12.0 17.6 476,766 1,282 6 406,608 5 203,304 osh-native-souffle
parse.configure-coreutils 175 27 86 44.5 49.8 1,653,354 4,764 12 1,025,540 6 764,313 osh-native
parse.configure-coreutils 151 26 75 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 9 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 7.9 579,721 22,608 12 50,000 0 2,926 osh-native
ex.compute-fib 22 0 2 2.2 7.6 579,721 22,608 12 50,000 0 2,921 osh-native-souffle
ex.bashcomp-parse-help 184 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.0 116,356 277 3 85,262 1 42,631 osh-native
ex.abuild-print-help 21 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 3 3 1.4 dash -
23 22 1 3.0 bash -
101 54 55 3.4 zsh -
16 13 4 28.1 bumpleak/osh mut
20 15 5 29.7 _bin/cxx-opt+bumproot/osh mut
23 16 7 29.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 20 10 25.3 osh-native mut+alloc
31 20 11 25.7 osh-native mut+alloc+free
36 33 3 17.8 osh-native mut+alloc+free+gc
36 32 4 18.0 osh-native mut+alloc+free+gc+exit
42 32 10 32.5 _bin/cxx-opt+nopool/osh mut+alloc
50 49 1 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 17 10 24.8 osh-native-souffle mut+alloc
28 20 8 25.3 osh-native-souffle mut+alloc+free
34 25 10 17.6 osh-native-souffle mut+alloc+free+gc
36 27 9 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
22 21 1 1.6 dash -
78 76 2 3.3 bash -
363 201 183 3.5 zsh -
50 42 8 84.8 bumpleak/osh mut
62 51 10 85.6 _bin/cxx-opt+bumproot/osh mut
71 61 10 86.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
103 65 38 73.4 osh-native mut+alloc
107 66 41 75.3 osh-native mut+alloc+free
175 153 22 49.8 osh-native mut+alloc+free+gc
175 149 26 50.5 osh-native mut+alloc+free+gc+exit
141 107 34 98.8 _bin/cxx-opt+nopool/osh mut+alloc
236 207 29 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 51 37 73.0 osh-native-souffle mut+alloc
95 55 41 74.8 osh-native-souffle mut+alloc+free
151 130 21 49.4 osh-native-souffle mut+alloc+free+gc
156 130 26 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 2 2.9 bash -
7 5 3 3.3 zsh -
6 4 2 11.2 bumpleak/osh mut
6 5 1 12.6 _bin/cxx-opt+bumproot/osh mut
8 7 1 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 3 5 10.1 osh-native mut+alloc
9 6 3 10.0 osh-native mut+alloc+free
9 7 2 8.5 osh-native mut+alloc+free+gc
10 8 2 8.8 osh-native mut+alloc+free+gc+exit
12 8 3 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 5 7 9.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.8 osh-native-souffle mut+alloc
8 5 4 9.7 osh-native-souffle mut+alloc+free
9 6 3 8.3 osh-native-souffle mut+alloc+free+gc
9 7 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 10 0 1.3 dash -
29 29 0 2.9 bash -
23 18 5 3.3 zsh -
19 16 3 32.7 bumpleak/osh mut
27 24 3 33.1 _bin/cxx-opt+bumproot/osh mut
28 23 5 33.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.5 osh-native mut+alloc
38 29 8 26.7 osh-native mut+alloc+free
28 27 1 7.9 osh-native mut+alloc+free+gc
28 27 1 7.9 osh-native mut+alloc+free+gc+exit
54 36 18 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 21 9 26.0 osh-native-souffle mut+alloc
31 22 8 26.2 osh-native-souffle mut+alloc+free
22 19 3 7.6 osh-native-souffle mut+alloc+free+gc
22 18 4 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 67 6 3.0 bash -
165 120 45 55.7 bumpleak/osh mut
180 116 64 57.1 _bin/cxx-opt+bumproot/osh mut
195 134 61 57.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
215 145 70 49.1 osh-native mut+alloc
221 144 77 50.8 osh-native mut+alloc+free
184 118 67 8.9 osh-native mut+alloc+free+gc
183 130 53 8.8 osh-native mut+alloc+free+gc+exit
239 162 77 64.6 _bin/cxx-opt+nopool/osh mut+alloc
215 160 55 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 126 77 48.4 osh-native-souffle mut+alloc
209 133 76 50.4 osh-native-souffle mut+alloc+free
174 122 52 8.4 osh-native-souffle mut+alloc+free+gc
175 117 58 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.4 dash -
19 10 9 4.3 bash -
17 10 8 3.4 zsh -
18 7 11 13.1 bumpleak/osh mut
21 8 13 13.2 _bin/cxx-opt+bumproot/osh mut
20 10 10 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 12 9 11.0 osh-native mut+alloc
22 10 13 11.0 osh-native mut+alloc+free
23 11 12 9.0 osh-native mut+alloc+free+gc
23 9 15 9.0 osh-native mut+alloc+free+gc+exit
25 11 14 12.9 _bin/cxx-opt+nopool/osh mut+alloc
25 12 13 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 8 12 10.6 osh-native-souffle mut+alloc
21 11 11 10.6 osh-native-souffle mut+alloc+free
21 9 13 8.7 osh-native-souffle mut+alloc+free+gc
21 11 11 8.7 osh-native-souffle mut+alloc+free+gc+exit