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 3 9 12.0 17.8 476,636 1,282 6 408,686 5 204,343 osh-native
parse.configure-coreutils 157 25 68 46.1 51.5 1,653,224 4,764 12 1,069,052 6 798,607 osh-native
parse.abuild 9 1 1 2.6 8.3 101,827 180 2 75,028 1 37,514 osh-native
ex.compute-fib 29 0 2 3.1 7.9 584,088 31,810 12 50,000 0 2,788 osh-native
ex.bashcomp-parse-help 184 0 4 12.3 8.7 1,001,962 27,376 21 50,000 0 3,776 osh-native
ex.abuild-print-help 23 1 2 2.8 8.7 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
7 6 0 1.6 dash -
23 19 4 3.0 bash -
105 56 56 3.3 zsh -
16 12 4 28.6 bumpleak/osh mut
20 12 8 29.8 _bin/cxx-opt+bumproot/osh mut
23 13 9 30.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 15 15 25.0 osh-native mut+alloc
32 18 14 25.4 osh-native mut+alloc+free
36 31 4 17.8 osh-native mut+alloc+free+gc
37 24 12 18.0 osh-native mut+alloc+free+gc+exit
44 32 12 32.8 _bin/cxx-opt+nopool/osh mut+alloc
52 43 9 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 -
80 80 0 3.3 bash -
377 183 216 3.5 zsh -
49 41 8 85.2 bumpleak/osh mut
60 48 12 84.7 _bin/cxx-opt+bumproot/osh mut
71 55 16 85.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
100 60 40 73.3 osh-native mut+alloc
107 73 33 75.1 osh-native mut+alloc+free
157 116 40 51.5 osh-native mut+alloc+free+gc
159 131 28 52.2 osh-native mut+alloc+free+gc+exit
142 110 32 97.9 _bin/cxx-opt+nopool/osh mut+alloc
221 196 24 70.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 -
8 8 0 3.0 bash -
8 4 4 3.1 zsh -
6 3 3 11.2 bumpleak/osh mut
7 4 4 11.8 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 0 9 9.8 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
9 9 0 8.3 osh-native mut+alloc+free+gc
9 5 5 8.3 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
12 11 0 1.6 dash -
28 28 0 2.8 bash -
24 20 4 3.3 zsh -
20 8 12 31.0 bumpleak/osh mut
27 27 0 32.6 _bin/cxx-opt+bumproot/osh mut
29 29 0 33.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 33 4 26.6 osh-native mut+alloc
40 36 4 27.1 osh-native mut+alloc+free
29 29 0 7.9 osh-native mut+alloc+free+gc
28 28 0 7.9 osh-native mut+alloc+free+gc+exit
54 35 19 36.0 _bin/cxx-opt+nopool/osh mut+alloc
38 38 0 9.2 _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 69 4 3.0 bash -
170 109 61 56.5 bumpleak/osh mut
181 129 52 57.2 _bin/cxx-opt+bumproot/osh mut
197 140 56 58.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 165 48 48.9 osh-native mut+alloc
222 137 85 50.6 osh-native mut+alloc+free
184 127 56 8.7 osh-native mut+alloc+free+gc
183 143 40 8.7 osh-native mut+alloc+free+gc+exit
235 149 85 65.5 _bin/cxx-opt+nopool/osh mut+alloc
213 154 59 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.4 dash -
20 13 7 4.3 bash -
18 11 7 3.5 zsh -
19 11 8 11.9 bumpleak/osh mut
21 15 7 12.8 _bin/cxx-opt+bumproot/osh mut
21 11 11 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 11 11 10.7 osh-native mut+alloc
23 16 8 10.7 osh-native mut+alloc+free
23 12 11 8.7 osh-native mut+alloc+free+gc
34 29 6 8.9 osh-native mut+alloc+free+gc+exit
25 18 7 12.5 _bin/cxx-opt+nopool/osh mut+alloc
26 24 3 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc