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 17.8 476,684 1,282 6 408,754 5 204,377 osh-native
parse.configure-coreutils 153 26 64 46.1 51.4 1,653,272 4,764 12 1,069,120 6 798,641 osh-native
parse.abuild 9 1 1 2.6 8.4 101,875 180 2 75,096 1 37,548 osh-native
ex.compute-fib 28 0 1 2.6 7.9 584,140 31,810 12 50,000 0 2,825 osh-native
ex.bashcomp-parse-help 181 0 3 10.6 8.7 995,217 27,376 21 50,000 0 3,820 osh-native
ex.abuild-print-help 23 1 2 2.8 8.9 116,284 478 3 85,332 1 42,666 osh-native

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 -
23 19 4 3.1 bash -
106 62 51 3.4 zsh -
17 17 0 29.7 bumpleak/osh mut
20 16 4 28.8 _bin/cxx-opt+bumproot/osh mut
22 22 0 28.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 15 15 25.2 osh-native mut+alloc
31 18 13 25.7 osh-native mut+alloc+free
36 32 4 17.8 osh-native mut+alloc+free+gc
37 33 4 17.8 osh-native mut+alloc+free+gc+exit
43 24 20 32.9 _bin/cxx-opt+nopool/osh mut+alloc
49 26 23 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

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.6 dash -
79 75 4 3.1 bash -
377 187 212 3.4 zsh -
49 41 8 85.4 bumpleak/osh mut
60 48 12 86.3 _bin/cxx-opt+bumproot/osh mut
70 57 12 84.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 53 45 73.6 osh-native mut+alloc
105 77 28 75.1 osh-native mut+alloc+free
153 112 40 51.4 osh-native mut+alloc+free+gc
158 133 24 52.3 osh-native mut+alloc+free+gc+exit
139 99 40 97.5 _bin/cxx-opt+nopool/osh mut+alloc
221 196 24 73.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

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 0 7 3.1 zsh -
6 6 0 10.3 bumpleak/osh mut
6 0 6 10.7 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 3 6 10.0 osh-native mut+alloc
9 9 0 10.0 osh-native mut+alloc+free
9 4 4 8.4 osh-native mut+alloc+free+gc
9 5 5 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 4 8 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

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 28 0 2.9 bash -
24 12 12 3.3 zsh -
19 7 11 31.2 bumpleak/osh mut
26 17 9 31.8 _bin/cxx-opt+bumproot/osh mut
28 28 0 32.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 22 15 26.3 osh-native mut+alloc
39 31 8 26.7 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
28 28 0 7.9 osh-native mut+alloc+free+gc+exit
55 38 17 36.5 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

ex.bashcomp-parse-help

A realistic bash-completion workload.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
74 70 4 3.1 bash -
168 104 64 55.2 bumpleak/osh mut
178 107 71 55.1 _bin/cxx-opt+bumproot/osh mut
194 146 49 56.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 124 88 46.9 osh-native mut+alloc
217 144 72 48.9 osh-native mut+alloc+free
181 137 44 8.7 osh-native mut+alloc+free+gc
183 98 85 8.7 osh-native mut+alloc+free+gc+exit
231 135 96 63.5 _bin/cxx-opt+nopool/osh mut+alloc
208 152 56 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

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.4 dash -
20 15 6 4.5 bash -
18 9 10 3.5 zsh -
19 17 3 11.8 bumpleak/osh mut
21 16 6 13.1 _bin/cxx-opt+bumproot/osh mut
22 18 5 13.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 17 6 10.9 osh-native mut+alloc
23 18 5 11.0 osh-native mut+alloc+free
23 16 7 8.9 osh-native mut+alloc+free+gc
23 16 7 8.8 osh-native mut+alloc+free+gc+exit
25 12 14 12.6 _bin/cxx-opt+nopool/osh mut+alloc
26 20 6 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc