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 37 4 10 12.0 17.8 476,684 1,282 6 408,754 5 204,377 osh-native
parse.configure-coreutils 171 26 80 46.1 51.4 1,653,272 4,764 12 1,069,120 6 798,641 osh-native
parse.abuild 9 1 1 2.6 8.5 101,875 180 2 75,096 1 37,548 osh-native
ex.compute-fib 28 0 1 2.6 7.7 584,140 31,810 12 50,000 0 2,825 osh-native
ex.bashcomp-parse-help 186 0 5 10.6 8.7 995,217 27,376 21 50,000 0 3,820 osh-native
ex.abuild-print-help 22 1 2 2.8 8.8 116,284 478 3 85,332 1 42,666 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 -
24 23 0 3.1 bash -
104 68 42 3.5 zsh -
16 16 0 28.6 bumpleak/osh mut
20 16 4 29.9 _bin/cxx-opt+bumproot/osh mut
22 18 4 30.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 21 9 25.2 osh-native mut+alloc
32 24 8 25.4 osh-native mut+alloc+free
37 32 4 17.8 osh-native mut+alloc+free+gc
39 35 4 17.8 osh-native mut+alloc+free+gc+exit
44 28 16 32.6 _bin/cxx-opt+nopool/osh mut+alloc
52 48 4 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
21 21 0 1.6 dash -
78 78 0 3.3 bash -
383 218 186 3.5 zsh -
49 32 16 85.1 bumpleak/osh mut
62 58 4 84.7 _bin/cxx-opt+bumproot/osh mut
70 62 8 86.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 59 39 73.4 osh-native mut+alloc
106 63 43 75.3 osh-native mut+alloc+free
171 147 24 51.4 osh-native mut+alloc+free+gc
168 148 20 52.2 osh-native mut+alloc+free+gc+exit
139 91 48 98.2 _bin/cxx-opt+nopool/osh mut+alloc
246 198 48 71.7 _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 8 0 3.3 zsh -
7 0 7 11.3 bumpleak/osh mut
7 4 4 12.4 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.1 osh-native mut+alloc
10 5 5 10.1 osh-native mut+alloc+free
9 5 5 8.5 osh-native mut+alloc+free+gc
9 9 0 8.4 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 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.6 dash -
29 29 0 3.0 bash -
24 24 0 3.3 zsh -
19 8 11 31.3 bumpleak/osh mut
25 21 4 31.4 _bin/cxx-opt+bumproot/osh mut
27 27 0 32.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 32 4 26.2 osh-native mut+alloc
39 35 4 26.5 osh-native mut+alloc+free
28 24 4 7.7 osh-native mut+alloc+free+gc
28 24 4 7.7 osh-native mut+alloc+free+gc+exit
54 31 23 36.5 _bin/cxx-opt+nopool/osh mut+alloc
37 37 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
74 66 8 3.1 bash -
167 84 84 55.0 bumpleak/osh mut
180 148 32 54.5 _bin/cxx-opt+bumproot/osh mut
197 144 52 56.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
215 127 87 46.9 osh-native mut+alloc
223 147 76 48.9 osh-native mut+alloc+free
186 138 47 8.7 osh-native mut+alloc+free+gc
186 125 61 8.7 osh-native mut+alloc+free+gc+exit
235 133 101 64.0 _bin/cxx-opt+nopool/osh mut+alloc
221 165 56 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.5 bash -
18 15 4 3.4 zsh -
20 12 8 11.9 bumpleak/osh mut
20 11 10 13.7 _bin/cxx-opt+bumproot/osh mut
22 19 3 13.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 14 8 11.0 osh-native mut+alloc
23 17 6 11.0 osh-native mut+alloc+free
22 18 5 8.8 osh-native mut+alloc+free+gc
24 17 7 8.8 osh-native mut+alloc+free+gc+exit
25 17 8 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 20 6 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc