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 36 3 10 12.0 18.0 476,684 1,282 6 408,754 5 204,377 osh-native
parse.configure-coreutils 152 24 65 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.9 584,140 31,810 12 50,000 0 2,825 osh-native
ex.bashcomp-parse-help 183 0 4 10.6 8.8 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 3 3 1.6 dash -
23 19 4 2.9 bash -
104 59 51 3.4 zsh -
17 8 8 29.6 bumpleak/osh mut
20 16 4 28.6 _bin/cxx-opt+bumproot/osh mut
22 17 4 29.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 18 11 25.0 osh-native mut+alloc
32 12 20 25.6 osh-native mut+alloc+free
36 31 4 18.0 osh-native mut+alloc+free+gc
36 24 12 18.0 osh-native mut+alloc+free+gc+exit
43 19 23 32.9 _bin/cxx-opt+nopool/osh mut+alloc
49 41 8 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 21 0 1.4 dash -
78 78 0 3.1 bash -
373 214 181 3.5 zsh -
50 41 8 84.6 bumpleak/osh mut
60 55 4 84.5 _bin/cxx-opt+bumproot/osh mut
70 66 4 86.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 56 40 73.4 osh-native mut+alloc
105 64 40 75.3 osh-native mut+alloc+free
152 140 12 51.6 osh-native mut+alloc+free+gc
160 136 24 52.3 osh-native mut+alloc+free+gc+exit
139 99 40 98.3 _bin/cxx-opt+nopool/osh mut+alloc
214 190 24 72.8 _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 2.9 bash -
8 0 7 3.3 zsh -
6 0 6 11.5 bumpleak/osh mut
7 3 3 11.8 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.1 osh-native mut+alloc
8 8 0 10.0 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
9 4 4 8.5 osh-native mut+alloc+free+gc+exit
11 6 6 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 8 4 9.6 _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 25 4 3.0 bash -
24 20 4 3.4 zsh -
19 19 0 31.3 bumpleak/osh mut
27 23 4 31.8 _bin/cxx-opt+bumproot/osh mut
28 27 0 31.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.3 osh-native mut+alloc
38 17 21 26.7 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
29 28 0 8.0 osh-native mut+alloc+free+gc+exit
54 45 8 35.9 _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 65 8 3.1 bash -
167 99 67 55.8 bumpleak/osh mut
178 138 40 55.0 _bin/cxx-opt+bumproot/osh mut
190 121 69 55.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
208 132 76 46.9 osh-native mut+alloc
217 153 64 48.9 osh-native mut+alloc+free
183 130 53 8.8 osh-native mut+alloc+free+gc
179 130 49 8.5 osh-native mut+alloc+free+gc+exit
232 164 68 64.0 _bin/cxx-opt+nopool/osh mut+alloc
208 144 64 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 -
19 13 7 4.5 bash -
18 10 8 3.5 zsh -
18 11 7 11.4 bumpleak/osh mut
20 16 4 12.5 _bin/cxx-opt+bumproot/osh mut
22 19 3 13.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 14 7 11.0 osh-native mut+alloc
22 18 5 11.0 osh-native mut+alloc+free
22 21 2 8.8 osh-native mut+alloc+free+gc
23 20 4 8.8 osh-native mut+alloc+free+gc+exit
25 21 4 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 17 8 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc