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 35 3 9 12.0 17.8 476,687 1,282 6 408,758 5 204,379 osh-native
parse.configure-coreutils 167 26 78 46.1 51.6 1,653,275 4,764 12 1,069,124 6 798,643 osh-native
parse.abuild 10 1 1 2.6 8.4 101,878 180 2 75,100 1 37,550 osh-native
ex.compute-fib 28 0 1 2.6 8.0 584,143 31,810 12 50,000 0 2,827 osh-native
ex.bashcomp-parse-help 183 0 4 10.6 8.7 995,220 27,376 21 50,000 0 3,822 osh-native
ex.abuild-print-help 23 1 2 2.8 9.0 116,287 478 3 85,336 1 42,668 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 23 0 3.1 bash -
105 60 52 3.4 zsh -
16 8 8 28.5 bumpleak/osh mut
20 12 8 28.9 _bin/cxx-opt+bumproot/osh mut
22 19 4 30.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 27 4 25.0 osh-native mut+alloc
32 20 12 25.6 osh-native mut+alloc+free
35 20 16 17.8 osh-native mut+alloc+free+gc
38 25 12 18.0 osh-native mut+alloc+free+gc+exit
43 24 20 33.4 _bin/cxx-opt+nopool/osh mut+alloc
49 41 8 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 18 4 1.6 dash -
78 70 8 3.1 bash -
377 204 194 3.5 zsh -
50 37 12 84.6 bumpleak/osh mut
60 51 8 85.8 _bin/cxx-opt+bumproot/osh mut
72 67 4 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 73 24 73.3 osh-native mut+alloc
105 69 36 75.1 osh-native mut+alloc+free
167 142 24 51.6 osh-native mut+alloc+free+gc
163 132 32 52.1 osh-native mut+alloc+free+gc+exit
140 96 44 98.1 _bin/cxx-opt+nopool/osh mut+alloc
220 188 32 72.5 _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.4 dash -
6 6 0 3.0 bash -
8 0 7 3.3 zsh -
6 0 6 11.2 bumpleak/osh mut
7 0 7 11.4 _bin/cxx-opt+bumproot/osh mut
7 7 0 10.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.0 osh-native mut+alloc
9 4 4 10.0 osh-native mut+alloc+free
10 5 5 8.4 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 8 4 9.6 _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 5 5 1.6 dash -
29 29 0 2.9 bash -
24 16 8 3.4 zsh -
20 5 15 32.1 bumpleak/osh mut
26 21 4 32.0 _bin/cxx-opt+bumproot/osh mut
29 29 0 33.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 29 8 26.3 osh-native mut+alloc
38 29 8 26.7 osh-native mut+alloc+free
28 28 0 8.0 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
54 45 8 36.5 _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
74 62 12 3.1 bash -
167 98 69 54.2 bumpleak/osh mut
180 124 56 56.2 _bin/cxx-opt+bumproot/osh mut
194 125 68 56.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 135 76 47.1 osh-native mut+alloc
221 125 97 48.9 osh-native mut+alloc+free
183 130 53 8.7 osh-native mut+alloc+free+gc
183 118 65 8.7 osh-native mut+alloc+free+gc+exit
230 158 73 63.3 _bin/cxx-opt+nopool/osh mut+alloc
210 145 64 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 8 2 3.5 dash -
19 8 12 4.3 bash -
18 9 10 3.4 zsh -
19 11 8 11.4 bumpleak/osh mut
22 12 9 13.1 _bin/cxx-opt+bumproot/osh mut
21 15 7 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 13 9 10.9 osh-native mut+alloc
23 13 10 10.7 osh-native mut+alloc+free
23 15 8 9.0 osh-native mut+alloc+free+gc
24 18 6 8.8 osh-native mut+alloc+free+gc+exit
26 15 11 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 13 14 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc