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 10 12.0 17.8 476,680 1,282 6 408,744 5 204,372 osh-native
parse.configure-coreutils 162 26 72 46.1 51.4 1,653,268 4,764 12 1,069,110 6 798,636 osh-native
parse.abuild 9 1 1 2.6 8.5 101,871 180 2 75,086 1 37,543 osh-native
ex.compute-fib 29 0 2 2.6 7.9 584,136 31,810 12 50,000 0 2,820 osh-native
ex.bashcomp-parse-help 184 0 4 10.6 8.7 995,213 27,376 21 50,000 0 3,815 osh-native
ex.abuild-print-help 23 1 2 2.8 8.8 116,280 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 3 3 1.6 dash -
23 23 0 2.9 bash -
105 61 50 3.3 zsh -
17 17 0 29.6 bumpleak/osh mut
20 16 4 30.0 _bin/cxx-opt+bumproot/osh mut
22 18 4 29.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 26 4 24.9 osh-native mut+alloc
33 17 17 25.4 osh-native mut+alloc+free
36 28 8 17.8 osh-native mut+alloc+free+gc
36 32 4 17.8 osh-native mut+alloc+free+gc+exit
44 24 20 33.3 _bin/cxx-opt+nopool/osh mut+alloc
51 39 12 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
22 22 0 1.4 dash -
78 77 0 3.1 bash -
379 202 200 3.4 zsh -
50 46 4 84.2 bumpleak/osh mut
61 42 19 84.7 _bin/cxx-opt+bumproot/osh mut
70 53 16 86.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 61 36 73.3 osh-native mut+alloc
107 63 44 75.3 osh-native mut+alloc+free
162 145 16 51.4 osh-native mut+alloc+free+gc
161 133 28 51.9 osh-native mut+alloc+free+gc+exit
143 99 43 99.3 _bin/cxx-opt+nopool/osh mut+alloc
227 194 32 73.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 2 0 1.4 dash -
6 6 0 2.9 bash -
8 4 4 3.3 zsh -
6 6 0 12.2 bumpleak/osh mut
7 4 4 11.3 _bin/cxx-opt+bumproot/osh mut
8 8 0 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 3 6 9.8 osh-native mut+alloc
9 6 3 10.0 osh-native mut+alloc+free
9 0 9 8.5 osh-native mut+alloc+free+gc
9 9 0 8.5 osh-native mut+alloc+free+gc+exit
12 12 0 11.1 _bin/cxx-opt+nopool/osh mut+alloc
13 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
11 11 0 1.6 dash -
29 25 4 3.0 bash -
24 20 4 3.3 zsh -
19 12 8 32.4 bumpleak/osh mut
26 21 4 32.5 _bin/cxx-opt+bumproot/osh mut
28 24 4 33.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 32 4 26.3 osh-native mut+alloc
39 19 19 26.6 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 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 28 8 9.2 _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.0 bash -
169 110 59 54.9 bumpleak/osh mut
181 125 56 55.8 _bin/cxx-opt+bumproot/osh mut
196 128 68 56.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
217 161 56 47.1 osh-native mut+alloc
222 154 67 48.9 osh-native mut+alloc+free
184 116 68 8.7 osh-native mut+alloc+free+gc
186 162 24 8.7 osh-native mut+alloc+free+gc+exit
236 144 92 64.4 _bin/cxx-opt+nopool/osh mut+alloc
215 162 53 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.4 dash -
20 13 8 4.5 bash -
18 12 7 3.4 zsh -
20 14 6 12.3 bumpleak/osh mut
22 15 8 12.8 _bin/cxx-opt+bumproot/osh mut
20 18 3 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 14 9 10.7 osh-native mut+alloc
23 12 11 10.7 osh-native mut+alloc+free
23 22 2 8.8 osh-native mut+alloc+free+gc
24 21 4 8.8 osh-native mut+alloc+free+gc+exit
25 20 6 12.5 _bin/cxx-opt+nopool/osh mut+alloc
26 16 10 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc