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 37 4 11 12.0 18.0 476,755 1,282 6 406,612 5 203,306 osh-native
parse.configure-cpython 33 4 10 12.0 17.4 476,755 1,282 6 406,208 5 203,104 osh-native-souffle
parse.configure-coreutils 153 25 68 44.5 49.9 1,653,343 4,764 12 1,025,534 6 764,310 osh-native
parse.configure-coreutils 143 24 66 44.5 49.5 1,653,342 4,764 12 1,025,404 6 764,245 osh-native-souffle
parse.abuild 9 1 1 2.6 8.4 101,946 180 2 75,038 1 37,519 osh-native
parse.abuild 9 1 2 2.4 8.0 101,946 180 3 87,100 1 43,550 osh-native-souffle
ex.compute-fib 28 0 2 2.1 8.1 579,610 22,608 12 50,000 0 2,923 osh-native
ex.compute-fib 22 0 1 2.1 7.6 579,610 22,608 12 50,000 0 2,862 osh-native-souffle
ex.bashcomp-parse-help 183 0 4 10.3 8.9 995,292 15,258 21 50,000 0 3,905 osh-native
ex.bashcomp-parse-help 176 0 3 10.3 8.3 995,291 15,258 21 50,000 0 3,848 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.0 116,322 277 3 85,256 1 42,628 osh-native
ex.abuild-print-help 21 1 2 2.8 8.5 116,322 277 3 85,132 1 42,566 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 6 0 1.6 dash -
24 23 0 2.9 bash -
105 64 48 3.4 zsh -
16 12 4 28.0 bumpleak/osh mut
19 12 8 30.5 _bin/cxx-opt+bumproot/osh mut
22 11 11 30.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 17 12 25.2 osh-native mut+alloc
31 15 15 25.7 osh-native mut+alloc+free
37 32 4 18.0 osh-native mut+alloc+free+gc
36 32 4 18.0 osh-native mut+alloc+free+gc+exit
43 30 13 33.1 _bin/cxx-opt+nopool/osh mut+alloc
47 31 16 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 7 19 24.9 osh-native-souffle mut+alloc
28 16 12 25.3 osh-native-souffle mut+alloc+free
33 28 4 17.4 osh-native-souffle mut+alloc+free+gc
33 25 8 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 21 0 1.6 dash -
80 80 0 3.1 bash -
379 201 199 3.5 zsh -
48 44 4 85.6 bumpleak/osh mut
58 54 4 84.4 _bin/cxx-opt+bumproot/osh mut
70 54 16 86.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 69 28 73.5 osh-native mut+alloc
104 64 40 75.2 osh-native mut+alloc+free
153 122 31 49.9 osh-native mut+alloc+free+gc
155 131 24 50.4 osh-native mut+alloc+free+gc+exit
138 101 36 99.0 _bin/cxx-opt+nopool/osh mut+alloc
227 187 40 68.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 60 28 73.1 osh-native-souffle mut+alloc
96 58 37 75.0 osh-native-souffle mut+alloc+free
143 123 20 49.5 osh-native-souffle mut+alloc+free+gc
149 129 20 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 2 0 1.3 dash -
6 6 0 2.9 bash -
8 4 4 3.1 zsh -
6 6 0 10.7 bumpleak/osh mut
7 7 0 11.7 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.1 osh-native mut+alloc
9 0 9 10.0 osh-native mut+alloc+free
9 5 5 8.4 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 8 0 9.7 osh-native-souffle mut+alloc+free
9 9 0 8.0 osh-native-souffle mut+alloc+free+gc
9 9 0 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
11 10 0 1.4 dash -
29 21 7 3.0 bash -
24 12 12 3.3 zsh -
18 18 0 31.7 bumpleak/osh mut
25 21 4 31.4 _bin/cxx-opt+bumproot/osh mut
28 24 4 32.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 27 8 26.2 osh-native mut+alloc
37 29 8 26.6 osh-native mut+alloc+free
28 23 4 8.1 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
54 31 23 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 13 17 25.7 osh-native-souffle mut+alloc
32 24 8 26.2 osh-native-souffle mut+alloc+free
22 22 0 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
74 66 8 3.1 bash -
172 92 80 55.8 bumpleak/osh mut
183 95 87 55.9 _bin/cxx-opt+bumproot/osh mut
196 132 64 56.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 140 72 47.4 osh-native mut+alloc
217 133 84 49.1 osh-native mut+alloc+free
183 146 37 8.9 osh-native mut+alloc+free+gc
184 120 64 8.8 osh-native mut+alloc+free+gc+exit
236 154 81 63.0 _bin/cxx-opt+nopool/osh mut+alloc
211 163 48 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 141 64 47.0 osh-native-souffle mut+alloc
213 125 88 48.6 osh-native-souffle mut+alloc+free
176 112 64 8.3 osh-native-souffle mut+alloc+free+gc
175 138 37 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 7 3 3.5 dash -
19 14 5 4.3 bash -
18 13 6 3.5 zsh -
18 8 11 13.1 bumpleak/osh mut
21 11 10 12.9 _bin/cxx-opt+bumproot/osh mut
20 13 8 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 11 11 10.9 osh-native mut+alloc
22 20 3 11.3 osh-native mut+alloc+free
23 22 1 9.0 osh-native mut+alloc+free+gc
22 18 5 8.9 osh-native mut+alloc+free+gc+exit
25 21 4 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 22 3 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 12 9 10.5 osh-native-souffle mut+alloc
21 10 11 10.6 osh-native-souffle mut+alloc+free
21 19 2 8.5 osh-native-souffle mut+alloc+free+gc
22 16 6 8.7 osh-native-souffle mut+alloc+free+gc+exit