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 18.0 476,685 1,282 6 408,756 5 204,378 osh-native
parse.configure-coreutils 162 27 76 46.1 51.4 1,653,273 4,764 12 1,069,122 6 798,642 osh-native
parse.abuild 9 1 1 2.6 8.7 101,876 180 2 75,098 1 37,549 osh-native
ex.compute-fib 28 0 2 2.6 7.9 584,141 31,810 12 50,000 0 2,826 osh-native
ex.bashcomp-parse-help 182 0 4 10.6 8.7 995,218 27,376 21 50,000 0 3,821 osh-native
ex.abuild-print-help 23 1 2 2.8 8.8 116,285 478 3 85,334 1 42,667 osh-native

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 3 3 1.4 dash -
23 19 4 3.0 bash -
104 56 54 3.4 zsh -
17 17 0 29.0 bumpleak/osh mut
20 15 5 30.3 _bin/cxx-opt+bumproot/osh mut
23 11 11 28.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 8 25.0 osh-native mut+alloc
32 16 16 25.6 osh-native mut+alloc+free
36 28 8 18.0 osh-native mut+alloc+free+gc
37 25 11 18.0 osh-native mut+alloc+free+gc+exit
42 27 15 31.9 _bin/cxx-opt+nopool/osh mut+alloc
48 48 0 22.1 _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
21 21 0 1.6 dash -
77 73 4 3.3 bash -
380 221 181 3.4 zsh -
50 41 8 84.0 bumpleak/osh mut
60 52 8 85.4 _bin/cxx-opt+bumproot/osh mut
70 37 33 85.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 68 28 73.4 osh-native mut+alloc
105 66 39 75.3 osh-native mut+alloc+free
162 138 24 51.4 osh-native mut+alloc+free+gc
164 152 12 52.2 osh-native mut+alloc+free+gc+exit
136 88 48 98.0 _bin/cxx-opt+nopool/osh mut+alloc
214 193 20 72.0 _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 2 0 1.3 dash -
6 6 0 2.9 bash -
8 4 4 3.3 zsh -
6 6 0 10.3 bumpleak/osh mut
7 3 3 10.7 _bin/cxx-opt+bumproot/osh mut
8 8 0 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 9.8 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
9 9 0 8.7 osh-native mut+alloc+free+gc
9 5 5 8.5 osh-native mut+alloc+free+gc+exit
11 6 6 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.3 dash -
29 29 0 2.9 bash -
24 16 8 3.3 zsh -
19 19 0 32.5 bumpleak/osh mut
26 22 4 32.3 _bin/cxx-opt+bumproot/osh mut
28 27 0 33.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 16 20 26.3 osh-native mut+alloc
38 33 4 26.5 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
28 24 4 7.9 osh-native mut+alloc+free+gc+exit
53 37 16 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 32 4 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
73 73 0 3.1 bash -
168 96 72 54.5 bumpleak/osh mut
179 138 41 55.0 _bin/cxx-opt+bumproot/osh mut
194 126 67 56.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 141 72 47.1 osh-native mut+alloc
219 146 73 48.9 osh-native mut+alloc+free
182 131 51 8.7 osh-native mut+alloc+free+gc
181 120 60 8.8 osh-native mut+alloc+free+gc+exit
230 127 103 63.2 _bin/cxx-opt+nopool/osh mut+alloc
207 147 60 10.2 _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 11 10 4.3 bash -
18 11 7 3.5 zsh -
19 7 12 13.0 bumpleak/osh mut
20 12 8 12.2 _bin/cxx-opt+bumproot/osh mut
20 20 1 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 16 7 11.0 osh-native mut+alloc
23 17 6 10.9 osh-native mut+alloc+free
23 16 7 8.8 osh-native mut+alloc+free+gc
23 15 8 8.8 osh-native mut+alloc+free+gc+exit
25 23 3 12.5 _bin/cxx-opt+nopool/osh mut+alloc
26 15 12 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc