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.0 476,699 1,282 6 408,772 5 204,386 osh-native
parse.configure-coreutils 157 23 65 44.6 49.9 1,653,287 4,764 12 1,030,656 6 769,412 osh-native
parse.abuild 9 1 1 2.6 8.4 101,890 180 2 75,114 1 37,557 osh-native
ex.compute-fib 28 0 1 2.4 7.9 584,155 31,810 12 50,000 0 2,833 osh-native
ex.bashcomp-parse-help 182 0 3 10.3 8.7 995,232 27,376 21 50,000 0 3,824 osh-native
ex.abuild-print-help 22 1 2 2.8 8.9 116,299 478 3 85,350 1 42,675 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 23 0 3.0 bash -
104 76 35 3.4 zsh -
16 12 4 29.6 bumpleak/osh mut
19 10 10 29.6 _bin/cxx-opt+bumproot/osh mut
23 15 8 29.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 18 11 25.2 osh-native mut+alloc
31 26 4 25.6 osh-native mut+alloc+free
35 23 12 18.0 osh-native mut+alloc+free+gc
38 26 11 18.0 osh-native mut+alloc+free+gc+exit
43 43 0 33.3 _bin/cxx-opt+nopool/osh mut+alloc
48 44 4 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.4 dash -
77 77 0 3.1 bash -
378 234 165 3.5 zsh -
48 32 16 85.0 bumpleak/osh mut
60 52 8 84.5 _bin/cxx-opt+bumproot/osh mut
71 62 8 86.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 62 35 73.4 osh-native mut+alloc
105 85 20 75.3 osh-native mut+alloc+free
157 140 16 49.9 osh-native mut+alloc+free+gc
162 138 24 50.4 osh-native mut+alloc+free+gc+exit
140 96 44 99.1 _bin/cxx-opt+nopool/osh mut+alloc
220 204 16 68.2 _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.3 dash -
6 6 0 3.0 bash -
8 7 0 3.3 zsh -
6 6 0 10.8 bumpleak/osh mut
7 0 7 11.6 _bin/cxx-opt+bumproot/osh mut
8 8 0 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.1 osh-native mut+alloc
9 9 0 10.0 osh-native mut+alloc+free
9 3 6 8.4 osh-native mut+alloc+free+gc
9 5 5 8.4 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 11 0 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.4 dash -
28 28 0 3.0 bash -
24 20 4 3.3 zsh -
18 18 0 32.7 bumpleak/osh mut
25 25 0 31.2 _bin/cxx-opt+bumproot/osh mut
28 24 4 32.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 12 24 26.3 osh-native mut+alloc
38 25 13 26.5 osh-native mut+alloc+free
28 24 4 7.9 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
54 38 15 36.3 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _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 73 0 3.1 bash -
168 112 56 54.8 bumpleak/osh mut
179 99 79 56.1 _bin/cxx-opt+bumproot/osh mut
194 134 59 56.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 164 48 46.9 osh-native mut+alloc
218 139 79 48.7 osh-native mut+alloc+free
182 133 48 8.7 osh-native mut+alloc+free+gc
181 124 56 8.5 osh-native mut+alloc+free+gc+exit
234 146 87 62.4 _bin/cxx-opt+nopool/osh mut+alloc
209 161 47 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 8 2 3.5 dash -
20 15 5 4.3 bash -
18 15 4 3.4 zsh -
18 11 7 12.9 bumpleak/osh mut
21 11 10 13.4 _bin/cxx-opt+bumproot/osh mut
20 17 3 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 18 4 11.0 osh-native mut+alloc
22 10 12 11.1 osh-native mut+alloc+free
22 16 7 8.9 osh-native mut+alloc+free+gc
23 16 7 9.0 osh-native mut+alloc+free+gc+exit
24 15 10 12.6 _bin/cxx-opt+nopool/osh mut+alloc
25 15 11 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc