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 40 6 13 12.0 18.0 476,714 1,282 6 408,802 5 204,401 osh-native
parse.configure-coreutils 179 29 88 44.6 50.0 1,653,302 4,764 12 1,030,686 6 769,427 osh-native
parse.abuild 10 1 2 2.6 8.4 101,905 180 2 75,144 1 37,572 osh-native
ex.compute-fib 28 0 1 2.4 7.9 584,170 31,810 12 50,000 0 2,848 osh-native
ex.bashcomp-parse-help 181 0 4 10.3 8.5 995,247 27,376 21 50,000 0 3,829 osh-native
ex.abuild-print-help 23 1 2 2.8 8.9 116,314 478 3 85,380 1 42,690 osh-native

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 3 3 1.6 dash -
24 17 7 3.0 bash -
105 47 64 3.3 zsh -
16 12 4 28.1 bumpleak/osh mut
21 20 0 28.4 _bin/cxx-opt+bumproot/osh mut
23 19 4 28.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 12 19 25.0 osh-native mut+alloc
33 25 8 25.6 osh-native mut+alloc+free
40 32 8 18.0 osh-native mut+alloc+free+gc
40 32 8 18.1 osh-native mut+alloc+free+gc+exit
44 20 24 32.9 _bin/cxx-opt+nopool/osh mut+alloc
55 43 12 22.3 _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 -
79 75 4 3.3 bash -
385 210 197 3.5 zsh -
50 42 8 85.3 bumpleak/osh mut
61 45 15 86.1 _bin/cxx-opt+bumproot/osh mut
71 63 8 85.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
100 68 32 73.3 osh-native mut+alloc
107 71 36 75.3 osh-native mut+alloc+free
179 147 32 50.0 osh-native mut+alloc+free+gc
186 154 32 50.7 osh-native mut+alloc+free+gc+exit
142 97 44 98.4 _bin/cxx-opt+nopool/osh mut+alloc
256 224 32 67.8 _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 3.0 bash -
8 4 4 3.3 zsh -
6 0 6 10.4 bumpleak/osh mut
7 3 3 11.3 _bin/cxx-opt+bumproot/osh mut
9 0 8 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.0 osh-native mut+alloc
9 9 0 10.2 osh-native mut+alloc+free
10 6 3 8.4 osh-native mut+alloc+free+gc
10 7 3 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
13 8 4 9.6 _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 3.0 bash -
24 16 8 3.1 zsh -
20 8 12 32.4 bumpleak/osh mut
27 27 0 31.7 _bin/cxx-opt+bumproot/osh mut
28 28 0 32.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 29 8 26.2 osh-native mut+alloc
39 31 8 26.3 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
29 21 7 7.9 osh-native mut+alloc+free+gc+exit
56 44 12 36.3 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 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 72 0 3.1 bash -
169 100 68 54.8 bumpleak/osh mut
182 123 59 55.1 _bin/cxx-opt+bumproot/osh mut
192 140 52 55.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 144 68 47.0 osh-native mut+alloc
216 132 84 48.7 osh-native mut+alloc+free
181 105 76 8.5 osh-native mut+alloc+free+gc
181 149 32 8.8 osh-native mut+alloc+free+gc+exit
232 167 64 63.7 _bin/cxx-opt+nopool/osh mut+alloc
214 137 76 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 9 2 3.4 dash -
20 11 10 4.5 bash -
18 10 9 3.5 zsh -
19 16 4 11.3 bumpleak/osh mut
19 12 8 13.7 _bin/cxx-opt+bumproot/osh mut
21 8 13 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 13 9 10.9 osh-native mut+alloc
23 11 13 11.1 osh-native mut+alloc+free
23 22 1 8.9 osh-native mut+alloc+free+gc
23 16 8 8.9 osh-native mut+alloc+free+gc+exit
24 13 11 12.6 _bin/cxx-opt+nopool/osh mut+alloc
24 18 6 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc