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 9 12.0 18.0 476,711 1,282 6 408,792 5 204,396 osh-native
parse.configure-coreutils 148 23 61 44.6 49.8 1,653,299 4,764 12 1,030,676 6 769,422 osh-native
parse.abuild 9 1 1 2.6 8.5 101,902 180 2 75,134 1 37,567 osh-native
ex.compute-fib 29 0 1 2.4 7.9 584,167 22,608 12 50,000 0 2,844 osh-native
ex.bashcomp-parse-help 179 0 3 10.3 8.7 995,244 12,911 21 50,000 0 3,834 osh-native
ex.abuild-print-help 22 1 2 2.8 9.0 116,311 270 3 85,370 1 42,685 osh-native

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 3 3 1.6 dash -
24 23 0 3.0 bash -
105 64 48 3.4 zsh -
17 6 10 29.7 bumpleak/osh mut
20 20 0 30.1 _bin/cxx-opt+bumproot/osh mut
22 15 7 30.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 26 4 25.2 osh-native mut+alloc
32 16 16 25.6 osh-native mut+alloc+free
36 27 8 18.0 osh-native mut+alloc+free+gc
37 20 16 18.0 osh-native mut+alloc+free+gc+exit
44 40 4 33.0 _bin/cxx-opt+nopool/osh mut+alloc
51 43 8 22.0 _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 199 200 3.4 zsh -
50 37 12 84.8 bumpleak/osh mut
60 55 4 86.1 _bin/cxx-opt+bumproot/osh mut
70 53 16 86.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 64 36 73.4 osh-native mut+alloc
106 86 20 75.3 osh-native mut+alloc+free
148 124 24 49.8 osh-native mut+alloc+free+gc
166 142 24 50.4 osh-native mut+alloc+free+gc+exit
140 72 68 97.9 _bin/cxx-opt+nopool/osh mut+alloc
226 182 44 68.2 _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 3 3 3.0 bash -
8 4 4 3.3 zsh -
6 0 6 12.0 bumpleak/osh mut
6 6 0 12.5 _bin/cxx-opt+bumproot/osh mut
8 0 7 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 9.8 osh-native mut+alloc
9 3 6 10.0 osh-native mut+alloc+free
9 6 3 8.5 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 11 0 9.3 _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
11 10 0 1.6 dash -
29 28 0 3.0 bash -
24 16 8 3.3 zsh -
19 8 12 32.0 bumpleak/osh mut
26 26 0 32.2 _bin/cxx-opt+bumproot/osh mut
29 29 0 32.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 24 12 26.2 osh-native mut+alloc
38 30 8 26.3 osh-native mut+alloc+free
29 29 0 7.9 osh-native mut+alloc+free+gc
28 28 0 7.9 osh-native mut+alloc+free+gc+exit
54 42 12 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 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
73 73 0 3.1 bash -
168 116 52 55.3 bumpleak/osh mut
177 129 48 54.7 _bin/cxx-opt+bumproot/osh mut
193 96 96 55.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 139 71 47.0 osh-native mut+alloc
215 148 68 48.7 osh-native mut+alloc+free
179 130 49 8.7 osh-native mut+alloc+free+gc
180 135 44 8.5 osh-native mut+alloc+free+gc+exit
231 153 77 63.7 _bin/cxx-opt+nopool/osh mut+alloc
208 164 44 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.5 dash -
20 7 13 4.3 bash -
18 5 13 3.5 zsh -
18 13 5 13.2 bumpleak/osh mut
19 12 7 12.6 _bin/cxx-opt+bumproot/osh mut
22 8 14 13.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 19 2 10.9 osh-native mut+alloc
22 21 2 11.1 osh-native mut+alloc+free
22 16 7 9.0 osh-native mut+alloc+free+gc
22 16 7 9.0 osh-native mut+alloc+free+gc+exit
25 18 8 12.6 _bin/cxx-opt+nopool/osh mut+alloc
25 20 6 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc