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 38 4 11 12.0 17.7 476,676 1,282 6 408,744 5 204,372 osh-native
parse.configure-coreutils 166 27 78 46.1 51.3 1,653,264 4,764 12 1,069,110 6 798,636 osh-native
parse.abuild 9 1 1 2.6 8.5 101,867 180 2 75,086 1 37,543 osh-native
ex.compute-fib 28 0 2 2.6 7.9 584,132 31,810 12 50,000 0 2,819 osh-native
ex.bashcomp-parse-help 183 0 4 10.3 8.7 979,369 27,376 21 50,000 0 3,804 osh-native
ex.abuild-print-help 23 1 2 2.8 9.0 116,240 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 -
26 26 0 3.1 bash -
113 56 62 3.4 zsh -
17 8 8 28.1 bumpleak/osh mut
20 16 4 29.4 _bin/cxx-opt+bumproot/osh mut
24 19 4 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 19 11 24.9 osh-native mut+alloc
31 19 12 25.6 osh-native mut+alloc+free
38 19 19 17.7 osh-native mut+alloc+free+gc
38 23 15 18.1 osh-native mut+alloc+free+gc+exit
44 12 32 32.9 _bin/cxx-opt+nopool/osh mut+alloc
47 34 13 22.2 _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 -
80 80 0 3.3 bash -
404 232 195 3.5 zsh -
49 44 4 84.7 bumpleak/osh mut
60 52 8 84.7 _bin/cxx-opt+bumproot/osh mut
71 55 16 86.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 61 37 73.3 osh-native mut+alloc
106 49 57 75.3 osh-native mut+alloc+free
166 143 24 51.3 osh-native mut+alloc+free+gc
168 140 28 52.1 osh-native mut+alloc+free+gc+exit
142 89 53 98.8 _bin/cxx-opt+nopool/osh mut+alloc
222 197 24 74.3 _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 3.0 bash -
8 4 4 3.3 zsh -
6 0 6 10.9 bumpleak/osh mut
7 7 0 11.1 _bin/cxx-opt+bumproot/osh mut
8 8 0 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 9.8 osh-native mut+alloc
8 4 4 9.8 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
10 10 0 8.3 osh-native mut+alloc+free+gc+exit
12 12 0 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 7 3 1.6 dash -
29 25 4 3.0 bash -
24 16 8 3.3 zsh -
19 15 4 31.2 bumpleak/osh mut
25 21 4 32.9 _bin/cxx-opt+bumproot/osh mut
29 25 4 32.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 28 8 26.5 osh-native mut+alloc
38 34 4 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 41 12 36.0 _bin/cxx-opt+nopool/osh mut+alloc
36 36 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
75 71 4 3.0 bash -
171 79 91 54.0 bumpleak/osh mut
183 106 77 54.9 _bin/cxx-opt+bumproot/osh mut
194 130 63 54.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 138 73 46.3 osh-native mut+alloc
217 169 48 48.0 osh-native mut+alloc+free
183 130 53 8.7 osh-native mut+alloc+free+gc
184 136 48 8.5 osh-native mut+alloc+free+gc+exit
235 147 87 63.4 _bin/cxx-opt+nopool/osh mut+alloc
208 120 88 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 3 3.5 dash -
22 20 2 4.3 bash -
18 11 8 3.5 zsh -
21 13 8 12.6 bumpleak/osh mut
20 13 8 11.7 _bin/cxx-opt+bumproot/osh mut
22 13 9 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 16 6 10.7 osh-native mut+alloc
24 15 10 11.0 osh-native mut+alloc+free
23 14 9 9.0 osh-native mut+alloc+free+gc
24 18 7 8.8 osh-native mut+alloc+free+gc+exit
24 16 9 12.5 _bin/cxx-opt+nopool/osh mut+alloc
27 19 9 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc