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 38 4 11 12.1 18.0 476,744 1,282 6 409,298 5 204,649 osh-native
parse.configure-cpython 34 4 10 12.0 17.6 476,744 1,282 6 408,798 5 204,399 osh-native-souffle
parse.configure-coreutils 183 30 96 41.1 45.9 1,653,332 4,764 12 1,591,980 7 795,990 osh-native
parse.configure-coreutils 158 29 80 44.6 49.7 1,653,331 4,764 12 1,030,682 6 769,425 osh-native-souffle
parse.abuild 9 1 2 2.6 8.7 101,935 180 2 75,270 1 37,635 osh-native
parse.abuild 8 1 1 2.6 8.1 101,935 180 2 75,140 1 37,570 osh-native-souffle
ex.compute-fib 29 0 2 2.1 8.0 579,599 22,608 12 50,000 0 2,912 osh-native
ex.compute-fib 22 0 2 2.1 7.6 579,599 22,608 12 50,000 0 2,850 osh-native-souffle
ex.bashcomp-parse-help 186 0 4 10.3 8.8 995,281 15,258 21 50,000 0 3,895 osh-native
ex.bashcomp-parse-help 175 0 3 10.3 8.4 995,280 15,258 21 50,000 0 3,840 osh-native-souffle
ex.abuild-print-help 24 1 2 2.8 9.0 116,311 277 3 85,506 1 42,753 osh-native
ex.abuild-print-help 22 1 2 2.8 8.5 116,311 277 3 85,382 1 42,691 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 7 0 1.4 dash -
23 19 4 3.1 bash -
106 45 67 3.4 zsh -
16 8 8 29.7 bumpleak/osh mut
20 16 4 28.8 _bin/cxx-opt+bumproot/osh mut
23 12 12 28.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 19 11 25.0 osh-native mut+alloc
32 20 12 25.6 osh-native mut+alloc+free
38 33 4 18.0 osh-native mut+alloc+free+gc
39 31 8 18.1 osh-native mut+alloc+free+gc+exit
45 24 20 32.2 _bin/cxx-opt+nopool/osh mut+alloc
56 48 8 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 22 4 24.8 osh-native-souffle mut+alloc
29 21 8 25.3 osh-native-souffle mut+alloc+free
34 30 4 17.6 osh-native-souffle mut+alloc+free+gc
35 15 19 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 18 4 1.6 dash -
79 75 4 3.3 bash -
381 229 171 3.5 zsh -
49 33 15 84.8 bumpleak/osh mut
59 51 8 85.9 _bin/cxx-opt+bumproot/osh mut
71 59 12 86.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 55 43 73.4 osh-native mut+alloc
108 64 44 75.3 osh-native mut+alloc+free
183 175 8 45.9 osh-native mut+alloc+free+gc
187 147 40 46.0 osh-native mut+alloc+free+gc+exit
141 105 35 97.7 _bin/cxx-opt+nopool/osh mut+alloc
260 228 32 60.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 40 48 73.2 osh-native-souffle mut+alloc
97 72 24 75.1 osh-native-souffle mut+alloc+free
158 142 16 49.7 osh-native-souffle mut+alloc+free+gc
153 137 16 50.5 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 3.0 bash -
8 4 4 3.3 zsh -
6 3 3 11.9 bumpleak/osh mut
7 7 0 11.0 _bin/cxx-opt+bumproot/osh mut
8 0 8 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 10.1 osh-native mut+alloc
9 0 9 10.1 osh-native mut+alloc+free
9 9 0 8.7 osh-native mut+alloc+free+gc
10 7 3 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 4 8 9.5 _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
8 8 0 8.1 osh-native-souffle mut+alloc+free+gc
9 0 9 8.5 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 11 0 1.3 dash -
29 25 4 2.9 bash -
24 8 16 3.3 zsh -
18 18 0 31.0 bumpleak/osh mut
26 22 4 32.4 _bin/cxx-opt+bumproot/osh mut
28 16 12 33.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 11 26 26.0 osh-native mut+alloc
38 25 13 26.1 osh-native mut+alloc+free
29 24 4 8.0 osh-native mut+alloc+free+gc
29 28 0 8.1 osh-native mut+alloc+free+gc+exit
55 38 17 35.6 _bin/cxx-opt+nopool/osh mut+alloc
40 40 0 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 23 8 25.6 osh-native-souffle mut+alloc
32 28 4 25.7 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
73 69 4 3.1 bash -
167 110 57 54.3 bumpleak/osh mut
183 119 63 55.9 _bin/cxx-opt+bumproot/osh mut
194 121 73 55.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 156 56 47.1 osh-native mut+alloc
221 104 116 48.7 osh-native mut+alloc+free
186 111 75 8.8 osh-native mut+alloc+free+gc
185 112 72 8.8 osh-native mut+alloc+free+gc+exit
235 115 119 62.4 _bin/cxx-opt+nopool/osh mut+alloc
213 148 64 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 130 75 46.6 osh-native-souffle mut+alloc
215 141 73 48.3 osh-native-souffle mut+alloc+free
175 139 36 8.4 osh-native-souffle mut+alloc+free+gc
176 120 56 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
10 5 6 3.5 dash -
20 10 11 4.5 bash -
18 5 14 3.4 zsh -
18 10 9 13.3 bumpleak/osh mut
21 11 11 13.0 _bin/cxx-opt+bumproot/osh mut
21 15 6 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 14 9 11.0 osh-native mut+alloc
23 11 12 11.1 osh-native mut+alloc+free
24 18 6 9.0 osh-native mut+alloc+free+gc
24 19 6 9.0 osh-native mut+alloc+free+gc+exit
25 15 10 12.8 _bin/cxx-opt+nopool/osh mut+alloc
26 19 8 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 13 9 10.7 osh-native-souffle mut+alloc
23 22 1 10.9 osh-native-souffle mut+alloc+free
22 14 8 8.5 osh-native-souffle mut+alloc+free+gc
23 20 3 8.5 osh-native-souffle mut+alloc+free+gc+exit