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.6 476,691 1,282 6 408,764 5 204,382 osh-native
parse.configure-coreutils 154 24 67 46.1 51.7 1,653,279 4,764 12 1,069,130 6 798,646 osh-native
parse.abuild 10 1 1 2.6 8.4 101,882 180 2 75,106 1 37,553 osh-native
ex.compute-fib 28 0 1 2.6 8.0 584,147 31,810 12 50,000 0 2,829 osh-native
ex.bashcomp-parse-help 182 0 4 10.6 8.7 995,224 27,376 21 50,000 0 3,825 osh-native
ex.abuild-print-help 23 1 2 2.8 8.9 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 3 3 1.6 dash -
23 23 0 2.9 bash -
105 61 51 3.4 zsh -
16 12 4 28.1 bumpleak/osh mut
19 11 8 28.9 _bin/cxx-opt+bumproot/osh mut
23 13 9 30.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 22 7 25.2 osh-native mut+alloc
32 14 18 25.6 osh-native mut+alloc+free
35 27 8 17.6 osh-native mut+alloc+free+gc
38 37 0 18.0 osh-native mut+alloc+free+gc+exit
44 24 20 32.2 _bin/cxx-opt+nopool/osh mut+alloc
52 40 12 22.4 _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 14 7 1.4 dash -
78 74 4 3.3 bash -
380 214 187 3.5 zsh -
48 48 0 84.8 bumpleak/osh mut
61 53 8 85.5 _bin/cxx-opt+bumproot/osh mut
71 39 31 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 77 20 73.3 osh-native mut+alloc
106 61 45 75.2 osh-native mut+alloc+free
154 145 8 51.7 osh-native mut+alloc+free+gc
160 132 28 50.6 osh-native mut+alloc+free+gc+exit
138 83 55 97.8 _bin/cxx-opt+nopool/osh mut+alloc
229 189 40 74.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 2 0 1.3 dash -
6 6 0 2.9 bash -
8 8 0 3.4 zsh -
6 6 0 10.3 bumpleak/osh mut
7 4 4 11.8 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 9.8 osh-native mut+alloc
9 9 0 10.0 osh-native mut+alloc+free
10 0 10 8.4 osh-native mut+alloc+free+gc
10 6 3 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 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.4 dash -
29 28 0 2.9 bash -
24 20 4 3.3 zsh -
19 19 0 31.0 bumpleak/osh mut
24 16 8 31.4 _bin/cxx-opt+bumproot/osh mut
28 24 4 33.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 33 4 26.3 osh-native mut+alloc
40 20 20 26.6 osh-native mut+alloc+free
28 24 4 8.0 osh-native mut+alloc+free+gc
29 28 0 8.0 osh-native mut+alloc+free+gc+exit
54 46 8 35.8 _bin/cxx-opt+nopool/osh mut+alloc
38 35 4 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
73 69 4 3.1 bash -
167 123 44 55.2 bumpleak/osh mut
177 110 67 56.2 _bin/cxx-opt+bumproot/osh mut
196 124 72 56.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 136 76 47.0 osh-native mut+alloc
219 147 71 48.9 osh-native mut+alloc+free
182 145 36 8.7 osh-native mut+alloc+free+gc
185 120 64 8.8 osh-native mut+alloc+free+gc+exit
232 151 80 63.7 _bin/cxx-opt+nopool/osh mut+alloc
209 138 71 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.5 dash -
20 13 8 4.3 bash -
18 9 10 3.5 zsh -
20 13 8 12.5 bumpleak/osh mut
20 10 11 13.4 _bin/cxx-opt+bumproot/osh mut
20 17 4 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 16 6 10.7 osh-native mut+alloc
23 13 10 10.9 osh-native mut+alloc+free
23 14 10 8.9 osh-native mut+alloc+free+gc
24 17 7 8.7 osh-native mut+alloc+free+gc+exit
26 16 10 12.5 _bin/cxx-opt+nopool/osh mut+alloc
26 15 11 9.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc