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 10 12.0 18.0 476,711 1,282 6 408,792 5 204,396 osh-native
parse.configure-coreutils 144 22 58 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 7.7 908,191 22,608 19 50,000 0 2,844 osh-native
ex.bashcomp-parse-help 180 0 3 10.3 8.5 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 6 0 1.6 dash -
24 24 0 3.0 bash -
105 70 42 3.3 zsh -
17 12 4 28.5 bumpleak/osh mut
19 19 0 29.1 _bin/cxx-opt+bumproot/osh mut
22 19 4 29.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 24.9 osh-native mut+alloc
31 27 4 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
44 32 12 32.2 _bin/cxx-opt+nopool/osh mut+alloc
49 32 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 18 4 1.6 dash -
78 74 4 3.3 bash -
379 203 199 3.7 zsh -
49 37 11 84.0 bumpleak/osh mut
59 39 20 85.5 _bin/cxx-opt+bumproot/osh mut
70 62 8 86.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 77 20 73.4 osh-native mut+alloc
106 66 39 75.3 osh-native mut+alloc+free
144 128 16 49.9 osh-native mut+alloc+free+gc
151 127 24 50.6 osh-native mut+alloc+free+gc+exit
138 103 36 99.3 _bin/cxx-opt+nopool/osh mut+alloc
205 181 24 68.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 6 0 2.9 bash -
8 4 4 3.4 zsh -
6 6 0 10.7 bumpleak/osh mut
7 0 7 12.0 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.0 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 4 4 8.5 osh-native mut+alloc+free+gc+exit
11 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 4 7 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.4 dash -
28 28 0 3.0 bash -
24 20 4 3.3 zsh -
716 716 0 46.2 bumpleak/osh mut
693 693 0 47.0 _bin/cxx-opt+bumproot/osh mut
616 608 8 47.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
666 658 8 37.5 osh-native mut+alloc
675 659 16 37.9 osh-native mut+alloc+free
591 587 4 7.7 osh-native mut+alloc+free+gc
597 592 4 8.0 osh-native mut+alloc+free+gc+exit
727 711 16 55.6 _bin/cxx-opt+nopool/osh mut+alloc
636 632 4 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 65 8 3.0 bash -
170 93 77 54.4 bumpleak/osh mut
181 130 51 56.2 _bin/cxx-opt+bumproot/osh mut
194 110 83 55.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 146 67 46.9 osh-native mut+alloc
220 138 81 48.7 osh-native mut+alloc+free
180 124 56 8.5 osh-native mut+alloc+free+gc
181 117 64 8.7 osh-native mut+alloc+free+gc+exit
234 141 93 62.6 _bin/cxx-opt+nopool/osh mut+alloc
209 144 64 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
10 6 4 3.5 dash -
19 14 6 4.3 bash -
18 11 8 3.4 zsh -
18 13 5 11.5 bumpleak/osh mut
19 11 8 13.9 _bin/cxx-opt+bumproot/osh mut
21 16 6 13.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 11 10.9 osh-native mut+alloc
22 15 8 11.0 osh-native mut+alloc+free
22 20 2 8.9 osh-native mut+alloc+free+gc
22 13 10 8.9 osh-native mut+alloc+free+gc+exit
25 16 9 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 14 11 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc