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 36 4 10 12.0 18.0 476,636 1,282 6 408,686 5 204,343 osh-native
parse.configure-coreutils 156 23 60 46.1 51.3 1,653,224 4,764 12 1,069,052 6 798,607 osh-native
parse.abuild 9 1 2 2.6 8.5 101,827 180 2 75,028 1 37,514 osh-native
ex.compute-fib 29 0 1 3.1 8.0 584,088 31,810 12 50,000 0 2,788 osh-native
ex.bashcomp-parse-help 183 0 3 12.3 8.7 1,001,962 27,376 21 50,000 0 3,776 osh-native
ex.abuild-print-help 22 1 2 2.8 8.8 116,032 478 3 85,262 1 42,631 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 -
23 23 0 3.0 bash -
104 64 47 3.4 zsh -
16 12 4 29.4 bumpleak/osh mut
19 15 4 29.4 _bin/cxx-opt+bumproot/osh mut
22 22 0 29.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 18 11 25.2 osh-native mut+alloc
32 28 4 25.4 osh-native mut+alloc+free
36 28 8 18.0 osh-native mut+alloc+free+gc
36 32 4 17.8 osh-native mut+alloc+free+gc+exit
44 20 24 33.0 _bin/cxx-opt+nopool/osh mut+alloc
49 37 11 21.9 _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 21 0 1.6 dash -
77 77 0 3.1 bash -
378 190 209 3.7 zsh -
49 41 8 85.9 bumpleak/osh mut
61 50 11 85.9 _bin/cxx-opt+bumproot/osh mut
70 43 27 84.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 67 31 73.4 osh-native mut+alloc
112 75 36 75.3 osh-native mut+alloc+free
156 128 28 51.3 osh-native mut+alloc+free+gc
155 130 24 52.0 osh-native mut+alloc+free+gc+exit
139 96 44 98.7 _bin/cxx-opt+nopool/osh mut+alloc
213 181 32 74.6 _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.3 dash -
6 6 0 3.0 bash -
8 8 0 3.3 zsh -
7 3 3 11.5 bumpleak/osh mut
7 3 3 10.9 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.0 osh-native mut+alloc
9 9 0 10.1 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
10 5 5 8.5 osh-native mut+alloc+free+gc+exit
12 6 6 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.3 _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 7 3 1.4 dash -
28 28 0 3.0 bash -
24 16 8 3.1 zsh -
19 15 4 32.2 bumpleak/osh mut
26 17 9 31.9 _bin/cxx-opt+bumproot/osh mut
29 25 4 33.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 25 11 26.6 osh-native mut+alloc
38 26 13 27.2 osh-native mut+alloc+free
29 29 0 8.0 osh-native mut+alloc+free+gc
28 20 8 7.9 osh-native mut+alloc+free+gc+exit
54 33 20 36.2 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 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 73 0 3.1 bash -
170 105 65 55.6 bumpleak/osh mut
180 120 60 57.0 _bin/cxx-opt+bumproot/osh mut
197 137 60 58.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 148 64 48.9 osh-native mut+alloc
220 151 68 50.6 osh-native mut+alloc+free
183 142 41 8.7 osh-native mut+alloc+free+gc
184 140 44 8.7 osh-native mut+alloc+free+gc+exit
233 152 80 65.8 _bin/cxx-opt+nopool/osh mut+alloc
211 142 69 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 7 3 3.5 dash -
20 8 12 4.3 bash -
18 5 13 3.5 zsh -
18 13 5 11.3 bumpleak/osh mut
20 18 2 13.6 _bin/cxx-opt+bumproot/osh mut
22 12 10 13.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 9 14 10.9 osh-native mut+alloc
23 11 12 10.9 osh-native mut+alloc+free
22 13 10 8.8 osh-native mut+alloc+free+gc
23 13 10 8.9 osh-native mut+alloc+free+gc+exit
26 15 11 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 16 10 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc