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 39 4 12 12.2 18.0 478,359 1,282 6 428,228 5 214,114 osh-native
parse.configure-coreutils 99 17 40 46.2 51.6 1,660,610 4,764 10 1,189,390 7 594,695 osh-native
parse.abuild 6 0 1 2.7 8.5 102,532 180 2 75,968 1 37,984 osh-native
ex.compute-fib 21 0 1 3.0 7.9 651,800 31,810 13 50,000 0 2,829 osh-native
ex.bashcomp-parse-help 111 0 3 12.3 8.6 1,077,990 27,375 23 50,000 0 3,938 osh-native
ex.abuild-print-help 14 0 2 2.9 9.0 117,524 477 3 85,988 1 42,994 osh-native

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
4 4 0 1.6 dash -
16 16 0 3.2 bash -
63 38 29 3.5 zsh -
12 12 0 30.0 bumpleak/osh mut
14 5 9 29.8 _bin/cxx-opt+bumproot/osh mut
16 12 4 29.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 21 4 25.3 osh-native mut+alloc
32 24 8 25.5 osh-native mut+alloc+free
39 35 4 18.0 osh-native mut+alloc+free+gc
26 21 4 18.1 osh-native mut+alloc+free+gc+exit
28 12 16 32.1 _bin/cxx-opt+nopool/osh mut+alloc
46 46 0 22.6 _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
29 29 0 1.8 dash -
53 53 0 3.5 bash -
217 117 113 3.5 zsh -
37 24 12 85.4 bumpleak/osh mut
43 31 12 85.0 _bin/cxx-opt+bumproot/osh mut
50 42 8 85.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
63 43 20 74.1 osh-native mut+alloc
72 64 8 75.8 osh-native mut+alloc+free
99 87 12 51.6 osh-native mut+alloc+free+gc
106 102 4 52.5 osh-native mut+alloc+free+gc+exit
91 79 12 100.0 _bin/cxx-opt+nopool/osh mut+alloc
146 133 12 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
1 1 0 1.6 dash -
4 4 0 3.0 bash -
4 0 4 3.4 zsh -
4 4 0 11.3 bumpleak/osh mut
4 4 0 10.7 _bin/cxx-opt+bumproot/osh mut
5 5 0 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
5 5 0 10.0 osh-native mut+alloc
6 0 6 10.1 osh-native mut+alloc+free
6 3 3 8.5 osh-native mut+alloc+free+gc
6 6 0 8.6 osh-native mut+alloc+free+gc+exit
8 4 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
8 4 4 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
7 7 0 1.6 dash -
20 20 0 3.0 bash -
14 14 0 3.4 zsh -
14 9 5 34.7 bumpleak/osh mut
19 19 0 35.6 _bin/cxx-opt+bumproot/osh mut
22 21 0 34.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 19 7 28.1 osh-native mut+alloc
27 23 4 28.7 osh-native mut+alloc+free
21 21 0 7.9 osh-native mut+alloc+free+gc
21 21 0 7.9 osh-native mut+alloc+free+gc+exit
37 33 4 38.8 _bin/cxx-opt+nopool/osh mut+alloc
28 20 8 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
51 51 0 3.2 bash -
100 72 28 58.3 bumpleak/osh mut
109 85 23 60.1 _bin/cxx-opt+bumproot/osh mut
119 98 20 60.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
130 87 43 50.6 osh-native mut+alloc
136 92 44 52.5 osh-native mut+alloc+free
111 90 20 8.6 osh-native mut+alloc+free+gc
109 64 44 8.7 osh-native mut+alloc+free+gc+exit
143 79 63 68.6 _bin/cxx-opt+nopool/osh mut+alloc
128 108 20 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
6 6 0 3.6 dash -
12 12 0 4.6 bash -
10 7 3 3.6 zsh -
11 8 3 13.1 bumpleak/osh mut
15 13 3 12.8 _bin/cxx-opt+bumproot/osh mut
13 9 4 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
13 13 0 10.9 osh-native mut+alloc
14 8 6 11.1 osh-native mut+alloc+free
14 9 5 9.0 osh-native mut+alloc+free+gc
15 15 0 9.2 osh-native mut+alloc+free+gc+exit
15 10 6 12.3 _bin/cxx-opt+nopool/osh mut+alloc
16 15 1 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc