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 17.7 476,676 1,282 6 408,744 5 204,372 osh-native
parse.configure-coreutils 150 24 64 46.1 51.4 1,653,264 4,764 12 1,069,110 6 798,636 osh-native
parse.abuild 9 1 1 2.6 8.5 101,867 180 2 75,086 1 37,543 osh-native
ex.compute-fib 28 0 1 2.6 7.7 584,132 31,810 12 50,000 0 2,819 osh-native
ex.bashcomp-parse-help 179 0 3 10.6 8.7 995,209 27,376 21 50,000 0 3,815 osh-native
ex.abuild-print-help 22 1 2 2.8 9.0 116,276 478 3 85,322 1 42,661 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 -
24 20 4 3.0 bash -
103 55 55 3.5 zsh -
16 16 0 27.9 bumpleak/osh mut
20 8 12 30.2 _bin/cxx-opt+bumproot/osh mut
23 22 0 30.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 26 4 25.2 osh-native mut+alloc
31 27 4 25.4 osh-native mut+alloc+free
36 32 4 17.7 osh-native mut+alloc+free+gc
36 28 8 18.0 osh-native mut+alloc+free+gc+exit
43 26 17 33.1 _bin/cxx-opt+nopool/osh mut+alloc
47 39 8 21.8 _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 -
379 207 193 3.5 zsh -
49 45 4 83.9 bumpleak/osh mut
60 60 0 85.5 _bin/cxx-opt+bumproot/osh mut
71 63 8 86.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 80 16 73.3 osh-native mut+alloc
105 65 40 75.1 osh-native mut+alloc+free
150 130 20 51.4 osh-native mut+alloc+free+gc
155 127 28 52.0 osh-native mut+alloc+free+gc+exit
140 72 68 97.7 _bin/cxx-opt+nopool/osh mut+alloc
213 185 28 72.7 _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 2.9 bash -
8 8 0 3.3 zsh -
6 6 0 12.3 bumpleak/osh mut
7 3 3 10.8 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 0 8 9.8 osh-native mut+alloc
8 8 0 10.0 osh-native mut+alloc+free
9 4 4 8.5 osh-native mut+alloc+free+gc
9 9 0 8.5 osh-native mut+alloc+free+gc+exit
11 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 11 0 9.4 _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.6 dash -
28 24 4 2.9 bash -
24 12 12 3.3 zsh -
19 8 11 31.8 bumpleak/osh mut
25 21 4 32.4 _bin/cxx-opt+bumproot/osh mut
28 20 8 33.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 12 24 26.3 osh-native mut+alloc
38 30 8 26.7 osh-native mut+alloc+free
28 27 0 7.7 osh-native mut+alloc+free+gc
28 28 0 7.9 osh-native mut+alloc+free+gc+exit
52 36 16 35.9 _bin/cxx-opt+nopool/osh mut+alloc
36 36 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
72 64 8 3.1 bash -
167 99 68 55.0 bumpleak/osh mut
181 126 55 55.9 _bin/cxx-opt+bumproot/osh mut
194 158 36 56.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 139 71 47.1 osh-native mut+alloc
217 146 71 48.9 osh-native mut+alloc+free
179 143 36 8.7 osh-native mut+alloc+free+gc
180 110 71 8.5 osh-native mut+alloc+free+gc+exit
234 157 77 64.4 _bin/cxx-opt+nopool/osh mut+alloc
209 149 60 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 8 2 3.4 dash -
20 12 8 4.3 bash -
18 17 2 3.4 zsh -
19 12 7 11.8 bumpleak/osh mut
20 18 2 11.7 _bin/cxx-opt+bumproot/osh mut
20 9 12 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 20 2 10.7 osh-native mut+alloc
22 16 7 10.9 osh-native mut+alloc+free
22 16 7 9.0 osh-native mut+alloc+free+gc
23 10 13 8.9 osh-native mut+alloc+free+gc+exit
25 19 7 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 17 8 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc