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,682 1,282 6 408,752 5 204,376 osh-native
parse.configure-coreutils 160 28 72 46.1 51.4 1,653,270 4,764 12 1,069,118 6 798,640 osh-native
parse.abuild 9 1 1 2.6 8.5 101,873 180 2 75,094 1 37,547 osh-native
ex.compute-fib 28 0 1 2.6 7.9 584,138 31,810 12 50,000 0 2,824 osh-native
ex.bashcomp-parse-help 182 0 3 10.6 8.7 995,215 27,376 21 50,000 0 3,819 osh-native
ex.abuild-print-help 23 1 2 2.8 8.9 116,282 478 3 85,330 1 42,665 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 3.1 bash -
105 57 55 3.4 zsh -
16 12 4 29.3 bumpleak/osh mut
20 16 4 29.6 _bin/cxx-opt+bumproot/osh mut
22 22 0 29.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 22 7 25.3 osh-native mut+alloc
31 20 12 25.6 osh-native mut+alloc+free
35 23 12 18.0 osh-native mut+alloc+free+gc
37 29 8 17.8 osh-native mut+alloc+free+gc+exit
45 16 28 32.0 _bin/cxx-opt+nopool/osh mut+alloc
49 37 11 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 22 0 1.6 dash -
77 73 4 3.3 bash -
378 236 163 3.5 zsh -
49 45 4 84.8 bumpleak/osh mut
59 55 4 84.6 _bin/cxx-opt+bumproot/osh mut
69 48 20 84.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 63 35 73.3 osh-native mut+alloc
107 70 37 75.3 osh-native mut+alloc+free
160 132 28 51.4 osh-native mut+alloc+free+gc
164 132 32 52.2 osh-native mut+alloc+free+gc+exit
137 93 44 97.6 _bin/cxx-opt+nopool/osh mut+alloc
232 208 24 73.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 0 2 1.4 dash -
6 6 0 2.9 bash -
8 4 4 3.3 zsh -
6 6 0 12.3 bumpleak/osh mut
8 4 4 11.9 _bin/cxx-opt+bumproot/osh mut
8 0 7 11.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 9.8 osh-native mut+alloc
9 9 0 10.2 osh-native mut+alloc+free
9 6 3 8.5 osh-native mut+alloc+free+gc
9 9 0 8.4 osh-native mut+alloc+free+gc+exit
12 4 8 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.6 dash -
28 28 0 2.9 bash -
24 20 4 3.1 zsh -
19 8 12 32.3 bumpleak/osh mut
26 25 0 33.1 _bin/cxx-opt+bumproot/osh mut
29 18 11 32.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 33 4 26.2 osh-native mut+alloc
38 23 15 26.5 osh-native mut+alloc+free
28 24 4 7.9 osh-native mut+alloc+free+gc
28 28 0 7.9 osh-native mut+alloc+free+gc+exit
55 35 20 36.2 _bin/cxx-opt+nopool/osh mut+alloc
37 33 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
72 64 8 3.0 bash -
168 124 44 55.1 bumpleak/osh mut
179 111 68 55.5 _bin/cxx-opt+bumproot/osh mut
196 108 88 55.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
237 185 52 47.1 osh-native mut+alloc
221 128 92 48.9 osh-native mut+alloc+free
182 118 63 8.7 osh-native mut+alloc+free+gc
185 145 40 8.4 osh-native mut+alloc+free+gc+exit
232 172 60 63.8 _bin/cxx-opt+nopool/osh mut+alloc
211 143 67 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 6 4 3.4 dash -
20 19 1 4.5 bash -
18 10 9 3.5 zsh -
19 10 9 13.2 bumpleak/osh mut
22 12 11 13.4 _bin/cxx-opt+bumproot/osh mut
20 17 4 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 16 7 10.9 osh-native mut+alloc
23 15 9 10.9 osh-native mut+alloc+free
23 20 3 8.9 osh-native mut+alloc+free+gc
23 13 10 8.9 osh-native mut+alloc+free+gc+exit
25 20 6 12.4 _bin/cxx-opt+nopool/osh mut+alloc
26 21 6 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc