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,684 1,282 6 408,754 5 204,377 osh-native
parse.configure-coreutils 146 23 59 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 1 2.6 7.7 584,140 31,810 12 50,000 0 2,825 osh-native
ex.bashcomp-parse-help 181 0 3 10.6 8.7 995,217 27,376 21 50,000 0 3,820 osh-native
ex.abuild-print-help 22 1 2 2.8 8.8 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
6 6 0 1.6 dash -
23 15 8 3.0 bash -
104 46 65 3.4 zsh -
16 12 4 29.1 bumpleak/osh mut
19 10 10 29.6 _bin/cxx-opt+bumproot/osh mut
22 19 4 30.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 25.0 osh-native mut+alloc
31 22 9 25.4 osh-native mut+alloc+free
35 31 4 18.0 osh-native mut+alloc+free+gc
36 32 4 18.0 osh-native mut+alloc+free+gc+exit
43 27 15 32.1 _bin/cxx-opt+nopool/osh mut+alloc
47 39 8 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 21 0 1.4 dash -
78 74 4 3.1 bash -
380 207 196 3.7 zsh -
48 32 16 84.3 bumpleak/osh mut
60 56 4 85.5 _bin/cxx-opt+bumproot/osh mut
71 66 4 85.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 71 28 73.5 osh-native mut+alloc
105 81 24 75.4 osh-native mut+alloc+free
146 118 28 51.6 osh-native mut+alloc+free+gc
150 118 32 52.3 osh-native mut+alloc+free+gc+exit
140 120 20 99.4 _bin/cxx-opt+nopool/osh mut+alloc
205 185 20 72.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 3 3 2.9 bash -
8 0 7 3.3 zsh -
6 6 0 10.2 bumpleak/osh mut
7 3 3 11.3 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.0 osh-native mut+alloc
9 9 0 10.0 osh-native mut+alloc+free
9 6 3 8.4 osh-native mut+alloc+free+gc
9 9 0 8.4 osh-native mut+alloc+free+gc+exit
11 0 12 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 6 6 9.2 _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 7 3 1.4 dash -
29 29 0 2.9 bash -
24 16 8 3.1 zsh -
19 19 0 32.1 bumpleak/osh mut
25 18 7 31.6 _bin/cxx-opt+bumproot/osh mut
27 23 4 32.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 32 4 26.3 osh-native mut+alloc
37 21 17 26.7 osh-native mut+alloc+free
28 28 0 7.7 osh-native mut+alloc+free+gc
28 28 0 7.9 osh-native mut+alloc+free+gc+exit
54 37 16 36.0 _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 69 4 3.0 bash -
165 96 68 54.4 bumpleak/osh mut
180 132 48 56.1 _bin/cxx-opt+bumproot/osh mut
191 132 60 55.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 146 63 47.0 osh-native mut+alloc
219 135 83 48.9 osh-native mut+alloc+free
181 112 68 8.7 osh-native mut+alloc+free+gc
181 114 67 8.7 osh-native mut+alloc+free+gc+exit
229 166 63 63.2 _bin/cxx-opt+nopool/osh mut+alloc
206 134 71 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.5 dash -
20 14 6 4.3 bash -
18 10 8 3.4 zsh -
19 18 2 12.5 bumpleak/osh mut
20 17 3 12.1 _bin/cxx-opt+bumproot/osh mut
20 12 9 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 17 5 10.9 osh-native mut+alloc
23 16 8 11.1 osh-native mut+alloc+free
22 15 8 8.8 osh-native mut+alloc+free+gc
23 14 9 8.7 osh-native mut+alloc+free+gc+exit
25 23 2 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 17 9 9.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc