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 37 3 10 12.0 17.8 476,676 1,282 6 408,744 5 204,372 osh-native
parse.configure-coreutils 158 25 70 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 2 2.6 8.0 584,132 31,810 12 50,000 0 2,819 osh-native
ex.bashcomp-parse-help 180 0 4 10.2 8.5 982,889 27,376 21 50,000 0 3,805 osh-native
ex.abuild-print-help 23 1 2 2.8 8.8 116,248 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.6 dash -
23 23 0 3.1 bash -
104 58 53 3.4 zsh -
16 8 8 29.1 bumpleak/osh mut
20 16 4 29.8 _bin/cxx-opt+bumproot/osh mut
22 11 11 29.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 25.0 osh-native mut+alloc
32 28 4 25.7 osh-native mut+alloc+free
37 28 8 17.8 osh-native mut+alloc+free+gc
37 28 8 18.0 osh-native mut+alloc+free+gc+exit
43 34 9 32.9 _bin/cxx-opt+nopool/osh mut+alloc
52 47 4 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.4 dash -
78 78 0 3.1 bash -
380 220 182 3.7 zsh -
49 40 8 85.7 bumpleak/osh mut
60 56 4 84.9 _bin/cxx-opt+bumproot/osh mut
70 53 16 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 58 39 73.4 osh-native mut+alloc
107 83 24 75.4 osh-native mut+alloc+free
158 129 28 51.4 osh-native mut+alloc+free+gc
168 144 24 52.1 osh-native mut+alloc+free+gc+exit
139 99 40 98.3 _bin/cxx-opt+nopool/osh mut+alloc
228 185 43 71.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 2 0 1.3 dash -
6 6 0 2.9 bash -
8 8 0 3.4 zsh -
6 6 0 10.2 bumpleak/osh mut
8 4 4 12.0 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 3 6 9.8 osh-native mut+alloc
9 6 3 10.1 osh-native mut+alloc+free
9 6 3 8.5 osh-native mut+alloc+free+gc
13 10 3 8.3 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
14 10 3 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 10 0 1.4 dash -
29 29 0 2.9 bash -
24 20 4 3.1 zsh -
19 15 4 31.9 bumpleak/osh mut
26 26 0 32.2 _bin/cxx-opt+bumproot/osh mut
28 20 8 33.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 20 16 26.2 osh-native mut+alloc
39 26 13 26.7 osh-native mut+alloc+free
28 24 4 8.0 osh-native mut+alloc+free+gc
29 29 0 7.9 osh-native mut+alloc+free+gc+exit
54 38 15 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
73 72 0 3.1 bash -
170 83 87 53.7 bumpleak/osh mut
179 115 64 55.5 _bin/cxx-opt+bumproot/osh mut
194 99 95 55.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 147 63 46.5 osh-native mut+alloc
216 140 76 48.2 osh-native mut+alloc+free
180 132 48 8.5 osh-native mut+alloc+free+gc
179 108 72 8.7 osh-native mut+alloc+free+gc+exit
233 160 72 61.8 _bin/cxx-opt+nopool/osh mut+alloc
208 144 64 9.9 _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 11 9 4.3 bash -
18 14 5 3.5 zsh -
20 15 5 12.7 bumpleak/osh mut
21 14 7 12.6 _bin/cxx-opt+bumproot/osh mut
20 14 6 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 12 11 10.6 osh-native mut+alloc
24 20 4 10.9 osh-native mut+alloc+free
23 13 11 8.8 osh-native mut+alloc+free+gc
24 16 9 8.8 osh-native mut+alloc+free+gc+exit
25 17 8 12.5 _bin/cxx-opt+nopool/osh mut+alloc
26 21 6 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc