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 35 3 9 12.0 17.8 476,745 1,282 6 406,318 5 203,159 osh-native
parse.configure-cpython 33 4 9 12.0 17.6 476,745 1,282 6 406,188 5 203,094 osh-native-souffle
parse.configure-coreutils 152 24 66 44.5 49.8 1,653,333 4,764 12 1,025,514 6 764,300 osh-native
parse.configure-coreutils 147 26 68 45.9 50.9 1,653,332 4,764 12 1,063,844 6 792,360 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 101,936 180 2 75,018 1 37,509 osh-native
parse.abuild 9 1 2 2.4 8.1 101,936 180 3 87,080 1 43,540 osh-native-souffle
ex.compute-fib 28 0 1 2.1 8.0 579,600 22,608 12 50,000 0 2,913 osh-native
ex.compute-fib 22 0 1 2.1 7.6 579,600 22,608 12 50,000 0 2,851 osh-native-souffle
ex.bashcomp-parse-help 182 0 3 10.3 8.7 995,282 15,258 21 50,000 0 3,895 osh-native
ex.bashcomp-parse-help 174 0 3 10.3 8.3 995,281 15,258 21 50,000 0 3,840 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.2 116,312 277 3 85,236 1 42,618 osh-native
ex.abuild-print-help 21 1 2 2.8 8.5 116,312 277 3 85,112 1 42,556 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 3 3 1.4 dash -
24 19 4 3.0 bash -
105 62 50 3.4 zsh -
16 8 8 29.5 bumpleak/osh mut
20 20 0 28.9 _bin/cxx-opt+bumproot/osh mut
23 15 8 30.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 8 21 25.2 osh-native mut+alloc
31 23 8 25.7 osh-native mut+alloc+free
35 23 12 17.8 osh-native mut+alloc+free+gc
37 29 8 18.0 osh-native mut+alloc+free+gc+exit
42 23 19 32.1 _bin/cxx-opt+nopool/osh mut+alloc
49 37 12 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 15 11 24.6 osh-native-souffle mut+alloc
29 12 17 25.3 osh-native-souffle mut+alloc+free
33 24 8 17.6 osh-native-souffle mut+alloc+free+gc
33 29 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 -
79 79 0 3.3 bash -
380 202 199 3.5 zsh -
49 44 4 85.5 bumpleak/osh mut
61 49 11 85.2 _bin/cxx-opt+bumproot/osh mut
71 43 28 86.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 52 44 73.4 osh-native mut+alloc
104 48 56 75.4 osh-native mut+alloc+free
152 120 32 49.8 osh-native mut+alloc+free+gc
159 123 36 50.3 osh-native mut+alloc+free+gc+exit
139 95 43 99.2 _bin/cxx-opt+nopool/osh mut+alloc
221 200 20 66.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 48 40 73.1 osh-native-souffle mut+alloc
97 73 23 75.0 osh-native-souffle mut+alloc+free
147 130 16 50.9 osh-native-souffle mut+alloc+free+gc
155 114 41 51.7 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 -
6 3 3 3.0 bash -
8 8 0 3.3 zsh -
6 0 6 12.3 bumpleak/osh mut
7 0 7 11.6 _bin/cxx-opt+bumproot/osh mut
8 7 0 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.1 osh-native mut+alloc
9 9 0 10.1 osh-native mut+alloc+free
9 5 5 8.7 osh-native mut+alloc+free+gc
9 5 5 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.6 osh-native-souffle mut+alloc
8 8 0 9.8 osh-native-souffle mut+alloc+free
9 9 0 8.1 osh-native-souffle mut+alloc+free+gc
9 3 6 8.0 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 -
29 25 4 2.9 bash -
24 12 12 3.3 zsh -
19 15 4 32.7 bumpleak/osh mut
26 21 4 31.8 _bin/cxx-opt+bumproot/osh mut
28 23 4 32.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.2 osh-native mut+alloc
38 29 8 26.6 osh-native mut+alloc+free
28 27 0 8.0 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
54 33 21 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 25 12 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 15 15 25.8 osh-native-souffle mut+alloc
32 27 4 26.2 osh-native-souffle mut+alloc+free
22 17 4 7.6 osh-native-souffle mut+alloc+free+gc
22 21 0 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
72 64 8 3.1 bash -
166 110 55 54.1 bumpleak/osh mut
183 142 40 54.8 _bin/cxx-opt+bumproot/osh mut
195 113 81 55.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
209 125 84 47.2 osh-native mut+alloc
217 116 100 49.0 osh-native mut+alloc+free
182 123 59 8.7 osh-native mut+alloc+free+gc
183 126 57 8.9 osh-native mut+alloc+free+gc+exit
235 163 71 62.8 _bin/cxx-opt+nopool/osh mut+alloc
214 185 28 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 128 76 46.9 osh-native-souffle mut+alloc
209 120 88 48.6 osh-native-souffle mut+alloc+free
174 121 52 8.3 osh-native-souffle mut+alloc+free+gc
174 142 32 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
10 10 0 3.5 dash -
20 12 9 4.3 bash -
18 9 9 3.5 zsh -
19 10 9 12.4 bumpleak/osh mut
19 13 7 14.0 _bin/cxx-opt+bumproot/osh mut
20 13 8 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 16 6 10.9 osh-native mut+alloc
23 13 10 11.1 osh-native mut+alloc+free
22 12 11 9.2 osh-native mut+alloc+free+gc
23 8 15 8.9 osh-native mut+alloc+free+gc+exit
25 11 14 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 16 9 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 16 4 10.6 osh-native-souffle mut+alloc
21 12 10 10.6 osh-native-souffle mut+alloc+free
21 14 8 8.5 osh-native-souffle mut+alloc+free+gc
22 16 6 8.7 osh-native-souffle mut+alloc+free+gc+exit