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 33 3 9 12.0 17.6 476,766 1,282 6 406,608 5 203,304 osh-native-souffle
parse.configure-coreutils 155 24 69 44.5 49.8 1,653,354 4,764 12 1,025,540 6 764,313 osh-native
parse.configure-coreutils 141 24 64 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 8 1 1 2.6 8.3 101,957 180 2 75,034 1 37,517 osh-native-souffle
ex.compute-fib 28 0 1 2.2 8.1 579,721 22,608 12 50,000 0 2,926 osh-native
ex.compute-fib 22 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,036 15,258 22 50,000 0 3,915 osh-native
ex.bashcomp-parse-help 172 0 4 11.1 8.5 1,021,035 15,258 22 50,000 0 3,915 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 8.9 116,340 277 3 85,262 1 42,631 osh-native
ex.abuild-print-help 20 1 2 2.8 8.7 116,340 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 3 2.9 bash -
101 59 48 3.5 zsh -
16 12 4 29.6 bumpleak/osh mut
20 17 3 28.8 _bin/cxx-opt+bumproot/osh mut
22 18 4 29.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 15 14 25.3 osh-native mut+alloc
31 21 10 25.7 osh-native mut+alloc+free
36 26 10 18.2 osh-native mut+alloc+free+gc
36 27 9 18.2 osh-native mut+alloc+free+gc+exit
42 20 22 32.5 _bin/cxx-opt+nopool/osh mut+alloc
57 49 8 21.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 12 15 24.6 osh-native-souffle mut+alloc
29 17 11 25.2 osh-native-souffle mut+alloc+free
33 26 7 17.6 osh-native-souffle mut+alloc+free+gc
34 28 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 19 2 1.6 dash -
78 77 1 3.3 bash -
360 191 189 3.5 zsh -
49 41 8 84.9 bumpleak/osh mut
60 55 5 86.4 _bin/cxx-opt+bumproot/osh mut
75 59 16 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 69 29 73.5 osh-native mut+alloc
106 69 36 75.2 osh-native mut+alloc+free
155 135 20 49.8 osh-native mut+alloc+free+gc
161 136 25 50.4 osh-native mut+alloc+free+gc+exit
141 97 44 98.9 _bin/cxx-opt+nopool/osh mut+alloc
224 185 38 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 48 40 73.1 osh-native-souffle mut+alloc
96 61 35 75.1 osh-native-souffle mut+alloc+free
141 121 20 49.4 osh-native-souffle mut+alloc+free+gc
149 119 30 49.9 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 -
9 8 1 3.0 bash -
7 5 3 3.3 zsh -
5 3 2 12.0 bumpleak/osh mut
7 3 4 12.2 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 3 6 10.0 osh-native mut+alloc
9 4 5 10.0 osh-native mut+alloc+free
9 5 4 8.5 osh-native mut+alloc+free+gc
9 7 2 8.5 osh-native mut+alloc+free+gc+exit
12 6 6 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 5 3 9.7 osh-native-souffle mut+alloc
8 4 3 9.7 osh-native-souffle mut+alloc+free
8 7 1 8.3 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.6 dash -
28 26 2 2.9 bash -
23 15 8 3.3 zsh -
19 15 4 32.0 bumpleak/osh mut
26 21 5 32.9 _bin/cxx-opt+bumproot/osh mut
28 23 5 32.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 25 12 26.2 osh-native mut+alloc
38 21 16 26.6 osh-native mut+alloc+free
28 26 2 8.1 osh-native mut+alloc+free+gc
29 28 1 8.0 osh-native mut+alloc+free+gc+exit
53 40 13 35.9 _bin/cxx-opt+nopool/osh mut+alloc
39 35 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 20 11 26.1 osh-native-souffle mut+alloc
32 25 7 26.3 osh-native-souffle mut+alloc+free
22 18 4 7.6 osh-native-souffle mut+alloc+free+gc
22 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 69 4 3.1 bash -
167 112 55 55.8 bumpleak/osh mut
180 123 57 56.8 _bin/cxx-opt+bumproot/osh mut
196 136 61 57.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 150 64 49.0 osh-native mut+alloc
217 145 72 50.9 osh-native mut+alloc+free
182 129 52 8.8 osh-native mut+alloc+free+gc
183 130 53 8.8 osh-native mut+alloc+free+gc+exit
236 157 79 64.5 _bin/cxx-opt+nopool/osh mut+alloc
210 148 62 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 139 64 48.6 osh-native-souffle mut+alloc
213 135 78 50.4 osh-native-souffle mut+alloc+free
172 122 50 8.5 osh-native-souffle mut+alloc+free+gc
174 125 49 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 11 8 4.5 bash -
17 5 12 3.4 zsh -
17 9 8 11.1 bumpleak/osh mut
19 13 6 12.4 _bin/cxx-opt+bumproot/osh mut
19 9 10 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 14 8 11.1 osh-native mut+alloc
22 10 12 11.3 osh-native mut+alloc+free
23 14 9 8.9 osh-native mut+alloc+free+gc
22 14 8 9.2 osh-native mut+alloc+free+gc+exit
24 10 14 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 15 11 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 8 12 10.6 osh-native-souffle mut+alloc
20 6 15 10.6 osh-native-souffle mut+alloc+free
20 9 12 8.7 osh-native-souffle mut+alloc+free+gc
21 11 11 8.7 osh-native-souffle mut+alloc+free+gc+exit