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 65 11 21 12.0 18.0 476,744 1,282 6 406,316 5 203,158 osh-native
parse.configure-cpython 36 3 10 12.0 17.7 476,744 1,282 6 406,186 5 203,093 osh-native-souffle
parse.configure-coreutils 181 25 78 44.5 49.6 1,653,332 4,764 12 1,025,512 6 764,299 osh-native
parse.configure-coreutils 174 24 76 45.9 51.0 1,653,331 4,764 12 1,063,842 6 792,359 osh-native-souffle
parse.abuild 10 1 1 2.6 8.5 101,935 180 2 75,016 1 37,508 osh-native
parse.abuild 14 3 4 2.4 7.9 101,935 180 3 87,078 1 43,539 osh-native-souffle
ex.compute-fib 31 0 2 2.1 8.0 579,599 22,608 12 50,000 0 2,912 osh-native
ex.compute-fib 32 0 2 2.1 7.7 579,599 22,608 12 50,000 0 2,850 osh-native-souffle
ex.bashcomp-parse-help 248 0 5 10.3 8.8 995,281 15,258 21 50,000 0 3,894 osh-native
ex.bashcomp-parse-help 231 0 5 10.3 8.3 995,280 15,258 21 50,000 0 3,839 osh-native-souffle
ex.abuild-print-help 25 1 2 2.8 8.9 116,311 277 3 85,234 1 42,617 osh-native
ex.abuild-print-help 24 1 2 2.8 8.8 116,311 277 3 85,110 1 42,555 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
8 4 4 1.6 dash -
28 28 0 3.0 bash -
136 75 62 3.4 zsh -
30 11 19 28.8 bumpleak/osh mut
23 19 4 28.5 _bin/cxx-opt+bumproot/osh mut
32 28 4 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 22 9 25.3 osh-native mut+alloc
40 28 12 25.4 osh-native mut+alloc+free
65 61 4 18.0 osh-native mut+alloc+free+gc
55 39 16 18.1 osh-native mut+alloc+free+gc+exit
50 37 12 32.2 _bin/cxx-opt+nopool/osh mut+alloc
66 38 27 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
32 20 12 24.8 osh-native-souffle mut+alloc
33 24 8 25.2 osh-native-souffle mut+alloc+free
36 27 8 17.7 osh-native-souffle mut+alloc+free+gc
44 36 8 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
26 22 4 1.6 dash -
105 105 0 3.1 bash -
526 261 271 3.5 zsh -
60 44 16 85.5 bumpleak/osh mut
82 70 12 86.1 _bin/cxx-opt+bumproot/osh mut
76 72 4 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
111 67 44 73.4 osh-native mut+alloc
109 69 40 75.2 osh-native mut+alloc+free
181 156 25 49.6 osh-native mut+alloc+free+gc
253 220 32 50.4 osh-native mut+alloc+free+gc+exit
203 131 72 99.5 _bin/cxx-opt+nopool/osh mut+alloc
250 210 40 67.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 50 39 73.3 osh-native-souffle mut+alloc
120 72 48 74.9 osh-native-souffle mut+alloc+free
174 145 28 51.0 osh-native-souffle mut+alloc+free+gc
194 158 36 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 -
9 9 0 2.9 bash -
10 5 5 3.3 zsh -
7 4 4 11.7 bumpleak/osh mut
7 4 4 11.1 _bin/cxx-opt+bumproot/osh mut
8 4 4 11.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
12 4 7 10.0 osh-native mut+alloc
11 7 4 10.4 osh-native mut+alloc+free
10 7 3 8.5 osh-native mut+alloc+free+gc
12 8 4 8.5 osh-native mut+alloc+free+gc+exit
14 9 5 11.4 _bin/cxx-opt+nopool/osh mut+alloc
17 13 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
9 4 4 9.6 osh-native-souffle mut+alloc
9 9 0 9.8 osh-native-souffle mut+alloc+free
14 9 5 7.9 osh-native-souffle mut+alloc+free+gc
12 4 8 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
12 11 0 1.6 dash -
32 31 0 3.0 bash -
28 12 15 3.3 zsh -
25 15 10 32.3 bumpleak/osh mut
29 18 11 31.7 _bin/cxx-opt+bumproot/osh mut
39 39 0 33.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
40 32 8 26.3 osh-native mut+alloc
49 32 16 26.5 osh-native mut+alloc+free
31 31 0 8.0 osh-native mut+alloc+free+gc
42 37 4 8.0 osh-native mut+alloc+free+gc+exit
66 43 23 36.3 _bin/cxx-opt+nopool/osh mut+alloc
44 37 7 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
41 24 16 26.0 osh-native-souffle mut+alloc
36 32 4 26.3 osh-native-souffle mut+alloc+free
32 23 8 7.7 osh-native-souffle mut+alloc+free+gc
25 25 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
89 85 4 3.1 bash -
207 131 76 53.8 bumpleak/osh mut
216 140 76 56.0 _bin/cxx-opt+bumproot/osh mut
228 152 76 56.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
238 178 59 47.4 osh-native mut+alloc
270 185 84 49.1 osh-native mut+alloc+free
248 164 84 8.8 osh-native mut+alloc+free+gc
224 156 68 8.7 osh-native mut+alloc+free+gc+exit
290 174 116 63.4 _bin/cxx-opt+nopool/osh mut+alloc
259 187 72 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
238 170 69 46.9 osh-native-souffle mut+alloc
226 161 65 48.5 osh-native-souffle mut+alloc+free
231 163 68 8.3 osh-native-souffle mut+alloc+free+gc
209 145 64 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
13 5 7 3.5 dash -
22 15 7 4.5 bash -
23 8 16 3.5 zsh -
21 14 8 12.6 bumpleak/osh mut
22 17 6 12.1 _bin/cxx-opt+bumproot/osh mut
25 19 6 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
27 15 12 11.1 osh-native mut+alloc
33 24 9 11.1 osh-native mut+alloc+free
25 17 8 8.9 osh-native mut+alloc+free+gc
33 21 8 9.0 osh-native mut+alloc+free+gc+exit
28 14 14 12.8 _bin/cxx-opt+nopool/osh mut+alloc
30 29 2 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 10 20 10.6 osh-native-souffle mut+alloc
28 16 12 10.7 osh-native-souffle mut+alloc+free
24 15 9 8.8 osh-native-souffle mut+alloc+free+gc
31 24 7 8.5 osh-native-souffle mut+alloc+free+gc+exit