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 39 6 12 12.0 17.8 476,711 1,282 6 408,792 5 204,396 osh-native
parse.configure-coreutils 178 29 87 44.6 49.9 1,653,299 4,764 12 1,030,676 6 769,422 osh-native
parse.abuild 10 1 1 2.6 8.5 101,902 180 2 75,134 1 37,567 osh-native
ex.compute-fib 29 0 2 2.4 7.9 584,167 22,608 12 50,000 0 2,844 osh-native
ex.bashcomp-parse-help 184 0 4 10.3 8.8 995,244 12,911 21 50,000 0 3,834 osh-native
ex.abuild-print-help 23 1 2 2.8 8.9 116,311 270 3 85,370 1 42,685 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.6 dash -
23 23 0 3.0 bash -
107 71 43 3.4 zsh -
16 16 0 28.5 bumpleak/osh mut
20 16 4 28.4 _bin/cxx-opt+bumproot/osh mut
23 7 15 30.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 15 15 25.0 osh-native mut+alloc
33 16 16 25.6 osh-native mut+alloc+free
39 35 4 17.8 osh-native mut+alloc+free+gc
41 36 4 18.0 osh-native mut+alloc+free+gc+exit
45 28 16 33.2 _bin/cxx-opt+nopool/osh mut+alloc
56 48 8 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
21 18 4 1.4 dash -
78 78 0 3.3 bash -
378 224 177 3.5 zsh -
50 39 12 83.9 bumpleak/osh mut
61 49 11 85.3 _bin/cxx-opt+bumproot/osh mut
70 66 4 85.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 49 49 73.5 osh-native mut+alloc
107 59 47 75.3 osh-native mut+alloc+free
178 146 32 49.9 osh-native mut+alloc+free+gc
185 162 24 50.4 osh-native mut+alloc+free+gc+exit
142 110 32 98.6 _bin/cxx-opt+nopool/osh mut+alloc
246 226 20 67.5 _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 4 4 3.3 zsh -
6 3 3 10.6 bumpleak/osh mut
7 7 0 11.4 _bin/cxx-opt+bumproot/osh mut
8 4 4 11.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 5 5 10.1 osh-native mut+alloc
9 5 5 10.0 osh-native mut+alloc+free
10 10 0 8.5 osh-native mut+alloc+free+gc
10 3 6 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.1 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.5 _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.6 dash -
29 29 0 3.0 bash -
24 12 12 3.1 zsh -
20 20 0 32.6 bumpleak/osh mut
26 21 4 31.6 _bin/cxx-opt+bumproot/osh mut
29 18 11 32.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
39 30 9 26.2 osh-native mut+alloc
39 31 8 26.3 osh-native mut+alloc+free
29 28 0 7.9 osh-native mut+alloc+free+gc
28 28 0 8.0 osh-native mut+alloc+free+gc+exit
54 29 25 35.9 _bin/cxx-opt+nopool/osh mut+alloc
39 35 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 69 4 3.1 bash -
171 111 60 55.5 bumpleak/osh mut
181 132 48 55.1 _bin/cxx-opt+bumproot/osh mut
197 124 72 56.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 157 52 47.0 osh-native mut+alloc
218 137 81 48.7 osh-native mut+alloc+free
184 139 44 8.8 osh-native mut+alloc+free+gc
183 127 55 8.8 osh-native mut+alloc+free+gc+exit
233 132 100 63.1 _bin/cxx-opt+nopool/osh mut+alloc
218 178 40 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.3 dash -
20 14 7 4.5 bash -
18 9 10 3.4 zsh -
20 6 15 13.0 bumpleak/osh mut
20 5 15 12.3 _bin/cxx-opt+bumproot/osh mut
20 16 4 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 20 3 10.9 osh-native mut+alloc
23 11 13 11.1 osh-native mut+alloc+free
23 11 12 8.9 osh-native mut+alloc+free+gc
23 16 7 8.9 osh-native mut+alloc+free+gc+exit
25 19 7 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 17 9 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc