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 18.0 476,636 1,282 6 408,686 5 204,343 osh-native
parse.configure-coreutils 158 30 69 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 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 23 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
7 6 0 1.6 dash -
23 23 0 3.0 bash -
104 56 54 3.4 zsh -
16 16 0 29.1 bumpleak/osh mut
20 16 4 28.4 _bin/cxx-opt+bumproot/osh mut
23 15 8 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 22 7 25.0 osh-native mut+alloc
31 31 0 25.4 osh-native mut+alloc+free
36 28 8 18.0 osh-native mut+alloc+free+gc
36 28 8 18.0 osh-native mut+alloc+free+gc+exit
43 20 24 33.0 _bin/cxx-opt+nopool/osh mut+alloc
49 38 11 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
21 17 4 1.6 dash -
76 76 0 3.3 bash -
376 184 212 3.5 zsh -
49 45 4 85.6 bumpleak/osh mut
61 57 4 84.9 _bin/cxx-opt+bumproot/osh mut
71 59 12 86.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 64 36 73.3 osh-native mut+alloc
107 75 32 75.1 osh-native mut+alloc+free
158 138 20 51.5 osh-native mut+alloc+free+gc
172 140 32 52.3 osh-native mut+alloc+free+gc+exit
139 95 44 98.9 _bin/cxx-opt+nopool/osh mut+alloc
215 191 24 73.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 2 0 1.3 dash -
6 6 0 3.0 bash -
8 8 0 3.3 zsh -
6 0 6 11.3 bumpleak/osh mut
7 4 4 11.3 _bin/cxx-opt+bumproot/osh mut
8 8 0 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 9.8 osh-native mut+alloc
9 3 6 10.0 osh-native mut+alloc+free
9 4 4 8.3 osh-native mut+alloc+free+gc
9 9 0 8.4 osh-native mut+alloc+free+gc+exit
11 11 0 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 4 8 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
11 11 0 1.6 dash -
30 29 0 2.9 bash -
24 20 4 3.4 zsh -
20 16 4 32.7 bumpleak/osh mut
26 26 0 33.2 _bin/cxx-opt+bumproot/osh mut
29 25 4 31.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 22 15 26.7 osh-native mut+alloc
39 31 8 27.0 osh-native mut+alloc+free
29 29 0 8.0 osh-native mut+alloc+free+gc
30 26 4 7.7 osh-native mut+alloc+free+gc+exit
54 23 31 36.0 _bin/cxx-opt+nopool/osh mut+alloc
38 34 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 72 0 3.0 bash -
170 130 41 55.8 bumpleak/osh mut
180 127 52 56.6 _bin/cxx-opt+bumproot/osh mut
195 122 73 57.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 116 96 48.7 osh-native mut+alloc
219 133 85 50.7 osh-native mut+alloc+free
183 147 36 8.7 osh-native mut+alloc+free+gc
182 115 67 8.5 osh-native mut+alloc+free+gc+exit
234 162 71 64.6 _bin/cxx-opt+nopool/osh mut+alloc
210 155 56 10.2 _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.4 dash -
19 15 5 4.2 bash -
18 11 8 3.5 zsh -
18 13 5 11.1 bumpleak/osh mut
21 17 4 12.4 _bin/cxx-opt+bumproot/osh mut
20 15 6 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 13 9 10.6 osh-native mut+alloc
22 18 5 10.9 osh-native mut+alloc+free
23 16 7 8.8 osh-native mut+alloc+free+gc
23 11 12 8.7 osh-native mut+alloc+free+gc+exit
25 16 9 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 17 8 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc