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 6 12 12.0 18.0 476,676 1,282 6 408,744 5 204,372 osh-native
parse.configure-coreutils 167 28 79 46.1 51.4 1,653,264 4,764 12 1,069,110 6 798,636 osh-native
parse.abuild 9 1 1 2.6 8.4 101,867 180 2 75,086 1 37,543 osh-native
ex.compute-fib 28 0 2 2.6 7.9 584,132 31,810 12 50,000 0 2,819 osh-native
ex.bashcomp-parse-help 185 0 5 10.6 8.8 995,209 27,376 21 50,000 0 3,815 osh-native
ex.abuild-print-help 23 1 2 2.8 8.7 116,276 478 3 85,322 1 42,661 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.6 dash -
23 23 0 3.1 bash -
106 62 51 3.4 zsh -
17 16 0 28.7 bumpleak/osh mut
20 20 0 28.3 _bin/cxx-opt+bumproot/osh mut
23 23 0 29.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 25.0 osh-native mut+alloc
32 20 12 25.6 osh-native mut+alloc+free
38 25 13 18.0 osh-native mut+alloc+free+gc
37 25 12 18.1 osh-native mut+alloc+free+gc+exit
46 34 11 32.1 _bin/cxx-opt+nopool/osh mut+alloc
56 44 12 21.9 _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 18 4 1.6 dash -
79 74 4 3.3 bash -
382 196 208 3.3 zsh -
51 38 13 85.0 bumpleak/osh mut
59 43 16 85.5 _bin/cxx-opt+bumproot/osh mut
71 59 12 85.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 59 39 73.4 osh-native mut+alloc
107 57 49 75.4 osh-native mut+alloc+free
167 147 20 51.4 osh-native mut+alloc+free+gc
176 152 24 52.2 osh-native mut+alloc+free+gc+exit
145 101 44 97.6 _bin/cxx-opt+nopool/osh mut+alloc
253 217 36 72.9 _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 3.0 bash -
8 4 4 3.1 zsh -
6 3 3 12.3 bumpleak/osh mut
7 7 0 12.0 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 5 5 9.8 osh-native mut+alloc
9 0 9 10.1 osh-native mut+alloc+free
9 5 5 8.4 osh-native mut+alloc+free+gc
10 3 6 8.5 osh-native mut+alloc+free+gc+exit
12 12 0 11.4 _bin/cxx-opt+nopool/osh mut+alloc
13 10 3 9.4 _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
10 10 0 1.4 dash -
29 24 4 2.8 bash -
24 20 4 3.3 zsh -
20 12 8 32.7 bumpleak/osh mut
25 25 0 33.3 _bin/cxx-opt+bumproot/osh mut
28 20 8 33.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.5 osh-native mut+alloc
39 30 9 26.7 osh-native mut+alloc+free
28 24 4 7.9 osh-native mut+alloc+free+gc
28 24 4 7.9 osh-native mut+alloc+free+gc+exit
55 42 13 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 34 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
74 74 0 3.1 bash -
169 105 64 53.9 bumpleak/osh mut
179 115 64 56.0 _bin/cxx-opt+bumproot/osh mut
197 126 71 56.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 140 72 47.0 osh-native mut+alloc
221 177 44 48.9 osh-native mut+alloc+free
185 130 55 8.8 osh-native mut+alloc+free+gc
183 124 60 8.7 osh-native mut+alloc+free+gc+exit
235 174 61 63.5 _bin/cxx-opt+nopool/osh mut+alloc
226 190 36 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 9 1 3.4 dash -
20 12 9 4.3 bash -
19 16 3 3.4 zsh -
19 14 5 11.4 bumpleak/osh mut
21 16 6 13.7 _bin/cxx-opt+bumproot/osh mut
21 15 6 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 16 7 10.9 osh-native mut+alloc
23 14 10 10.9 osh-native mut+alloc+free
23 16 7 8.7 osh-native mut+alloc+free+gc
24 19 5 8.9 osh-native mut+alloc+free+gc+exit
26 15 11 12.5 _bin/cxx-opt+nopool/osh mut+alloc
26 14 12 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc