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 18.0 476,691 1,282 6 408,764 5 204,382 osh-native
parse.configure-coreutils 161 26 73 46.1 51.7 1,653,279 4,764 12 1,069,130 6 798,646 osh-native
parse.abuild 9 1 1 2.6 8.3 101,882 180 2 75,106 1 37,553 osh-native
ex.compute-fib 27 0 1 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 24 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 6 0 1.6 dash -
23 19 4 3.1 bash -
104 64 46 3.5 zsh -
17 12 4 29.1 bumpleak/osh mut
20 16 4 29.7 _bin/cxx-opt+bumproot/osh mut
22 22 0 28.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 19 11 25.2 osh-native mut+alloc
32 16 16 25.6 osh-native mut+alloc+free
35 27 8 18.0 osh-native mut+alloc+free+gc
37 25 11 17.8 osh-native mut+alloc+free+gc+exit
44 32 12 32.2 _bin/cxx-opt+nopool/osh mut+alloc
51 31 19 21.8 _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 -
77 73 4 3.1 bash -
379 188 214 3.5 zsh -
50 43 8 86.0 bumpleak/osh mut
61 44 16 85.2 _bin/cxx-opt+bumproot/osh mut
70 53 16 85.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 61 36 73.3 osh-native mut+alloc
105 65 40 75.3 osh-native mut+alloc+free
161 144 16 51.7 osh-native mut+alloc+free+gc
161 136 24 50.6 osh-native mut+alloc+free+gc+exit
138 89 49 97.8 _bin/cxx-opt+nopool/osh mut+alloc
236 208 28 74.0 _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 4 4 3.3 zsh -
6 6 0 10.3 bumpleak/osh mut
6 3 3 12.5 _bin/cxx-opt+bumproot/osh mut
7 7 0 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.0 osh-native mut+alloc
9 5 5 9.8 osh-native mut+alloc+free
9 5 5 8.3 osh-native mut+alloc+free+gc
10 5 5 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 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.4 dash -
29 29 0 2.9 bash -
24 16 8 3.1 zsh -
20 12 8 31.9 bumpleak/osh mut
25 21 4 31.4 _bin/cxx-opt+bumproot/osh mut
27 19 8 32.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
35 32 4 26.2 osh-native mut+alloc
39 25 13 26.6 osh-native mut+alloc+free
27 27 0 7.9 osh-native mut+alloc+free+gc
28 23 4 7.7 osh-native mut+alloc+free+gc+exit
54 45 8 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 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
73 65 8 3.1 bash -
167 88 80 55.0 bumpleak/osh mut
180 116 64 55.7 _bin/cxx-opt+bumproot/osh mut
193 140 52 56.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
209 120 88 47.1 osh-native mut+alloc
217 124 92 48.9 osh-native mut+alloc+free
180 128 52 8.8 osh-native mut+alloc+free+gc
181 136 44 8.8 osh-native mut+alloc+free+gc+exit
232 152 80 64.5 _bin/cxx-opt+nopool/osh mut+alloc
209 144 64 9.9 _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 4 6 3.4 dash -
20 10 10 4.5 bash -
19 10 9 3.4 zsh -
19 14 5 11.7 bumpleak/osh mut
21 15 6 13.4 _bin/cxx-opt+bumproot/osh mut
21 17 4 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 20 3 10.6 osh-native mut+alloc
23 15 8 11.1 osh-native mut+alloc+free
24 18 5 8.9 osh-native mut+alloc+free+gc
24 18 6 8.8 osh-native mut+alloc+free+gc+exit
25 17 8 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 17 9 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc