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,711 1,282 6 408,792 5 204,396 osh-native
parse.configure-coreutils 144 21 57 44.6 49.9 1,653,299 4,764 12 1,030,676 6 769,422 osh-native
parse.abuild 9 1 1 2.6 8.5 101,902 180 2 75,134 1 37,567 osh-native
ex.compute-fib 591 0 2 2.4 8.0 908,191 22,608 19 50,000 0 2,844 osh-native
ex.bashcomp-parse-help 181 0 3 10.3 8.8 995,628 12,911 21 50,000 0 3,835 osh-native
ex.abuild-print-help 22 1 2 2.8 8.9 116,311 270 3 85,370 1 42,685 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.4 dash -
24 19 4 2.9 bash -
104 70 40 3.4 zsh -
16 12 4 29.7 bumpleak/osh mut
19 15 4 29.5 _bin/cxx-opt+bumproot/osh mut
23 11 11 28.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 18 11 25.2 osh-native mut+alloc
31 19 12 25.6 osh-native mut+alloc+free
35 27 8 18.0 osh-native mut+alloc+free+gc
36 25 11 18.0 osh-native mut+alloc+free+gc+exit
43 27 16 32.8 _bin/cxx-opt+nopool/osh mut+alloc
49 34 15 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
21 21 0 1.4 dash -
79 79 0 3.3 bash -
371 199 194 3.5 zsh -
48 39 9 85.6 bumpleak/osh mut
59 47 12 85.3 _bin/cxx-opt+bumproot/osh mut
71 66 4 86.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 65 33 73.4 osh-native mut+alloc
105 58 47 75.4 osh-native mut+alloc+free
144 120 24 49.9 osh-native mut+alloc+free+gc
147 139 8 50.7 osh-native mut+alloc+free+gc+exit
138 95 43 99.5 _bin/cxx-opt+nopool/osh mut+alloc
202 150 53 68.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 0 2 1.4 dash -
6 6 0 3.0 bash -
8 4 4 3.1 zsh -
6 0 6 11.2 bumpleak/osh mut
7 7 0 12.0 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.1 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
9 3 6 8.5 osh-native mut+alloc+free+gc
9 9 0 8.5 osh-native mut+alloc+free+gc+exit
11 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 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.4 dash -
29 25 4 2.9 bash -
25 17 8 3.3 zsh -
709 704 4 46.1 bumpleak/osh mut
704 696 8 46.2 _bin/cxx-opt+bumproot/osh mut
613 613 0 46.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
681 661 20 37.4 osh-native mut+alloc
662 642 20 37.9 osh-native mut+alloc+free
591 590 0 8.0 osh-native mut+alloc+free+gc
590 590 0 8.0 osh-native mut+alloc+free+gc+exit
717 669 48 54.4 _bin/cxx-opt+nopool/osh mut+alloc
631 622 8 9.8 _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 -
169 125 44 55.4 bumpleak/osh mut
178 125 53 54.9 _bin/cxx-opt+bumproot/osh mut
192 112 80 55.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 147 64 47.0 osh-native mut+alloc
218 159 60 48.6 osh-native mut+alloc+free
181 117 64 8.8 osh-native mut+alloc+free+gc
180 136 44 8.7 osh-native mut+alloc+free+gc+exit
234 137 97 63.8 _bin/cxx-opt+nopool/osh mut+alloc
209 152 56 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 5 4 3.5 dash -
20 18 2 4.5 bash -
18 6 12 3.5 zsh -
19 11 8 12.1 bumpleak/osh mut
19 17 2 11.8 _bin/cxx-opt+bumproot/osh mut
20 16 4 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 9 12 10.9 osh-native mut+alloc
22 14 8 11.0 osh-native mut+alloc+free
22 13 9 8.9 osh-native mut+alloc+free+gc
23 12 11 8.9 osh-native mut+alloc+free+gc+exit
25 12 13 12.6 _bin/cxx-opt+nopool/osh mut+alloc
25 19 6 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc