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 4 10 12.0 18.0 476,676 1,282 6 408,744 5 204,372 osh-native
parse.configure-coreutils 157 30 69 46.1 51.4 1,653,264 4,764 12 1,069,110 6 798,636 osh-native
parse.abuild 9 1 1 2.6 8.4 101,867 180 2 75,086 1 37,543 osh-native
ex.compute-fib 29 0 2 2.6 7.7 584,132 31,810 12 50,000 0 2,819 osh-native
ex.bashcomp-parse-help 180 0 3 10.2 8.5 982,889 27,376 21 50,000 0 3,805 osh-native
ex.abuild-print-help 22 1 2 2.8 8.8 116,248 478 3 85,322 1 42,661 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.1 bash -
105 52 59 3.4 zsh -
16 12 4 29.2 bumpleak/osh mut
19 15 4 29.1 _bin/cxx-opt+bumproot/osh mut
23 11 11 28.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 26 4 25.0 osh-native mut+alloc
32 24 8 25.6 osh-native mut+alloc+free
35 31 4 18.0 osh-native mut+alloc+free+gc
36 31 4 18.0 osh-native mut+alloc+free+gc+exit
42 30 13 32.0 _bin/cxx-opt+nopool/osh mut+alloc
51 39 12 22.4 _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 -
78 78 0 3.1 bash -
382 213 189 3.4 zsh -
50 42 8 84.9 bumpleak/osh mut
60 48 12 84.6 _bin/cxx-opt+bumproot/osh mut
71 40 32 86.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 47 51 73.4 osh-native mut+alloc
106 89 16 75.3 osh-native mut+alloc+free
157 136 20 51.4 osh-native mut+alloc+free+gc
159 127 32 52.1 osh-native mut+alloc+free+gc+exit
137 101 36 97.6 _bin/cxx-opt+nopool/osh mut+alloc
223 202 20 72.6 _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 7 0 3.3 zsh -
6 0 6 10.5 bumpleak/osh mut
7 0 7 11.7 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 9.8 osh-native mut+alloc
9 4 4 9.8 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
9 0 9 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 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
10 10 0 1.4 dash -
28 28 0 2.9 bash -
24 16 8 3.4 zsh -
19 15 4 32.6 bumpleak/osh mut
25 21 4 33.3 _bin/cxx-opt+bumproot/osh mut
28 21 7 33.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 29 8 26.3 osh-native mut+alloc
38 25 13 26.6 osh-native mut+alloc+free
29 29 0 7.7 osh-native mut+alloc+free+gc
29 25 4 8.0 osh-native mut+alloc+free+gc+exit
54 38 15 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 34 4 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 73 0 3.1 bash -
170 109 61 53.8 bumpleak/osh mut
179 139 40 55.5 _bin/cxx-opt+bumproot/osh mut
195 123 71 56.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 150 61 46.5 osh-native mut+alloc
218 157 60 48.2 osh-native mut+alloc+free
180 120 60 8.5 osh-native mut+alloc+free+gc
181 140 40 8.7 osh-native mut+alloc+free+gc+exit
232 148 84 62.3 _bin/cxx-opt+nopool/osh mut+alloc
209 156 52 9.9 _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 19 1 4.5 bash -
18 10 8 3.5 zsh -
19 11 8 11.6 bumpleak/osh mut
21 16 5 12.6 _bin/cxx-opt+bumproot/osh mut
20 15 6 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 14 8 11.0 osh-native mut+alloc
23 11 12 10.7 osh-native mut+alloc+free
22 22 0 8.8 osh-native mut+alloc+free+gc
23 18 5 8.9 osh-native mut+alloc+free+gc+exit
25 13 12 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 23 3 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc