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 35 3 9 12.0 18.0 476,711 1,282 6 408,792 5 204,396 osh-native
parse.configure-coreutils 151 24 64 44.6 49.9 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 28 0 1 2.4 7.9 584,167 22,608 12 50,000 0 2,844 osh-native
ex.bashcomp-parse-help 181 0 3 10.3 8.8 995,244 12,911 21 50,000 0 3,834 osh-native
ex.abuild-print-help 21 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
7 6 0 1.6 dash -
24 24 0 3.0 bash -
105 62 50 3.3 zsh -
16 16 0 29.3 bumpleak/osh mut
20 20 0 28.5 _bin/cxx-opt+bumproot/osh mut
25 21 4 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 25.2 osh-native mut+alloc
31 19 12 25.7 osh-native mut+alloc+free
35 27 8 18.0 osh-native mut+alloc+free+gc
36 28 8 18.0 osh-native mut+alloc+free+gc+exit
44 24 20 32.0 _bin/cxx-opt+nopool/osh mut+alloc
47 39 8 22.3 _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 18 4 1.4 dash -
77 77 0 3.1 bash -
376 206 191 3.7 zsh -
49 45 4 84.3 bumpleak/osh mut
59 51 8 85.5 _bin/cxx-opt+bumproot/osh mut
70 50 19 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 62 35 73.4 osh-native mut+alloc
107 74 33 75.1 osh-native mut+alloc+free
151 135 16 49.9 osh-native mut+alloc+free+gc
152 124 28 50.6 osh-native mut+alloc+free+gc+exit
139 67 71 99.1 _bin/cxx-opt+nopool/osh mut+alloc
205 156 48 66.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 6 0 2.9 bash -
8 4 4 3.3 zsh -
6 6 0 11.3 bumpleak/osh mut
6 6 0 12.1 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
10 9 0 10.1 osh-native mut+alloc
8 8 0 10.1 osh-native mut+alloc+free
9 4 4 8.5 osh-native mut+alloc+free+gc
9 5 5 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 7 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.6 dash -
28 28 0 2.9 bash -
24 24 0 3.3 zsh -
19 8 12 32.0 bumpleak/osh mut
26 18 7 32.5 _bin/cxx-opt+bumproot/osh mut
29 21 8 31.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 33 4 26.2 osh-native mut+alloc
38 30 8 26.5 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
28 28 0 7.9 osh-native mut+alloc+free+gc+exit
54 35 19 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 26 11 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
74 73 0 3.1 bash -
168 88 80 54.1 bumpleak/osh mut
179 127 52 55.4 _bin/cxx-opt+bumproot/osh mut
192 120 72 56.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
209 165 44 47.0 osh-native mut+alloc
217 144 72 48.7 osh-native mut+alloc+free
181 128 52 8.8 osh-native mut+alloc+free+gc
180 140 40 8.5 osh-native mut+alloc+free+gc+exit
231 139 92 63.7 _bin/cxx-opt+nopool/osh mut+alloc
207 130 77 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 7 3 3.5 dash -
19 14 6 4.5 bash -
18 5 13 3.5 zsh -
18 11 7 13.4 bumpleak/osh mut
20 12 9 13.0 _bin/cxx-opt+bumproot/osh mut
21 15 7 13.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 10 11 10.9 osh-native mut+alloc
22 11 12 11.1 osh-native mut+alloc+free
21 12 10 9.0 osh-native mut+alloc+free+gc
23 17 6 9.0 osh-native mut+alloc+free+gc+exit
24 21 3 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 23 3 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc