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 39 5 12 12.0 17.8 476,691 1,282 6 408,764 5 204,382 osh-native
parse.configure-coreutils 167 28 78 46.1 51.3 1,653,279 4,764 12 1,069,130 6 798,646 osh-native
parse.abuild 9 1 1 2.6 8.5 101,882 180 2 75,106 1 37,553 osh-native
ex.compute-fib 28 0 2 2.6 7.9 584,147 31,810 12 50,000 0 2,829 osh-native
ex.bashcomp-parse-help 180 0 3 10.6 8.8 995,224 27,376 21 50,000 0 3,825 osh-native
ex.abuild-print-help 23 1 2 2.8 8.8 116,291 478 3 85,342 1 42,671 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 -
106 74 39 3.3 zsh -
16 10 6 29.6 bumpleak/osh mut
20 20 0 28.9 _bin/cxx-opt+bumproot/osh mut
23 23 0 29.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 26 4 25.2 osh-native mut+alloc
33 21 11 25.4 osh-native mut+alloc+free
39 27 11 17.8 osh-native mut+alloc+free+gc
36 28 8 18.0 osh-native mut+alloc+free+gc+exit
44 32 12 33.2 _bin/cxx-opt+nopool/osh mut+alloc
50 50 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 -
79 74 4 3.0 bash -
377 237 161 3.5 zsh -
49 37 11 84.0 bumpleak/osh mut
60 56 4 85.1 _bin/cxx-opt+bumproot/osh mut
71 63 8 86.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
100 52 48 73.4 osh-native mut+alloc
107 78 29 75.1 osh-native mut+alloc+free
167 147 20 51.3 osh-native mut+alloc+free+gc
165 156 8 50.6 osh-native mut+alloc+free+gc+exit
140 88 52 97.6 _bin/cxx-opt+nopool/osh mut+alloc
233 213 20 72.2 _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 3 3 2.9 bash -
8 0 7 3.3 zsh -
6 6 0 10.8 bumpleak/osh mut
7 4 4 11.7 _bin/cxx-opt+bumproot/osh mut
8 4 4 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.0 osh-native mut+alloc
9 9 0 10.0 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 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
10 10 0 1.6 dash -
28 28 0 3.0 bash -
24 20 4 3.1 zsh -
19 19 0 31.6 bumpleak/osh mut
26 18 7 32.6 _bin/cxx-opt+bumproot/osh mut
30 17 13 33.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 16 20 26.3 osh-native mut+alloc
39 27 12 26.6 osh-native mut+alloc+free
28 24 4 7.9 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
55 39 16 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 30 7 9.5 _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.0 bash -
167 123 44 54.8 bumpleak/osh mut
179 136 44 55.1 _bin/cxx-opt+bumproot/osh mut
194 127 67 56.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 109 101 47.1 osh-native mut+alloc
217 141 76 48.9 osh-native mut+alloc+free
180 112 68 8.8 osh-native mut+alloc+free+gc
183 115 68 8.4 osh-native mut+alloc+free+gc+exit
234 153 80 62.5 _bin/cxx-opt+nopool/osh mut+alloc
209 144 64 10.1 _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.5 dash -
20 17 3 4.3 bash -
18 15 4 3.4 zsh -
18 17 1 11.4 bumpleak/osh mut
20 15 6 13.6 _bin/cxx-opt+bumproot/osh mut
22 15 8 13.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 14 8 10.7 osh-native mut+alloc
23 14 10 10.7 osh-native mut+alloc+free
23 23 1 8.8 osh-native mut+alloc+free+gc
24 17 7 9.0 osh-native mut+alloc+free+gc+exit
26 18 9 12.5 _bin/cxx-opt+nopool/osh mut+alloc
26 24 2 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc