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 11 12.0 18.0 476,679 1,282 6 408,748 5 204,374 osh-native
parse.configure-coreutils 163 25 74 46.1 51.6 1,653,267 4,764 12 1,069,114 6 798,638 osh-native
parse.abuild 10 1 2 2.6 8.5 101,870 180 2 75,090 1 37,545 osh-native
ex.compute-fib 29 0 2 2.6 7.9 584,135 31,810 12 50,000 0 2,822 osh-native
ex.bashcomp-parse-help 180 0 4 10.6 8.7 995,212 27,376 21 50,000 0 3,817 osh-native
ex.abuild-print-help 23 1 2 2.8 8.5 116,279 478 3 85,326 1 42,663 osh-native

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 7 0 1.6 dash -
23 19 4 3.0 bash -
105 63 49 3.4 zsh -
16 10 6 28.7 bumpleak/osh mut
19 12 8 29.0 _bin/cxx-opt+bumproot/osh mut
23 9 13 30.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 19 11 25.0 osh-native mut+alloc
32 24 8 25.6 osh-native mut+alloc+free
37 33 4 18.0 osh-native mut+alloc+free+gc
38 38 0 18.0 osh-native mut+alloc+free+gc+exit
44 24 20 32.8 _bin/cxx-opt+nopool/osh mut+alloc
49 34 15 22.0 _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 17 4 1.6 dash -
78 74 4 3.3 bash -
405 234 196 3.5 zsh -
50 46 4 85.8 bumpleak/osh mut
61 41 20 84.5 _bin/cxx-opt+bumproot/osh mut
70 57 12 86.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 69 29 73.3 osh-native mut+alloc
106 78 27 75.2 osh-native mut+alloc+free
163 126 37 51.6 osh-native mut+alloc+free+gc
161 132 28 52.1 osh-native mut+alloc+free+gc+exit
139 111 28 99.5 _bin/cxx-opt+nopool/osh mut+alloc
205 177 28 72.9 _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 -
7 3 3 11.2 bumpleak/osh mut
8 0 8 12.1 _bin/cxx-opt+bumproot/osh mut
8 8 0 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.1 osh-native mut+alloc
9 5 5 10.2 osh-native mut+alloc+free
10 10 0 8.5 osh-native mut+alloc+free+gc
10 5 5 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _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
11 7 4 1.4 dash -
29 25 4 2.9 bash -
25 14 11 3.3 zsh -
20 19 0 32.2 bumpleak/osh mut
25 17 8 31.7 _bin/cxx-opt+bumproot/osh mut
28 24 4 33.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 25 12 26.3 osh-native mut+alloc
39 27 12 26.7 osh-native mut+alloc+free
29 29 0 7.9 osh-native mut+alloc+free+gc
29 28 0 7.7 osh-native mut+alloc+free+gc+exit
54 50 4 36.0 _bin/cxx-opt+nopool/osh mut+alloc
38 30 9 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 64 8 3.1 bash -
168 104 64 53.9 bumpleak/osh mut
179 126 53 56.4 _bin/cxx-opt+bumproot/osh mut
195 151 44 56.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 137 73 47.1 osh-native mut+alloc
217 173 44 48.8 osh-native mut+alloc+free
180 132 48 8.7 osh-native mut+alloc+free+gc
180 116 64 8.8 osh-native mut+alloc+free+gc+exit
232 132 100 64.1 _bin/cxx-opt+nopool/osh mut+alloc
206 174 32 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 8 1 3.4 dash -
19 12 8 4.3 bash -
18 10 8 3.5 zsh -
20 13 7 12.3 bumpleak/osh mut
21 16 5 12.4 _bin/cxx-opt+bumproot/osh mut
22 23 0 13.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 16 6 11.0 osh-native mut+alloc
23 11 12 11.0 osh-native mut+alloc+free
23 22 2 8.5 osh-native mut+alloc+free+gc
24 10 14 8.9 osh-native mut+alloc+free+gc+exit
25 25 1 12.6 _bin/cxx-opt+nopool/osh mut+alloc
26 21 5 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc