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 4 9 12.0 18.0 476,676 1,282 6 408,744 5 204,372 osh-native
parse.configure-coreutils 175 29 86 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 29 0 2 2.6 8.0 584,132 31,810 12 50,000 0 2,819 osh-native
ex.bashcomp-parse-help 182 0 4 10.6 8.7 995,209 27,376 21 50,000 0 3,815 osh-native
ex.abuild-print-help 23 1 2 2.8 8.8 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
7 6 0 1.6 dash -
24 19 4 3.0 bash -
106 57 55 3.4 zsh -
17 3 14 29.4 bumpleak/osh mut
21 16 4 28.7 _bin/cxx-opt+bumproot/osh mut
23 18 5 29.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 22 7 24.9 osh-native mut+alloc
33 28 4 25.4 osh-native mut+alloc+free
36 20 16 18.0 osh-native mut+alloc+free+gc
38 25 12 18.0 osh-native mut+alloc+free+gc+exit
44 32 12 32.7 _bin/cxx-opt+nopool/osh mut+alloc
51 39 12 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 -
78 74 4 3.0 bash -
381 225 179 3.7 zsh -
49 41 8 83.9 bumpleak/osh mut
60 48 12 86.0 _bin/cxx-opt+bumproot/osh mut
69 57 12 86.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 75 24 73.4 osh-native mut+alloc
106 71 35 75.1 osh-native mut+alloc+free
175 151 24 51.4 osh-native mut+alloc+free+gc
180 148 32 52.2 osh-native mut+alloc+free+gc+exit
140 96 44 99.4 _bin/cxx-opt+nopool/osh mut+alloc
242 217 24 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.4 dash -
6 6 0 2.9 bash -
8 4 4 3.3 zsh -
6 6 0 11.8 bumpleak/osh mut
7 0 7 11.4 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.0 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 6 3 8.7 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 -
30 26 4 2.9 bash -
25 20 4 3.4 zsh -
19 8 11 32.3 bumpleak/osh mut
26 21 4 32.6 _bin/cxx-opt+bumproot/osh mut
28 28 0 32.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 32 4 26.5 osh-native mut+alloc
39 35 4 26.9 osh-native mut+alloc+free
29 28 0 8.0 osh-native mut+alloc+free+gc
29 24 4 7.7 osh-native mut+alloc+free+gc+exit
54 25 29 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _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
75 67 8 3.1 bash -
169 96 72 53.8 bumpleak/osh mut
182 125 56 56.0 _bin/cxx-opt+bumproot/osh mut
198 121 77 55.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
219 147 71 47.1 osh-native mut+alloc
219 151 68 48.9 osh-native mut+alloc+free
182 158 24 8.7 osh-native mut+alloc+free+gc
184 128 56 8.7 osh-native mut+alloc+free+gc+exit
238 147 91 63.8 _bin/cxx-opt+nopool/osh mut+alloc
213 157 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 4 3.4 dash -
20 13 8 4.5 bash -
18 13 6 3.5 zsh -
20 12 9 12.6 bumpleak/osh mut
22 11 11 13.2 _bin/cxx-opt+bumproot/osh mut
21 19 3 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 12 10 10.9 osh-native mut+alloc
23 18 6 11.0 osh-native mut+alloc+free
23 11 12 8.8 osh-native mut+alloc+free+gc
24 18 6 8.8 osh-native mut+alloc+free+gc+exit
26 16 10 12.3 _bin/cxx-opt+nopool/osh mut+alloc
26 20 6 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc