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.1 18.0 476,744 1,282 6 409,298 5 204,649 osh-native
parse.configure-cpython 33 4 10 12.0 17.4 476,744 1,282 6 408,798 5 204,399 osh-native-souffle
parse.configure-coreutils 168 23 84 41.1 45.7 1,653,332 4,764 12 1,591,980 7 795,990 osh-native
parse.configure-coreutils 158 28 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.5 101,935 180 2 75,270 1 37,635 osh-native
parse.abuild 8 1 2 2.6 8.1 101,935 180 2 75,140 1 37,570 osh-native-souffle
ex.compute-fib 28 0 2 2.4 8.0 584,200 22,608 12 50,000 0 2,912 osh-native
ex.compute-fib 22 0 2 2.4 7.6 584,200 22,608 12 50,000 0 2,850 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 10.3 8.8 995,281 15,258 21 50,000 0 3,895 osh-native
ex.bashcomp-parse-help 175 0 4 10.3 8.3 995,280 15,258 21 50,000 0 3,840 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,350 277 3 85,506 1 42,753 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,350 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
6 6 0 1.4 dash -
24 23 0 3.0 bash -
104 68 42 3.5 zsh -
16 12 4 29.6 bumpleak/osh mut
20 12 8 28.8 _bin/cxx-opt+bumproot/osh mut
22 18 4 29.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 14 14 25.0 osh-native mut+alloc
31 27 4 25.7 osh-native mut+alloc+free
37 37 0 18.0 osh-native mut+alloc+free+gc
37 29 8 18.1 osh-native mut+alloc+free+gc+exit
43 19 23 32.8 _bin/cxx-opt+nopool/osh mut+alloc
48 32 16 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 9 17 24.8 osh-native-souffle mut+alloc
28 16 12 25.3 osh-native-souffle mut+alloc+free
33 26 7 17.4 osh-native-souffle mut+alloc+free+gc
36 27 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
22 22 0 1.4 dash -
78 77 0 3.1 bash -
377 219 180 3.4 zsh -
48 39 9 84.0 bumpleak/osh mut
59 47 12 84.4 _bin/cxx-opt+bumproot/osh mut
69 57 12 84.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 48 48 73.4 osh-native mut+alloc
105 72 32 75.4 osh-native mut+alloc+free
168 144 24 45.7 osh-native mut+alloc+free+gc
168 140 28 46.1 osh-native mut+alloc+free+gc+exit
139 67 71 97.9 _bin/cxx-opt+nopool/osh mut+alloc
213 181 32 61.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 59 28 73.0 osh-native-souffle mut+alloc
96 64 32 75.0 osh-native-souffle mut+alloc+free
158 138 20 49.7 osh-native-souffle mut+alloc+free+gc
160 136 24 50.2 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 0 2 1.4 dash -
6 6 0 2.9 bash -
8 8 0 3.3 zsh -
6 3 3 12.0 bumpleak/osh mut
7 3 3 11.7 _bin/cxx-opt+bumproot/osh mut
8 0 8 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.1 osh-native mut+alloc
9 9 0 10.1 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
11 8 4 11.2 _bin/cxx-opt+nopool/osh mut+alloc
12 11 0 9.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 0 8 9.6 osh-native-souffle mut+alloc
8 4 4 9.7 osh-native-souffle mut+alloc+free
8 8 0 8.1 osh-native-souffle mut+alloc+free+gc
9 6 3 8.4 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 7 4 1.4 dash -
29 28 0 3.0 bash -
24 16 8 3.3 zsh -
19 15 4 31.4 bumpleak/osh mut
26 21 4 33.0 _bin/cxx-opt+bumproot/osh mut
28 27 0 33.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.3 osh-native mut+alloc
37 29 7 26.7 osh-native mut+alloc+free
28 24 4 8.0 osh-native mut+alloc+free+gc
28 24 4 8.1 osh-native mut+alloc+free+gc+exit
53 41 11 35.9 _bin/cxx-opt+nopool/osh mut+alloc
39 31 8 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 18 11 26.1 osh-native-souffle mut+alloc
31 23 8 26.2 osh-native-souffle mut+alloc+free
22 17 4 7.6 osh-native-souffle mut+alloc+free+gc
22 22 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
73 65 8 3.1 bash -
167 127 40 54.9 bumpleak/osh mut
179 115 63 55.4 _bin/cxx-opt+bumproot/osh mut
194 134 59 55.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 132 80 47.0 osh-native mut+alloc
217 165 52 48.7 osh-native mut+alloc+free
182 125 57 8.8 osh-native mut+alloc+free+gc
181 112 68 8.8 osh-native mut+alloc+free+gc+exit
233 161 72 62.5 _bin/cxx-opt+nopool/osh mut+alloc
210 145 65 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
202 119 83 46.6 osh-native-souffle mut+alloc
210 150 59 48.3 osh-native-souffle mut+alloc+free
175 146 28 8.3 osh-native-souffle mut+alloc+free+gc
173 106 67 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 8 2 3.4 dash -
20 16 4 4.5 bash -
18 11 8 3.5 zsh -
20 6 14 13.0 bumpleak/osh mut
19 13 7 11.9 _bin/cxx-opt+bumproot/osh mut
20 18 3 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 14 8 11.1 osh-native mut+alloc
22 5 17 11.3 osh-native mut+alloc+free
22 21 2 9.0 osh-native mut+alloc+free+gc
27 20 7 9.0 osh-native mut+alloc+free+gc+exit
24 16 8 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 20 5 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
24 16 8 10.7 osh-native-souffle mut+alloc
21 15 6 10.6 osh-native-souffle mut+alloc+free
21 20 1 8.7 osh-native-souffle mut+alloc+free+gc
22 19 3 8.7 osh-native-souffle mut+alloc+free+gc+exit