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 37 4 11 12.0 17.8 476,684 1,282 6 408,754 5 204,377 osh-native
parse.configure-coreutils 178 28 89 46.1 51.6 1,653,272 4,764 12 1,069,120 6 798,641 osh-native
parse.abuild 9 1 1 2.6 8.4 101,875 180 2 75,096 1 37,548 osh-native
ex.compute-fib 28 0 2 2.6 7.7 584,140 31,810 12 50,000 0 2,825 osh-native
ex.bashcomp-parse-help 181 0 4 10.6 8.8 995,217 27,376 21 50,000 0 3,820 osh-native
ex.abuild-print-help 23 1 2 2.8 8.7 116,284 478 3 85,332 1 42,666 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.4 dash -
24 19 4 3.1 bash -
105 54 57 3.4 zsh -
17 17 0 28.0 bumpleak/osh mut
20 12 8 29.3 _bin/cxx-opt+bumproot/osh mut
22 17 4 29.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 22 7 25.0 osh-native mut+alloc
32 24 8 25.6 osh-native mut+alloc+free
37 25 12 17.8 osh-native mut+alloc+free+gc
39 39 0 17.8 osh-native mut+alloc+free+gc+exit
44 24 20 32.6 _bin/cxx-opt+nopool/osh mut+alloc
50 38 13 22.2 _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.4 dash -
78 78 0 3.1 bash -
377 219 178 3.5 zsh -
49 41 8 84.4 bumpleak/osh mut
61 56 4 85.7 _bin/cxx-opt+bumproot/osh mut
69 61 8 86.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 77 20 73.4 osh-native mut+alloc
105 73 32 75.3 osh-native mut+alloc+free
178 149 28 51.6 osh-native mut+alloc+free+gc
183 166 16 52.2 osh-native mut+alloc+free+gc+exit
141 101 40 98.6 _bin/cxx-opt+nopool/osh mut+alloc
240 204 36 73.0 _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 3 3 2.8 bash -
8 4 4 3.3 zsh -
6 0 6 12.0 bumpleak/osh mut
8 0 7 11.7 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 3 6 9.7 osh-native mut+alloc
9 9 0 10.0 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
9 3 6 8.5 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 12 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
10 10 0 1.6 dash -
29 29 0 2.9 bash -
24 12 12 3.3 zsh -
19 15 4 31.3 bumpleak/osh mut
26 18 7 32.0 _bin/cxx-opt+bumproot/osh mut
28 24 4 31.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 33 4 26.5 osh-native mut+alloc
39 27 11 26.7 osh-native mut+alloc+free
28 20 8 7.7 osh-native mut+alloc+free+gc
28 28 0 8.0 osh-native mut+alloc+free+gc+exit
53 49 4 36.2 _bin/cxx-opt+nopool/osh mut+alloc
37 37 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 73 0 3.1 bash -
168 112 56 53.9 bumpleak/osh mut
178 95 83 55.9 _bin/cxx-opt+bumproot/osh mut
195 140 56 55.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 152 60 46.9 osh-native mut+alloc
217 121 96 48.9 osh-native mut+alloc+free
181 116 64 8.8 osh-native mut+alloc+free+gc
182 133 49 8.8 osh-native mut+alloc+free+gc+exit
232 148 84 62.7 _bin/cxx-opt+nopool/osh mut+alloc
215 139 76 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 9 1 3.4 dash -
20 11 10 4.3 bash -
18 11 8 3.4 zsh -
20 11 8 11.0 bumpleak/osh mut
20 17 3 13.5 _bin/cxx-opt+bumproot/osh mut
21 11 11 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 22 5 10.9 osh-native mut+alloc
23 16 8 11.0 osh-native mut+alloc+free
23 22 1 8.7 osh-native mut+alloc+free+gc
24 15 9 9.0 osh-native mut+alloc+free+gc+exit
25 16 10 12.4 _bin/cxx-opt+nopool/osh mut+alloc
27 18 9 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc