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 36 4 10 12.0 17.8 476,685 1,282 6 408,756 5 204,378 osh-native
parse.configure-coreutils 157 27 68 46.1 51.4 1,653,273 4,764 12 1,069,122 6 798,642 osh-native
parse.abuild 9 1 1 2.6 8.4 101,876 180 2 75,098 1 37,549 osh-native
ex.compute-fib 28 0 2 2.6 7.7 584,141 31,810 12 50,000 0 2,826 osh-native
ex.bashcomp-parse-help 180 0 4 10.6 8.7 995,218 27,376 21 50,000 0 3,821 osh-native
ex.abuild-print-help 23 1 2 2.8 8.8 116,285 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 3 3 1.4 dash -
24 23 0 3.0 bash -
104 68 43 3.3 zsh -
16 16 0 27.9 bumpleak/osh mut
19 19 0 29.2 _bin/cxx-opt+bumproot/osh mut
23 11 11 28.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 25 4 25.0 osh-native mut+alloc
31 22 9 25.7 osh-native mut+alloc+free
36 32 4 17.8 osh-native mut+alloc+free+gc
36 32 4 17.8 osh-native mut+alloc+free+gc+exit
44 36 8 32.7 _bin/cxx-opt+nopool/osh mut+alloc
56 51 4 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 22 0 1.4 dash -
80 76 4 3.3 bash -
375 238 160 3.4 zsh -
49 48 0 85.9 bumpleak/osh mut
60 44 16 84.6 _bin/cxx-opt+bumproot/osh mut
70 62 8 85.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 67 32 73.4 osh-native mut+alloc
107 75 32 75.3 osh-native mut+alloc+free
157 125 31 51.4 osh-native mut+alloc+free+gc
159 143 16 52.1 osh-native mut+alloc+free+gc+exit
139 95 44 98.0 _bin/cxx-opt+nopool/osh mut+alloc
213 185 28 71.9 _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 2.8 bash -
8 4 4 3.4 zsh -
7 3 3 11.6 bumpleak/osh mut
7 3 3 11.6 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 9.7 osh-native mut+alloc
8 8 0 10.0 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
9 9 0 8.5 osh-native mut+alloc+free+gc+exit
12 12 0 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 4 8 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 11 0 1.4 dash -
29 29 0 2.9 bash -
24 24 0 3.4 zsh -
19 19 0 30.8 bumpleak/osh mut
26 22 4 32.0 _bin/cxx-opt+bumproot/osh mut
29 24 4 32.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 24 12 26.3 osh-native mut+alloc
39 31 8 26.5 osh-native mut+alloc+free
28 28 0 7.7 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
53 37 16 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 33 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 -
168 116 52 55.0 bumpleak/osh mut
178 107 71 55.9 _bin/cxx-opt+bumproot/osh mut
193 121 72 55.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 135 75 46.9 osh-native mut+alloc
219 115 103 48.9 osh-native mut+alloc+free
180 120 60 8.7 osh-native mut+alloc+free+gc
180 116 64 8.7 osh-native mut+alloc+free+gc+exit
231 138 93 63.1 _bin/cxx-opt+nopool/osh mut+alloc
206 143 63 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 5 6 3.4 dash -
20 17 3 4.5 bash -
18 14 5 3.4 zsh -
18 7 12 12.8 bumpleak/osh mut
20 12 9 11.9 _bin/cxx-opt+bumproot/osh mut
23 17 6 13.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 11 12 10.9 osh-native mut+alloc
22 22 1 10.9 osh-native mut+alloc+free
23 13 10 8.8 osh-native mut+alloc+free+gc
24 18 6 8.9 osh-native mut+alloc+free+gc+exit
25 12 14 12.5 _bin/cxx-opt+nopool/osh mut+alloc
26 18 8 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc