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 10 12.0 18.0 476,636 1,282 6 408,686 5 204,343 osh-native
parse.configure-coreutils 144 22 57 46.1 51.3 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 28 0 2 3.1 7.7 584,088 31,810 12 50,000 0 2,788 osh-native
ex.bashcomp-parse-help 182 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.6 dash -
23 19 4 3.1 bash -
104 66 44 3.3 zsh -
16 16 0 28.9 bumpleak/osh mut
20 12 8 28.5 _bin/cxx-opt+bumproot/osh mut
22 7 15 30.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 15 15 25.0 osh-native mut+alloc
31 19 12 25.3 osh-native mut+alloc+free
36 27 8 18.0 osh-native mut+alloc+free+gc
36 24 12 18.0 osh-native mut+alloc+free+gc+exit
43 23 19 32.4 _bin/cxx-opt+nopool/osh mut+alloc
46 31 15 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 21 0 1.6 dash -
79 78 0 3.3 bash -
374 211 185 3.5 zsh -
50 38 11 85.1 bumpleak/osh mut
60 44 16 84.7 _bin/cxx-opt+bumproot/osh mut
70 54 16 84.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 68 28 73.4 osh-native mut+alloc
108 76 32 75.1 osh-native mut+alloc+free
144 120 24 51.3 osh-native mut+alloc+free+gc
149 141 8 52.3 osh-native mut+alloc+free+gc+exit
139 95 44 99.2 _bin/cxx-opt+nopool/osh mut+alloc
206 173 32 72.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 2 0 1.4 dash -
6 3 3 3.0 bash -
8 0 7 3.4 zsh -
6 6 0 11.0 bumpleak/osh mut
7 3 3 12.1 _bin/cxx-opt+bumproot/osh mut
7 7 0 10.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.0 osh-native mut+alloc
8 4 4 10.1 osh-native mut+alloc+free
9 9 0 8.3 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
11 11 0 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 7 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 10 0 1.4 dash -
29 25 4 2.9 bash -
24 16 8 3.3 zsh -
20 20 0 32.5 bumpleak/osh mut
26 25 0 33.7 _bin/cxx-opt+bumproot/osh mut
29 17 12 32.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 20 16 26.7 osh-native mut+alloc
38 30 8 27.0 osh-native mut+alloc+free
28 24 4 7.7 osh-native mut+alloc+free+gc
28 28 0 7.7 osh-native mut+alloc+free+gc+exit
53 33 20 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 33 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
73 64 8 3.1 bash -
169 124 44 56.6 bumpleak/osh mut
179 114 65 56.4 _bin/cxx-opt+bumproot/osh mut
196 148 48 57.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 163 48 48.7 osh-native mut+alloc
219 134 85 50.7 osh-native mut+alloc+free
182 118 63 8.7 osh-native mut+alloc+free+gc
183 135 48 8.7 osh-native mut+alloc+free+gc+exit
234 125 109 64.8 _bin/cxx-opt+nopool/osh mut+alloc
211 151 60 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 5 5 3.4 dash -
19 14 6 4.3 bash -
18 7 12 3.4 zsh -
18 6 13 13.1 bumpleak/osh mut
19 13 6 13.7 _bin/cxx-opt+bumproot/osh mut
21 13 8 13.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 13 9 10.7 osh-native mut+alloc
22 20 3 11.0 osh-native mut+alloc+free
22 17 6 8.8 osh-native mut+alloc+free+gc
23 17 6 8.7 osh-native mut+alloc+free+gc+exit
24 17 8 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 24 2 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc