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 37 4 10 12.0 18.0 476,694 1,282 6 408,764 5 204,382 osh-native
parse.configure-coreutils 160 26 72 46.1 51.4 1,653,282 4,764 12 1,069,130 6 798,646 osh-native
parse.abuild 9 1 1 2.6 8.4 101,885 180 2 75,106 1 37,553 osh-native
ex.compute-fib 28 0 1 2.4 7.9 584,150 31,810 12 50,000 0 2,829 osh-native
ex.bashcomp-parse-help 182 0 3 10.3 8.7 995,227 27,376 21 50,000 0 3,825 osh-native
ex.abuild-print-help 22 1 2 2.8 9.0 116,294 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 -
24 24 0 3.0 bash -
106 71 42 3.4 zsh -
16 8 8 29.1 bumpleak/osh mut
19 15 4 29.1 _bin/cxx-opt+bumproot/osh mut
22 18 4 29.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 26 4 25.0 osh-native mut+alloc
32 12 20 25.4 osh-native mut+alloc+free
37 33 4 18.0 osh-native mut+alloc+free+gc
36 28 8 18.1 osh-native mut+alloc+free+gc+exit
43 23 20 31.8 _bin/cxx-opt+nopool/osh mut+alloc
49 32 16 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
22 21 0 1.6 dash -
78 78 0 3.1 bash -
380 233 170 3.8 zsh -
49 45 4 84.9 bumpleak/osh mut
59 50 8 85.6 _bin/cxx-opt+bumproot/osh mut
71 63 8 85.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 66 31 73.5 osh-native mut+alloc
105 74 31 75.4 osh-native mut+alloc+free
160 140 20 51.4 osh-native mut+alloc+free+gc
160 136 24 50.6 osh-native mut+alloc+free+gc+exit
140 104 36 98.7 _bin/cxx-opt+nopool/osh mut+alloc
225 200 24 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.8 bash -
8 4 4 3.3 zsh -
6 6 0 10.6 bumpleak/osh mut
7 3 3 10.8 _bin/cxx-opt+bumproot/osh mut
8 4 4 11.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 0 8 10.1 osh-native mut+alloc
9 9 0 10.0 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 12 0 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 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
11 10 0 1.4 dash -
28 21 7 3.0 bash -
23 20 4 3.3 zsh -
19 15 4 31.4 bumpleak/osh mut
26 22 4 31.8 _bin/cxx-opt+bumproot/osh mut
28 16 12 32.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 15 22 26.2 osh-native mut+alloc
39 38 0 26.5 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
28 24 4 7.9 osh-native mut+alloc+free+gc+exit
54 29 25 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 33 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
72 60 12 3.3 bash -
170 93 77 54.1 bumpleak/osh mut
180 116 64 55.7 _bin/cxx-opt+bumproot/osh mut
191 131 60 56.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 130 81 47.0 osh-native mut+alloc
220 136 84 48.6 osh-native mut+alloc+free
182 121 60 8.7 osh-native mut+alloc+free+gc
182 133 48 8.7 osh-native mut+alloc+free+gc+exit
233 126 106 62.5 _bin/cxx-opt+nopool/osh mut+alloc
207 163 44 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 15 5 4.3 bash -
18 10 8 3.4 zsh -
18 11 7 11.7 bumpleak/osh mut
19 12 8 12.3 _bin/cxx-opt+bumproot/osh mut
20 12 9 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 15 6 11.0 osh-native mut+alloc
22 16 7 11.0 osh-native mut+alloc+free
22 16 7 9.0 osh-native mut+alloc+free+gc
23 12 11 8.9 osh-native mut+alloc+free+gc+exit
25 15 10 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 10 15 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc