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 17.8 476,676 1,282 6 408,744 5 204,372 osh-native
parse.configure-coreutils 176 29 87 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.3 101,867 180 2 75,086 1 37,543 osh-native
ex.compute-fib 28 0 2 2.6 7.9 584,132 31,810 12 50,000 0 2,819 osh-native
ex.bashcomp-parse-help 187 0 4 10.6 8.7 995,209 27,376 21 50,000 0 3,815 osh-native
ex.abuild-print-help 24 1 2 2.8 8.9 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 23 0 3.0 bash -
105 67 45 3.4 zsh -
17 13 4 29.7 bumpleak/osh mut
20 20 0 29.0 _bin/cxx-opt+bumproot/osh mut
23 19 4 28.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 11 19 25.0 osh-native mut+alloc
33 24 8 25.4 osh-native mut+alloc+free
40 36 4 17.8 osh-native mut+alloc+free+gc
39 39 0 17.7 osh-native mut+alloc+free+gc+exit
44 28 16 31.8 _bin/cxx-opt+nopool/osh mut+alloc
53 45 8 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 22 0 1.6 dash -
78 78 0 3.1 bash -
380 191 210 3.5 zsh -
49 41 8 85.4 bumpleak/osh mut
63 54 8 85.3 _bin/cxx-opt+bumproot/osh mut
70 59 12 84.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 44 56 73.4 osh-native mut+alloc
107 66 41 75.1 osh-native mut+alloc+free
176 160 16 51.4 osh-native mut+alloc+free+gc
191 159 33 52.1 osh-native mut+alloc+free+gc+exit
139 83 56 98.0 _bin/cxx-opt+nopool/osh mut+alloc
256 216 40 73.4 _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 3 3 2.9 bash -
8 4 4 3.1 zsh -
6 6 0 11.0 bumpleak/osh mut
8 4 4 11.8 _bin/cxx-opt+bumproot/osh mut
7 7 0 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.0 osh-native mut+alloc
9 9 0 10.1 osh-native mut+alloc+free
9 5 5 8.3 osh-native mut+alloc+free+gc
10 3 6 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 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
10 10 0 1.4 dash -
29 29 0 2.9 bash -
24 20 4 3.4 zsh -
19 11 7 32.8 bumpleak/osh mut
26 21 4 31.9 _bin/cxx-opt+bumproot/osh mut
28 20 8 32.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 22 15 26.3 osh-native mut+alloc
40 31 8 26.6 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
30 25 4 7.7 osh-native mut+alloc+free+gc+exit
55 42 13 35.7 _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
73 73 0 3.0 bash -
170 110 59 55.6 bumpleak/osh mut
181 112 68 56.0 _bin/cxx-opt+bumproot/osh mut
194 129 65 56.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 130 83 47.1 osh-native mut+alloc
221 164 56 48.8 osh-native mut+alloc+free
187 130 57 8.7 osh-native mut+alloc+free+gc
187 127 60 8.7 osh-native mut+alloc+free+gc+exit
239 143 95 63.5 _bin/cxx-opt+nopool/osh mut+alloc
224 168 56 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 6 5 3.3 dash -
20 19 1 4.5 bash -
18 6 13 3.5 zsh -
20 12 8 12.2 bumpleak/osh mut
20 15 6 11.8 _bin/cxx-opt+bumproot/osh mut
22 11 11 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 14 8 10.9 osh-native mut+alloc
24 17 7 11.1 osh-native mut+alloc+free
24 22 2 8.9 osh-native mut+alloc+free+gc
24 24 1 8.9 osh-native mut+alloc+free+gc+exit
25 19 7 12.5 _bin/cxx-opt+nopool/osh mut+alloc
26 18 8 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc