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.1 476,689 1,282 6 408,756 5 204,378 osh-native
parse.configure-coreutils 154 25 66 46.1 51.6 1,653,277 4,764 12 1,069,122 6 798,642 osh-native
parse.abuild 9 1 1 2.6 8.4 101,880 180 2 75,098 1 37,549 osh-native
ex.compute-fib 28 0 1 2.6 7.7 584,145 31,810 12 50,000 0 2,826 osh-native
ex.bashcomp-parse-help 181 0 3 10.6 8.8 995,222 27,376 21 50,000 0 3,821 osh-native
ex.abuild-print-help 22 1 2 2.8 8.8 116,289 478 3 85,334 1 42,667 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 -
23 18 5 3.1 bash -
104 66 44 3.4 zsh -
16 12 4 28.9 bumpleak/osh mut
20 16 4 30.0 _bin/cxx-opt+bumproot/osh mut
22 11 11 28.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
34 26 7 25.0 osh-native mut+alloc
31 31 0 25.7 osh-native mut+alloc+free
35 27 8 18.1 osh-native mut+alloc+free+gc
35 31 4 18.0 osh-native mut+alloc+free+gc+exit
43 23 19 31.9 _bin/cxx-opt+nopool/osh mut+alloc
48 35 12 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
22 21 0 1.6 dash -
78 74 4 3.3 bash -
378 228 172 3.4 zsh -
49 41 8 84.6 bumpleak/osh mut
60 52 8 84.4 _bin/cxx-opt+bumproot/osh mut
70 62 8 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 51 47 73.4 osh-native mut+alloc
106 70 35 75.3 osh-native mut+alloc+free
154 130 24 51.6 osh-native mut+alloc+free+gc
164 136 28 52.2 osh-native mut+alloc+free+gc+exit
141 86 55 98.4 _bin/cxx-opt+nopool/osh mut+alloc
211 162 49 71.5 _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 3 3 3.0 bash -
8 8 0 3.3 zsh -
6 6 0 12.2 bumpleak/osh mut
6 3 3 12.6 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 9.8 osh-native mut+alloc
8 8 0 10.1 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
9 4 4 8.7 osh-native mut+alloc+free+gc+exit
12 12 0 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 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
11 10 0 1.6 dash -
29 25 4 2.8 bash -
24 24 0 3.3 zsh -
19 19 0 31.6 bumpleak/osh mut
25 16 8 31.4 _bin/cxx-opt+bumproot/osh mut
27 23 4 32.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 16 20 26.5 osh-native mut+alloc
38 34 4 26.6 osh-native mut+alloc+free
28 24 4 7.7 osh-native mut+alloc+free+gc
28 28 0 7.9 osh-native mut+alloc+free+gc+exit
54 35 19 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 29 7 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 69 4 3.1 bash -
167 127 40 55.8 bumpleak/osh mut
180 112 68 54.4 _bin/cxx-opt+bumproot/osh mut
193 149 44 56.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 125 85 47.1 osh-native mut+alloc
217 132 84 48.9 osh-native mut+alloc+free
181 124 56 8.8 osh-native mut+alloc+free+gc
181 137 44 8.4 osh-native mut+alloc+free+gc+exit
231 111 119 63.0 _bin/cxx-opt+nopool/osh mut+alloc
206 170 36 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 9 1 3.5 dash -
20 13 7 4.5 bash -
18 10 9 3.4 zsh -
20 12 9 11.8 bumpleak/osh mut
21 19 3 12.6 _bin/cxx-opt+bumproot/osh mut
21 13 8 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 11 11 10.7 osh-native mut+alloc
22 11 11 11.1 osh-native mut+alloc+free
22 17 6 8.8 osh-native mut+alloc+free+gc
23 15 9 8.8 osh-native mut+alloc+free+gc+exit
25 20 6 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 12 14 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc