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 38 5 12 12.0 17.8 476,680 1,282 6 408,744 5 204,372 osh-native
parse.configure-coreutils 166 28 77 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.4 101,871 180 2 75,086 1 37,543 osh-native
ex.compute-fib 29 0 1 2.6 7.9 584,136 31,810 12 50,000 0 2,820 osh-native
ex.bashcomp-parse-help 182 0 4 10.3 8.7 979,373 27,376 21 50,000 0 3,804 osh-native
ex.abuild-print-help 24 1 2 2.8 8.8 116,244 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 6 0 1.6 dash -
24 23 0 3.1 bash -
105 68 44 3.4 zsh -
17 13 4 28.3 bumpleak/osh mut
20 12 8 28.9 _bin/cxx-opt+bumproot/osh mut
22 15 7 29.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 19 11 25.2 osh-native mut+alloc
32 23 9 25.7 osh-native mut+alloc+free
38 19 19 17.8 osh-native mut+alloc+free+gc
40 32 8 18.1 osh-native mut+alloc+free+gc+exit
44 32 12 32.2 _bin/cxx-opt+nopool/osh mut+alloc
55 40 16 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 21 0 1.6 dash -
77 77 0 3.1 bash -
380 208 193 3.7 zsh -
50 38 12 85.1 bumpleak/osh mut
60 60 0 84.8 _bin/cxx-opt+bumproot/osh mut
69 57 11 84.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 77 20 73.3 osh-native mut+alloc
106 85 20 75.3 osh-native mut+alloc+free
166 141 24 51.4 osh-native mut+alloc+free+gc
176 152 24 52.2 osh-native mut+alloc+free+gc+exit
155 106 49 97.5 _bin/cxx-opt+nopool/osh mut+alloc
247 211 36 72.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 3 3 10.6 bumpleak/osh mut
7 4 4 11.1 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 9.7 osh-native mut+alloc
9 0 9 10.1 osh-native mut+alloc+free
9 5 5 8.4 osh-native mut+alloc+free+gc
9 9 0 8.4 osh-native mut+alloc+free+gc+exit
12 4 8 11.3 _bin/cxx-opt+nopool/osh mut+alloc
13 8 4 9.4 _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 -
29 24 4 3.0 bash -
24 16 8 3.3 zsh -
19 19 0 30.9 bumpleak/osh mut
26 26 0 31.9 _bin/cxx-opt+bumproot/osh mut
28 24 4 31.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.3 osh-native mut+alloc
39 23 16 26.6 osh-native mut+alloc+free
29 28 0 7.9 osh-native mut+alloc+free+gc
28 24 4 7.7 osh-native mut+alloc+free+gc+exit
55 39 16 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
83 75 8 3.3 bash -
186 111 75 53.7 bumpleak/osh mut
196 120 76 54.1 _bin/cxx-opt+bumproot/osh mut
205 152 52 56.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
209 133 76 46.6 osh-native mut+alloc
215 143 72 48.1 osh-native mut+alloc+free
182 142 41 8.7 osh-native mut+alloc+free+gc
181 140 40 8.7 osh-native mut+alloc+free+gc+exit
232 163 68 63.4 _bin/cxx-opt+nopool/osh mut+alloc
209 140 68 9.9 _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
11 5 6 3.5 dash -
20 18 2 4.3 bash -
18 17 1 3.5 zsh -
22 19 3 12.7 bumpleak/osh mut
21 15 6 11.9 _bin/cxx-opt+bumproot/osh mut
22 12 11 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
23 14 9 10.7 osh-native mut+alloc
24 19 6 11.0 osh-native mut+alloc+free
24 23 2 8.8 osh-native mut+alloc+free+gc
24 22 3 8.9 osh-native mut+alloc+free+gc+exit
26 13 14 12.5 _bin/cxx-opt+nopool/osh mut+alloc
27 15 13 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc