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.0 476,745 1,282 6 406,318 5 203,159 osh-native
parse.configure-cpython 32 3 9 12.0 17.6 476,745 1,282 6 406,188 5 203,094 osh-native-souffle
parse.configure-coreutils 148 23 61 44.5 49.8 1,653,333 4,764 12 1,025,514 6 764,300 osh-native
parse.configure-coreutils 135 24 58 45.9 51.0 1,653,332 4,764 12 1,063,844 6 792,360 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,936 180 2 75,018 1 37,509 osh-native
parse.abuild 9 1 2 2.4 7.9 101,936 180 3 87,080 1 43,540 osh-native-souffle
ex.compute-fib 28 0 2 2.1 7.9 579,600 22,608 12 50,000 0 2,913 osh-native
ex.compute-fib 21 0 1 2.1 7.5 579,600 22,608 12 50,000 0 2,851 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 10.3 8.7 995,282 15,258 21 50,000 0 3,895 osh-native
ex.bashcomp-parse-help 176 0 3 10.3 8.1 995,281 15,258 21 50,000 0 3,840 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,312 277 3 85,236 1 42,618 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 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
6 3 3 1.4 dash -
24 20 4 3.1 bash -
103 59 51 3.3 zsh -
16 16 0 28.6 bumpleak/osh mut
20 16 4 28.4 _bin/cxx-opt+bumproot/osh mut
22 7 15 30.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 29 0 25.3 osh-native mut+alloc
32 23 8 25.8 osh-native mut+alloc+free
36 28 8 18.0 osh-native mut+alloc+free+gc
36 28 8 18.0 osh-native mut+alloc+free+gc+exit
43 19 23 32.2 _bin/cxx-opt+nopool/osh mut+alloc
48 32 16 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 19 7 24.6 osh-native-souffle mut+alloc
28 16 12 25.3 osh-native-souffle mut+alloc+free
32 28 4 17.6 osh-native-souffle mut+alloc+free+gc
33 25 7 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
22 22 0 1.4 dash -
78 73 4 3.3 bash -
377 238 159 3.4 zsh -
49 45 4 85.3 bumpleak/osh mut
60 44 16 84.4 _bin/cxx-opt+bumproot/osh mut
69 68 0 85.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 50 46 73.5 osh-native mut+alloc
104 68 36 75.3 osh-native mut+alloc+free
148 128 20 49.8 osh-native mut+alloc+free+gc
151 130 20 50.3 osh-native mut+alloc+free+gc+exit
139 91 48 99.0 _bin/cxx-opt+nopool/osh mut+alloc
201 162 39 67.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 63 23 73.0 osh-native-souffle mut+alloc
95 62 33 75.1 osh-native-souffle mut+alloc+free
135 115 20 51.0 osh-native-souffle mut+alloc+free+gc
141 117 23 51.8 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 -
6 6 0 2.8 bash -
8 0 7 3.4 zsh -
6 3 3 11.4 bumpleak/osh mut
7 7 0 12.0 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.1 osh-native mut+alloc
9 6 3 10.1 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
12 11 0 11.5 _bin/cxx-opt+nopool/osh mut+alloc
11 7 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 0 7 9.7 osh-native-souffle mut+alloc
8 0 8 9.7 osh-native-souffle mut+alloc+free
9 4 4 7.9 osh-native-souffle mut+alloc+free+gc
9 9 0 7.9 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 29 0 2.9 bash -
24 20 4 3.4 zsh -
18 18 0 31.0 bumpleak/osh mut
26 23 4 33.0 _bin/cxx-opt+bumproot/osh mut
27 23 4 31.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.3 osh-native mut+alloc
37 33 4 26.6 osh-native mut+alloc+free
28 24 4 7.9 osh-native mut+alloc+free+gc
28 24 4 8.1 osh-native mut+alloc+free+gc+exit
54 33 21 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 15 15 26.0 osh-native-souffle mut+alloc
31 15 15 26.1 osh-native-souffle mut+alloc+free
21 21 0 7.5 osh-native-souffle mut+alloc+free+gc
21 21 0 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 73 0 3.0 bash -
170 83 87 54.9 bumpleak/osh mut
184 124 60 55.6 _bin/cxx-opt+bumproot/osh mut
193 132 60 55.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 146 65 47.4 osh-native mut+alloc
218 155 63 48.9 osh-native mut+alloc+free
182 123 59 8.7 osh-native mut+alloc+free+gc
182 145 36 8.8 osh-native mut+alloc+free+gc+exit
234 149 85 63.4 _bin/cxx-opt+nopool/osh mut+alloc
208 148 60 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 147 56 46.9 osh-native-souffle mut+alloc
209 129 80 48.6 osh-native-souffle mut+alloc+free
176 132 44 8.1 osh-native-souffle mut+alloc+free+gc
174 137 36 8.1 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 9 1 3.4 dash -
20 16 4 4.3 bash -
17 13 5 3.5 zsh -
18 16 2 12.0 bumpleak/osh mut
20 18 2 12.4 _bin/cxx-opt+bumproot/osh mut
19 13 6 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 15 6 11.0 osh-native mut+alloc
23 12 12 11.3 osh-native mut+alloc+free
22 20 3 9.0 osh-native mut+alloc+free+gc
23 16 7 9.2 osh-native mut+alloc+free+gc+exit
24 17 7 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 22 3 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 13 7 10.6 osh-native-souffle mut+alloc
21 16 6 10.7 osh-native-souffle mut+alloc+free
21 14 8 8.7 osh-native-souffle mut+alloc+free+gc
22 11 11 8.8 osh-native-souffle mut+alloc+free+gc+exit