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 4 10 12.0 18.0 476,690 1,282 6 408,758 5 204,379 osh-native
parse.configure-coreutils 159 26 69 46.1 51.6 1,653,278 4,764 12 1,069,124 6 798,643 osh-native
parse.abuild 9 1 1 2.6 8.5 101,881 180 2 75,100 1 37,550 osh-native
ex.compute-fib 28 0 2 2.4 8.0 584,146 31,810 12 50,000 0 2,826 osh-native
ex.bashcomp-parse-help 184 0 4 10.3 8.8 995,223 27,376 21 50,000 0 3,822 osh-native
ex.abuild-print-help 23 1 2 2.8 8.8 116,290 478 3 85,336 1 42,668 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.4 dash -
23 19 4 3.0 bash -
105 60 52 3.4 zsh -
16 12 4 29.2 bumpleak/osh mut
20 16 4 29.6 _bin/cxx-opt+bumproot/osh mut
23 15 8 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 17 13 25.2 osh-native mut+alloc
32 24 8 25.7 osh-native mut+alloc+free
36 24 12 18.0 osh-native mut+alloc+free+gc
37 26 11 18.0 osh-native mut+alloc+free+gc+exit
43 31 12 32.3 _bin/cxx-opt+nopool/osh mut+alloc
47 34 13 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.6 dash -
78 78 0 3.3 bash -
384 249 156 3.4 zsh -
49 33 16 85.6 bumpleak/osh mut
60 48 12 84.3 _bin/cxx-opt+bumproot/osh mut
71 71 0 86.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 71 28 73.4 osh-native mut+alloc
107 70 37 75.1 osh-native mut+alloc+free
159 143 16 51.6 osh-native mut+alloc+free+gc
160 152 8 50.4 osh-native mut+alloc+free+gc+exit
139 87 52 99.5 _bin/cxx-opt+nopool/osh mut+alloc
216 183 33 72.4 _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 3.0 bash -
8 4 4 3.3 zsh -
6 3 3 11.8 bumpleak/osh mut
7 7 0 10.9 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.1 osh-native mut+alloc
9 5 5 10.0 osh-native mut+alloc+free
9 6 3 8.5 osh-native mut+alloc+free+gc
9 9 0 8.5 osh-native mut+alloc+free+gc+exit
11 6 6 11.3 _bin/cxx-opt+nopool/osh mut+alloc
11 8 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
11 7 4 1.4 dash -
29 28 0 3.0 bash -
23 20 4 3.3 zsh -
19 7 11 31.4 bumpleak/osh mut
26 22 4 33.0 _bin/cxx-opt+bumproot/osh mut
28 20 8 32.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 32 4 26.2 osh-native mut+alloc
38 27 11 26.6 osh-native mut+alloc+free
28 24 4 8.0 osh-native mut+alloc+free+gc
28 20 8 7.6 osh-native mut+alloc+free+gc+exit
54 41 12 36.2 _bin/cxx-opt+nopool/osh mut+alloc
37 32 4 9.3 _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 111 56 54.3 bumpleak/osh mut
180 124 56 55.7 _bin/cxx-opt+bumproot/osh mut
194 146 47 56.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 131 80 46.9 osh-native mut+alloc
218 141 77 48.6 osh-native mut+alloc+free
184 131 52 8.8 osh-native mut+alloc+free+gc
181 129 52 8.7 osh-native mut+alloc+free+gc+exit
233 132 100 64.4 _bin/cxx-opt+nopool/osh mut+alloc
208 148 60 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 6 4 3.5 dash -
21 19 2 4.3 bash -
18 6 13 3.5 zsh -
20 11 9 12.6 bumpleak/osh mut
20 7 13 11.7 _bin/cxx-opt+bumproot/osh mut
21 13 8 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 18 3 10.9 osh-native mut+alloc
22 15 7 10.9 osh-native mut+alloc+free
23 20 4 8.8 osh-native mut+alloc+free+gc
24 14 9 9.0 osh-native mut+alloc+free+gc+exit
25 19 6 12.6 _bin/cxx-opt+nopool/osh mut+alloc
24 14 11 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc