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 41 6 13 12.0 17.8 476,689 1,282 6 408,756 5 204,378 osh-native
parse.configure-coreutils 190 31 98 46.1 51.4 1,653,277 4,764 12 1,069,122 6 798,642 osh-native
parse.abuild 9 1 1 2.6 8.4 101,880 180 2 75,098 1 37,549 osh-native
ex.compute-fib 29 0 2 2.6 7.7 584,145 31,810 12 50,000 0 2,826 osh-native
ex.bashcomp-parse-help 186 0 5 10.6 8.8 995,222 27,376 21 50,000 0 3,821 osh-native
ex.abuild-print-help 24 1 2 2.8 8.7 116,289 478 3 85,334 1 42,667 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 20 4 3.0 bash -
106 61 52 3.5 zsh -
16 7 10 29.2 bumpleak/osh mut
20 12 8 28.9 _bin/cxx-opt+bumproot/osh mut
23 11 11 28.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 19 11 25.2 osh-native mut+alloc
33 24 8 25.4 osh-native mut+alloc+free
41 32 8 17.8 osh-native mut+alloc+free+gc
42 34 8 17.8 osh-native mut+alloc+free+gc+exit
44 28 16 32.8 _bin/cxx-opt+nopool/osh mut+alloc
59 55 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
22 18 4 1.6 dash -
78 73 4 3.0 bash -
384 217 189 3.5 zsh -
49 37 12 85.7 bumpleak/osh mut
61 53 8 84.8 _bin/cxx-opt+bumproot/osh mut
71 47 24 85.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 78 21 73.4 osh-native mut+alloc
107 75 32 75.3 osh-native mut+alloc+free
190 166 24 51.4 osh-native mut+alloc+free+gc
191 178 12 52.2 osh-native mut+alloc+free+gc+exit
141 64 76 98.3 _bin/cxx-opt+nopool/osh mut+alloc
265 233 32 71.5 _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 0 7 3.3 zsh -
6 6 0 10.3 bumpleak/osh mut
7 7 0 11.3 _bin/cxx-opt+bumproot/osh mut
7 7 0 10.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 9.7 osh-native mut+alloc
9 9 0 10.1 osh-native mut+alloc+free
9 6 3 8.4 osh-native mut+alloc+free+gc
10 10 0 8.7 osh-native mut+alloc+free+gc+exit
12 12 0 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 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 7 4 1.4 dash -
29 28 0 3.0 bash -
24 16 8 3.4 zsh -
20 16 4 32.5 bumpleak/osh mut
26 18 7 32.1 _bin/cxx-opt+bumproot/osh mut
29 25 4 33.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 29 8 26.2 osh-native mut+alloc
40 36 4 26.7 osh-native mut+alloc+free
29 29 0 7.7 osh-native mut+alloc+free+gc
29 18 11 7.9 osh-native mut+alloc+free+gc+exit
55 27 27 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 38 0 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 65 8 3.1 bash -
169 108 60 56.1 bumpleak/osh mut
180 108 72 56.0 _bin/cxx-opt+bumproot/osh mut
199 123 76 56.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
217 132 84 47.0 osh-native mut+alloc
225 112 112 48.9 osh-native mut+alloc+free
186 115 71 8.8 osh-native mut+alloc+free+gc
188 128 60 8.8 osh-native mut+alloc+free+gc+exit
236 144 92 64.4 _bin/cxx-opt+nopool/osh mut+alloc
221 182 40 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 5 6 3.5 dash -
21 12 9 4.5 bash -
19 12 7 3.5 zsh -
22 12 10 12.7 bumpleak/osh mut
23 16 6 12.5 _bin/cxx-opt+bumproot/osh mut
22 14 9 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 17 6 10.9 osh-native mut+alloc
24 15 9 10.9 osh-native mut+alloc+free
24 18 6 8.7 osh-native mut+alloc+free+gc
24 17 8 8.7 osh-native mut+alloc+free+gc+exit
26 18 9 12.6 _bin/cxx-opt+nopool/osh mut+alloc
27 19 8 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc