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 9 12.0 17.8 476,682 1,282 6 408,752 5 204,376 osh-native
parse.configure-coreutils 179 31 88 46.1 51.6 1,653,270 4,764 12 1,069,118 6 798,640 osh-native
parse.abuild 10 1 1 2.6 8.4 101,873 180 2 75,094 1 37,547 osh-native
ex.compute-fib 28 0 1 2.6 8.0 584,138 31,810 12 50,000 0 2,824 osh-native
ex.bashcomp-parse-help 182 0 4 10.6 8.4 995,215 27,376 21 50,000 0 3,819 osh-native
ex.abuild-print-help 23 1 2 2.8 8.9 116,282 478 3 85,330 1 42,665 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.6 dash -
24 20 4 3.0 bash -
107 56 56 3.4 zsh -
17 13 4 29.3 bumpleak/osh mut
20 16 4 29.6 _bin/cxx-opt+bumproot/osh mut
22 15 7 30.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 19 12 25.2 osh-native mut+alloc
33 28 4 25.6 osh-native mut+alloc+free
36 36 0 17.8 osh-native mut+alloc+free+gc
38 30 7 17.8 osh-native mut+alloc+free+gc+exit
44 32 12 32.7 _bin/cxx-opt+nopool/osh mut+alloc
51 38 13 22.2 _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 21 0 1.6 dash -
78 78 0 3.1 bash -
383 206 199 3.5 zsh -
51 47 4 85.1 bumpleak/osh mut
61 48 12 85.0 _bin/cxx-opt+bumproot/osh mut
71 62 8 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
100 52 48 73.3 osh-native mut+alloc
109 64 44 75.4 osh-native mut+alloc+free
179 138 41 51.6 osh-native mut+alloc+free+gc
180 140 40 52.2 osh-native mut+alloc+free+gc+exit
149 82 66 98.6 _bin/cxx-opt+nopool/osh mut+alloc
261 229 32 72.8 _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 2.9 bash -
8 8 0 3.3 zsh -
7 7 0 11.6 bumpleak/osh mut
7 7 0 12.6 _bin/cxx-opt+bumproot/osh mut
8 8 0 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 9.7 osh-native mut+alloc
9 3 6 10.1 osh-native mut+alloc+free
10 10 0 8.4 osh-native mut+alloc+free+gc
9 9 0 8.8 osh-native mut+alloc+free+gc+exit
13 12 0 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.3 _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 -
30 30 0 2.8 bash -
24 20 4 3.3 zsh -
19 0 19 31.6 bumpleak/osh mut
26 22 4 32.5 _bin/cxx-opt+bumproot/osh mut
28 24 4 31.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
38 19 19 26.5 osh-native mut+alloc
38 21 17 26.7 osh-native mut+alloc+free
28 24 4 8.0 osh-native mut+alloc+free+gc
28 28 0 7.9 osh-native mut+alloc+free+gc+exit
55 39 16 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.3 _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 65 8 3.1 bash -
170 129 40 54.2 bumpleak/osh mut
182 123 59 56.2 _bin/cxx-opt+bumproot/osh mut
193 100 92 56.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 134 79 46.9 osh-native mut+alloc
222 125 97 48.9 osh-native mut+alloc+free
182 134 47 8.4 osh-native mut+alloc+free+gc
181 129 52 8.7 osh-native mut+alloc+free+gc+exit
232 132 100 63.5 _bin/cxx-opt+nopool/osh mut+alloc
216 180 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 8 2 3.5 dash -
20 14 6 4.3 bash -
18 10 8 3.5 zsh -
18 7 12 11.4 bumpleak/osh mut
22 11 11 13.0 _bin/cxx-opt+bumproot/osh mut
20 12 10 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 15 6 10.9 osh-native mut+alloc
23 13 10 11.0 osh-native mut+alloc+free
23 18 5 8.9 osh-native mut+alloc+free+gc
23 20 4 8.9 osh-native mut+alloc+free+gc+exit
25 19 7 12.6 _bin/cxx-opt+nopool/osh mut+alloc
26 16 10 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc